summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-01-03 04:59:28 +0100
committerJoonas Niilola <juippis@gentoo.org>2022-02-24 13:28:29 +0200
commit1d242eec2c4e76179630c6519a04e5cc81ae1225 (patch)
tree62675213ce0b475b7f1892c3ee283b263b1c0b8a /games-simulation
parentgames-simulation/simutrans: Version bump 123.0.1 (diff)
downloadgentoo-1d242eec2c4e76179630c6519a04e5cc81ae1225.tar.gz
gentoo-1d242eec2c4e76179630c6519a04e5cc81ae1225.tar.bz2
gentoo-1d242eec2c4e76179630c6519a04e5cc81ae1225.zip
games-simulation/simutrans-paksets: New package
Split from games-simulation/simutrans. The licenses for comic192, excentrique48 and nippon64 can be found in the git repos linked in SRC_URI. The licenses for cs128 and german128 can be found at <https://sourceforge.net/p/simutrans/code/HEAD/tree/>. The license for 128 can be found at <https://github.com/simutrans/pak128/>. Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de> Closes: https://github.com/gentoo/gentoo/pull/23669 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/simutrans-paksets/Manifest6
-rw-r--r--games-simulation/simutrans-paksets/metadata.xml27
-rw-r--r--games-simulation/simutrans-paksets/simutrans-paksets-123.0.1.ebuild55
3 files changed, 88 insertions, 0 deletions
diff --git a/games-simulation/simutrans-paksets/Manifest b/games-simulation/simutrans-paksets/Manifest
new file mode 100644
index 000000000000..1af0a8608765
--- /dev/null
+++ b/games-simulation/simutrans-paksets/Manifest
@@ -0,0 +1,6 @@
+DIST simutrans_PAK128.german_2.1_for_ST_123.0.zip 249111808 BLAKE2B 40d8c70d57d6a508ff046791077be49f91429e44c43d25127f179e0f86ca2e94e0f6dfe8442e0c1e73ef79dd14895737239a9cc7555b69d911ba533ab5312d0b SHA512 17295ba03a91ec93f89d0a2856709cf26fa3525557d22cb48bd51b0baf86b0f7ce1a249cd5b360ff6c35f9028b49dd0f951884ca0042eda6d531bb1fe841518e
+DIST simutrans_pak.nippon-v0.5.0.zip 16576816 BLAKE2B 67f81e738006561ccbcc7d362d78c4985dd6d6be3f8b2a5817ea49077406b0d6ae2595b9ec18816661ef94e9a0745884b03f4232567fbeaad9529f77f847dc72 SHA512 a7f30277a69b21202cef10d8379c81694aa664cf4644c38d89c6ccac82659fc2f746a9fc3536b5795c2818957cfd801990df7bbfe0eb9624c2f8a8fcb8854f48
+DIST simutrans_pak128.CS-r2096.zip 18908413 BLAKE2B 1eeb78efb83f882fe977de7290883968db7488ecbe16076b7795e6d69899456c41f83b9c04df3193a2b799fef9d444aa487c9ca5886a1c859b79001abcbbf5ab SHA512 15d2d85fa628b553bb2e367fb109b37b81914414f0a7c82e4816b88262d34dc621eeb2a31a593cb25014bd76207776d48afd61a5a5f47204b37d287bc68e05f0
+DIST simutrans_pak192.comic.0.6.RC2.zip 125425374 BLAKE2B 3132c04788312f429ea8277e7f83796fa16b97f8c28cb92826824752d3ab66d7afeca2987380882e2c6f3368b52334af50f772673154fb0615ff334506483f14 SHA512 5c052cd8b3fc447db7c1618b00462c0750c94d659e2050710ba2b2fa440099639100fff968ff80b2ca2868237fbbec560cc5fb14ee32f296ce434b05832ce336
+DIST simutrans_pak48.excentrique_v019rc3.zip 550330 BLAKE2B 954dcfac50246e3679d7266762baf30cae51f20813c10c0fbf493fe1c9636d07cb8329d963cbb9c61adfffdf6df8b44bb64116d728c3811c79601db441bf07e9 SHA512 8c2e7609984b82bed2006fb50adc7fa7e56e9006d4a4968f9da41f0cbe7437b83c9e9937b08489ac565b42868a951e25c19f6f2b5abfaafb50134dd2dfdf5b50
+DIST simutrans_simupak128-2.8.2-for123.zip 96971372 BLAKE2B 74385cb5b7765fb7306bd036fc0ab6d57e792b694894f39043bb1b9c0412d6fb56d8048bb3fdd60a3a52dd7498e9dd22edf4875116ed7def080383344b376225 SHA512 f2aca6c787ba218cae4677ed35764b17230cefafa358d4c238856c2ec91b75d13a557dd8369d536c0c76b00c6a029f71ebb778d5210a21a44a2c57da15ab0bc2
diff --git a/games-simulation/simutrans-paksets/metadata.xml b/games-simulation/simutrans-paksets/metadata.xml
new file mode 100644
index 000000000000..56d5fb39c126
--- /dev/null
+++ b/games-simulation/simutrans-paksets/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>gentoo@tastytea.de</email>
+ <name>Ronny (tastytea) Gutbrod</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">simutrans</remote-id>
+ <remote-id type="github">simutrans/pak128</remote-id>
+ <remote-id type="github">Varkalandar/pak48.Excentrique</remote-id>
+ <remote-id type="github">Flemmbrav/Pak192.Comic</remote-id>
+ <remote-id type="github">wa-st/pak-nippon</remote-id>
+ </upstream>
+ <use>
+ <flag name="128">Install higher resolution scenario data (128 px graphics)</flag>
+ <flag name="comic192">Install comic-like scenario data (192 px graphics)</flag>
+ <flag name="cs128">Install Czech-Slovak scenario data (128 px graphics)</flag>
+ <flag name="excentrique48">Install eccentric scenario data (48 px graphics)</flag>
+ <flag name="german128">Install German scenario data (128 px graphics)</flag>
+ <flag name="nippon64">Install Nippon scenario data (64 px graphics)</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-simulation/simutrans-paksets/simutrans-paksets-123.0.1.ebuild b/games-simulation/simutrans-paksets/simutrans-paksets-123.0.1.ebuild
new file mode 100644
index 000000000000..f5ab644af47a
--- /dev/null
+++ b/games-simulation/simutrans-paksets/simutrans-paksets-123.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PAK_CS_128="pak128.CS-r2096.zip"
+MY_PAK_GERMAN_128="PAK128.german_2.1_for_ST_123.0.zip"
+MY_PAK_128="simupak128-2.8.2-for123.zip"
+
+DESCRIPTION="PakSets (scenario data) for games-simulation/simutrans"
+HOMEPAGE="https://www.simutrans.com/paksets/"
+SRC_URI="
+ 128? ( mirror://sourceforge/simutrans/${MY_PAK_128} -> simutrans_${MY_PAK_128} )
+ comic192? ( https://github.com/Flemmbrav/Pak192.Comic/releases/download/2021-V0.6-RC2/pak192.comic.0.6.RC2.zip -> simutrans_pak192.comic.0.6.RC2.zip )
+ cs128? ( mirror://sourceforge/simutrans/${MY_PAK_CS_128} -> simutrans_${MY_PAK_CS_128} )
+ german128? ( mirror://sourceforge/simutrans/${MY_PAK_GERMAN_128} -> simutrans_${MY_PAK_GERMAN_128} )
+ nippon64? ( https://github.com/wa-st/pak-nippon/releases/download/v0.5.0/pak.nippon-v0.5.0.zip -> simutrans_pak.nippon-v0.5.0.zip )
+ excentrique48? ( https://github.com/Varkalandar/pak48.Excentrique/releases/download/v0.19_RC3/pak48.excentrique_v019rc3.zip -> simutrans_pak48.excentrique_v019rc3.zip )
+"
+S="${WORKDIR}"
+
+LICENSE="
+ 128? ( Artistic-2 )
+ comic192? ( CC-BY-SA-3.0 )
+ cs128? ( Artistic-2 )
+ excentrique48? ( CC-BY-SA-4.0 )
+ german128? ( PAK128.German )
+ nippon64? ( MIT )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="128 comic192 cs128 excentrique48 german128 nippon64"
+REQUIRED_USE="|| ( 128 comic192 cs128 excentrique48 german128 nippon64 )"
+
+RDEPEND="!<games-simulation/simutrans-123.0"
+BDEPEND="app-arch/unzip"
+
+src_prepare() {
+ default
+
+ # Only 128 and german128 have a simutrans/ folder.
+ if [[ -d simutrans ]]; then
+ mv simutrans/* . || die
+ rmdir simutrans || die
+ fi
+
+ if use comic192; then
+ mv pak192.comic-nightly-datconverter pak192.comic || die
+ fi
+}
+
+src_install() {
+ insinto usr/share/simutrans
+ doins -r *
+}