Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/simutrans/
Date: Thu, 24 Feb 2022 11:34:38
Message-Id: 1645702104.d7e67c349e80c750d7a033179dbc509b7b09c1a5.juippis@gentoo
1 commit: d7e67c349e80c750d7a033179dbc509b7b09c1a5
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Sun Jan 2 22:37:50 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 24 11:28:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7e67c34
7
8 games-simulation/simutrans: Version bump 123.0.1
9
10 - Switched to upstream versioning (no idea why we prefixed it with 0)
11 - All PakSets but the default one are now in
12 games-simulation/simutrans-paksets to make updating them without
13 recompiling simutrans possible
14
15 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 games-simulation/simutrans/Manifest | 4 +
19 games-simulation/simutrans/metadata.xml | 2 +
20 .../simutrans/simutrans-123.0.1.ebuild | 103 +++++++++++++++++++++
21 3 files changed, 109 insertions(+)
22
23 diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest
24 index ee3db6e423f1..6af149931af4 100644
25 --- a/games-simulation/simutrans/Manifest
26 +++ b/games-simulation/simutrans/Manifest
27 @@ -1,8 +1,12 @@
28 DIST simutrans-src-122-0.zip 4534293 BLAKE2B c4117baf82530adced1fbb60e099176b7b63ade07e10f741e19e41aedd4b65f5d7b6ab60145f3bce7ff88def9836eac88323b14aa74f2ce5f1c76eeaa6beb713 SHA512 7a044ceda9359847353c1dcd23c380d1ddcca901fd674a25b66d7bd0ede7f974525c5fc3b37781977e9946626f30b538c483166983ab8b7be9e73903dc9be0bd
29 +DIST simutrans-src-123-0-1.zip 4771334 BLAKE2B c83edba188225c07bea9aa50d8899a251d3b9f50160aada6839d519bc99f52ef57bd95e7cfdf8db5d6c5efffb9fd421b4b8d8283b7998a352fdd7327332244c4 SHA512 87bc96c201126bc735693dea83a320e79f4b4a0fa6940aa9a6d2f8ef6025788f941a3c816febe3dc8a23ff786a2f016df2ef8a61492bb5ed4a834c721f8fc0a1
30 +DIST simutrans.svg 2677 BLAKE2B c60f386b13908cda641f8cb41918f8f0b1c70f9104d14ee368d221bf013970de3aee05b009ad56af07710833218d5e15cd24c51da4dae4e964f1c877a820fce0 SHA512 317b9059a1cc863eed778f60d6c3f4569a3cee192fb6f9210aed2cf65f76f098dd5a17020de11d3beb30b9e7a1a49876c0610e7d31e24e141c6ce31747b3809a
31 DIST simutrans_PAK128.german_2.0_for_ST_122.0.zip 186572954 BLAKE2B 1f21655660f947767657f79fa45f66cd434888c37596e17dbd8400ce684251c33617dc78096c34b23bad3f241cc4641029d0f12b5f09d199013582c89fa02ab3 SHA512 9e6250b333e6b31e0ad23f2629409c2b4914e5fb9cb0304baa1e70f0c268d5eca7db27d77b51f18fff57569df56eecb82c8ec9b48c3a3efacf7d47501546347d
32 DIST simutrans_coalwagonfix.rar 10769 BLAKE2B 4ebb14c5585fcb09b2c9e70451a0a4f1133d1bf7a184c898463c4393026dcbaf10954430d83e64cd7430ec3e3708e0d51f04b805ac0c32656c138b001e617079 SHA512 503c795b4fdc168cc925a3b5ff385880dd28c8e3214a7c5aeb80e937378cf19b1f2408d19f2ab6ef066f47d6f6ab0955e6d5ec59981d1e76fbe3cd661b8bd22e
33 DIST simutrans_language_pack-Base+texts-0.122.0.zip 1172877 BLAKE2B 6a1646d8bd1e74a54506cd32508b5dd9da3d2ce77c7920049fea6bd42c6b46b91e9b248860a352380a5f2bb1393f2bbc9b837dcb347c132c7132f6813a608212 SHA512 d87b4f65188f6efd7e277f6ae5796584e58a1302dae7246cd7b6e3c06d8cdc81c5eae647e12cdf7598230c588f66f5682d2be0e6628311343daf4bd46b441278
34 +DIST simutrans_language_pack-Base+texts-123.0.1.zip 1221740 BLAKE2B 78e80bef6ab033e3ea352fe42ebecedc278cc9b696b509f29be94f47ea1c58d46cf30fa67a5d10daa2e27e9437d5b17e60b071a3e3c71dc5855828c350e4bd46 SHA512 5e1e8448113112364fd81d26a7575537db62ee252caed28983aa186b2b68b1f7648c224148551816314517733e7550b205a1ad0ced07679ff329674df854c997
35 DIST simutrans_pak128-2.8.1.zip 97430218 BLAKE2B 95b6788fd8e4f539b232e9de563227704f16c05951d8cd42ca3faf6b9f625d08108bda068417e9e04c14db8ee6fe860e9b8d958c703719223de770da36ee686b SHA512 c4635a446d9874fe1cf1a15a1ca8eaa50a0888c7679df540aa7509e30db6cb8f9519a27aad10dc481a7762c6c16bb5df64e18665652dcd777885adf0dae6736a
36 DIST simutrans_pak128.Britain.1.18-120-3.zip 67251660 BLAKE2B 6dbebdf77985e2610f4283b1ae252a19cbfcc37cc1c6974e4132300f87c7d881bd87aba29bb01974d56d261ee6694fd81d0d4b09eb0a2854e38de6f278f91b53 SHA512 234a6c3dffa236ae98ba3372efb2e2b2808c0dcc0933ea5f339aa639e0705674435599e27228f0ee82f24af49ffbd7cb7c6c076ff6569a7ce622c6b8009c8472
37 DIST simutrans_pak192.comic.0.5.zip 70896173 BLAKE2B 63557e08387802a788f8e77157674847d757a23f329aa452c9ea6c096f875d665bb2090df34886437a2d35519c83b38f03d06566bf052c1ffe3cad718c7c3dfe SHA512 f61ad804d63027e181bb99a92f48d23cf6a6f47047a1ba9e8f83383cc4e6d603c7fe260d0846613d43765d3fc933bf13ae063d8d8176f8aef41db8d6bf187773
38 DIST simutrans_simupak64-122-0.zip 4537410 BLAKE2B 300d0248f4f3781578579f31056810c3f1261660b7d1eaa4ec21e735625c3b499548c560d1b1ee918fd7111ca4f872f77119cffc82014c95753520225226665b SHA512 de099d71392130e26a907f4cd30d5e714cc472cb91c606b3dc5e499653a277750cd971440351fd384c368b453704633ad4eda8ec3e6e16e9ea797080371aaa9d
39 +DIST simutrans_simupak64-123-0.zip 5209700 BLAKE2B 432985b056d2a6ea30a63bb3ce278b6dfa7b02dde390cdbedea68e87538b6fa1626ebe8c2490d1b6e569b53ffa6952c1d72a1e41789a81f05ba3b4705f3b4c7e SHA512 0814bf1b41f8b9d458ffe124a237499f0d9e8105269b983d75c16eb87e164bfa0cd49ff153f603ed56f98e4a04edd483f765230e6e1a182c52fa09eb41c92b71
40
41 diff --git a/games-simulation/simutrans/metadata.xml b/games-simulation/simutrans/metadata.xml
42 index 2d0e0c9220cb..5384b5810c9d 100644
43 --- a/games-simulation/simutrans/metadata.xml
44 +++ b/games-simulation/simutrans/metadata.xml
45 @@ -11,8 +11,10 @@
46 </maintainer>
47 <upstream>
48 <remote-id type="sourceforge">simutrans</remote-id>
49 + <remote-id type="github">aburch/simutrans</remote-id>
50 </upstream>
51 <use>
52 + <flag name="minimal">Don't install any PakSets (scenario data)</flag>
53 <flag name="pak128">Install more detailed scenario data</flag>
54 <flag name="pak128-britain">Install British scenario data</flag>
55 <flag name="pak128-german">Install German scenario data</flag>
56
57 diff --git a/games-simulation/simutrans/simutrans-123.0.1.ebuild b/games-simulation/simutrans/simutrans-123.0.1.ebuild
58 new file mode 100644
59 index 000000000000..0077360fe906
60 --- /dev/null
61 +++ b/games-simulation/simutrans/simutrans-123.0.1.ebuild
62 @@ -0,0 +1,103 @@
63 +# Copyright 1999-2022 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=8
67 +
68 +inherit autotools desktop flag-o-matic optfeature toolchain-funcs xdg
69 +
70 +MY_PV=${PV//./-}
71 +MY_PAK_64="simupak64-123-0.zip"
72 +# Required for network games, published in release announcement.
73 +MY_SVN_REVISION="10421"
74 +
75 +DESCRIPTION="A free Transport Tycoon clone"
76 +HOMEPAGE="https://www.simutrans.com/"
77 +SRC_URI="
78 + mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip
79 + !minimal? ( mirror://sourceforge/simutrans/${MY_PAK_64} -> simutrans_${MY_PAK_64} )
80 + https://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip -> simutrans_language_pack-Base+texts-${PV}.zip
81 + https://github.com/aburch/simutrans/raw/9c84822/simutrans.svg
82 +"
83 +S=${WORKDIR}
84 +
85 +LICENSE="Artistic"
86 +SLOT="0"
87 +KEYWORDS="~amd64 ~x86"
88 +IUSE="minimal truetype upnp zstd"
89 +
90 +DEPEND="
91 + app-arch/bzip2
92 + media-libs/libpng:0
93 + media-libs/libsdl2[sound,video]
94 + media-sound/fluidsynth
95 + sys-libs/zlib
96 + truetype? ( media-libs/freetype )
97 + upnp? ( net-libs/miniupnpc:= )
98 + zstd? ( app-arch/zstd )
99 +"
100 +RDEPEND="
101 + ${DEPEND}
102 + media-sound/fluid-soundfont
103 +"
104 +BDEPEND="
105 + app-arch/unzip
106 + virtual/pkgconfig
107 +"
108 +RESTRICT="test" # Opens the program and doesn't close it.
109 +
110 +src_unpack() {
111 + unpack "simutrans-src-${MY_PV}.zip"
112 + use minimal || unpack "simutrans_${MY_PAK_64}"
113 +
114 + # Bundled text files are incomplete, bug #580948
115 + cd "${S}/simutrans/text" || die
116 + unpack "simutrans_language_pack-Base+texts-${PV}.zip"
117 +}
118 +
119 +src_prepare() {
120 + default
121 + xdg_environment_reset
122 +
123 + strip-flags # bug #293927
124 +
125 + eautoreconf
126 +
127 + # Make it look for the data in the right directory.
128 + sed -i -e "s:argv\[0\]:\"/usr/share/${PN}/\":" simmain.cc || die
129 +}
130 +
131 +src_configure() {
132 + default
133 +
134 + cat > config.default <<-EOF || die
135 + BACKEND=sdl2
136 + OSTYPE=linux
137 + OPTIMISE=0
138 + STATIC=0
139 + MULTI_THREAD=1
140 + USE_UPNP=$(usex upnp 1 0)
141 + USE_FREETYPE=$(usex truetype 1 0)
142 + USE_ZSTD=$(usex zstd 1 0)
143 + USE_FLUIDSYNTH_MIDI=1
144 + VERBOSE=1
145 + FLAGS := -DREVISION="${MY_SVN_REVISION}"
146 +
147 + HOSTCC = $(tc-getCC)
148 + HOSTCXX = $(tc-getCXX)
149 + EOF
150 +}
151 +
152 +src_install() {
153 + newbin build/default/sim ${PN}
154 + insinto usr/share/${PN}
155 + doins -r simutrans/*
156 + doicon "${DISTDIR}"/${PN}.svg
157 + domenu "${FILESDIR}"/${PN}.desktop
158 +}
159 +
160 +pkg_postinst() {
161 + xdg_pkg_postinst
162 +
163 + optfeature_header "Since 123.0 this ebuild only installs the Pak64 PakSet. You can install"
164 + optfeature "other PakSets" games-simulation/simutrans-paksets
165 +}