diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-11 18:12:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-11 18:12:44 +0100 |
commit | fbf92eff5af6136b559e861a10d9e8516e372006 (patch) | |
tree | 8834dd05de853b5d9e569977fa28d7e0d3ee053c /games-simulation | |
parent | 656415c9ea59def40c02f7dff6e0650186b509f3 (diff) |
gentoo auto-resync : 11:10:2023 - 18:12:44
Diffstat (limited to 'games-simulation')
-rw-r--r-- | games-simulation/Manifest.gz | bin | 3938 -> 3938 bytes | |||
-rw-r--r-- | games-simulation/simutrans/Manifest | 3 | ||||
-rw-r--r-- | games-simulation/simutrans/metadata.xml | 1 | ||||
-rw-r--r-- | games-simulation/simutrans/simutrans-123.0.1-r2.ebuild | 109 |
4 files changed, 112 insertions, 1 deletions
diff --git a/games-simulation/Manifest.gz b/games-simulation/Manifest.gz Binary files differindex ac0b809b4d24..b061236de228 100644 --- a/games-simulation/Manifest.gz +++ b/games-simulation/Manifest.gz diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest index 8de6892b3b0f..4fb9b2334bd4 100644 --- a/games-simulation/simutrans/Manifest +++ b/games-simulation/simutrans/Manifest @@ -5,4 +5,5 @@ DIST simutrans.svg 2677 BLAKE2B c60f386b13908cda641f8cb41918f8f0b1c70f9104d14ee3 DIST simutrans_language_pack-Base+texts-123.0.1.zip 1228228 BLAKE2B cf7bd6dd40f1c5a79bec73a8f3bd993fdeb8abe725b1294cef7e0fa7fe374aa18a563cfd81907d7b3a67a5898594730448b4f9038515415a8b44d99ecc5eb8ea SHA512 4d6b66f810fedaf50734d178e329592e174c48ca36611b15403075b02a3a626581993093e6fd6e6f297c973c5f928a054a557cd135fa487c79df3c2f1f6e0ea0 DIST simutrans_simupak64-123-0.zip 5209700 BLAKE2B 432985b056d2a6ea30a63bb3ce278b6dfa7b02dde390cdbedea68e87538b6fa1626ebe8c2490d1b6e569b53ffa6952c1d72a1e41789a81f05ba3b4705f3b4c7e SHA512 0814bf1b41f8b9d458ffe124a237499f0d9e8105269b983d75c16eb87e164bfa0cd49ff153f603ed56f98e4a04edd483f765230e6e1a182c52fa09eb41c92b71 EBUILD simutrans-123.0.1-r1.ebuild 2603 BLAKE2B 7c99652319ef2fd930608ae69e00dbc1fa5f8f5480a5ae9873f2f8638648e10d5768e27c4b71551dc7568b58d96260ddce628339f7a1aae9a8e777723276dbd4 SHA512 f7f9498178c1a1933561b9537a5ddbccf15d2671a3da6bb059f9c515cc51ba88423b22f39c57f8833ef5341027146d427705af79c8090664e9e9ce47ac627d01 -MISC metadata.xml 628 BLAKE2B 385d58995f521a16433f4568081cc44f4ae43d757f11a7adfccbeb512f316f298143c83d4c0228ed61450be4dde2c403133a82e3493c2078c1aa551638fb4a50 SHA512 a5fad160578740a5c17c307577219e2285f6fdac07022dde3127743ace8735092a3881b10a0655f58223e66792983046060d386cacbf437625d061d0994c35b1 +EBUILD simutrans-123.0.1-r2.ebuild 2647 BLAKE2B 6a59656b4d7d32492c4f36f0ee95252c82518a889a7f20c7b9ba62b642850263e06f630fd9cd6a98e9cff055265b77e8eabef22b21164582469424a6acf6efab SHA512 d3debe486a3296d5db86e0770e86ed32169b0c854090033447e5584fb373a34f1ed9aa0b08981b9f74f54828ed27decc1820780d0f63b58f4dfaa11ffcd05354 +MISC metadata.xml 727 BLAKE2B aadf184ae179289b362407eb887a9793b6ade5ce7f5247dd612069ddff76584e2c4449a2a9fbc17afa1a3df43ddab4f3270ff1ffc4337308969d73dec4eb46a1 SHA512 7a9b8f845bdc2ac7d521c89ee4069d29d1e900cac24cf23efca438d8f8ea5d9b3c5d020f93c59e5ca595a8a1dfddb62eea8f6f2a1ae3f0f690d6755191bac991 diff --git a/games-simulation/simutrans/metadata.xml b/games-simulation/simutrans/metadata.xml index bdfc12b3f89d..e4089ed1e978 100644 --- a/games-simulation/simutrans/metadata.xml +++ b/games-simulation/simutrans/metadata.xml @@ -15,5 +15,6 @@ </upstream> <use> <flag name="minimal">Don't install any PakSets (scenario data)</flag> + <flag name="midi">support for background MIDI music via <pkg>media-sound/fluidsynth</pkg></flag> </use> </pkgmetadata> diff --git a/games-simulation/simutrans/simutrans-123.0.1-r2.ebuild b/games-simulation/simutrans/simutrans-123.0.1-r2.ebuild new file mode 100644 index 000000000000..0fafadd3255d --- /dev/null +++ b/games-simulation/simutrans/simutrans-123.0.1-r2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop flag-o-matic optfeature toolchain-funcs xdg + +MY_PV=${PV//./-} +MY_PAK_64="simupak64-123-0.zip" +# Required for network games, published in release announcement. +MY_SVN_REVISION="10421" + +DESCRIPTION="A free Transport Tycoon clone" +HOMEPAGE="https://www.simutrans.com/" +SRC_URI=" + mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip + !minimal? ( mirror://sourceforge/simutrans/${MY_PAK_64} -> simutrans_${MY_PAK_64} ) + https://tastytea.de/files/simutrans_language_pack-Base+texts-${PV}.zip + https://github.com/aburch/simutrans/raw/9c84822/simutrans.svg +" +S=${WORKDIR} + +# NOTE: Get the latest language pack from: +# https://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="minimal +midi truetype upnp zstd" + +DEPEND=" + app-arch/bzip2 + media-libs/libpng:0= + media-libs/libsdl2[sound,video] + sys-libs/zlib + midi? ( media-sound/fluidsynth:=[sdl] ) + truetype? ( media-libs/freetype ) + upnp? ( net-libs/miniupnpc:= ) + zstd? ( app-arch/zstd ) +" +RDEPEND=" + ${DEPEND} + midi? ( media-sound/fluid-soundfont ) +" +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" +RESTRICT="test" # Opens the program and doesn't close it. + +PATCHES=( "${FILESDIR}"/${PN}-123.0.1-silence-svn-and-git-errors.patch ) + +src_unpack() { + unpack "simutrans-src-${MY_PV}.zip" + use minimal || unpack "simutrans_${MY_PAK_64}" + + # Bundled text files are incomplete, bug #580948 + cd "${S}/simutrans/text" || die + unpack "simutrans_language_pack-Base+texts-${PV}.zip" +} + +src_prepare() { + default + xdg_environment_reset + + strip-flags # bug #293927 + append-flags -fno-strict-aliasing # bug #859229 + + eautoreconf + + # Make it look for the data in the right directory. + sed -i -e "s:argv\[0\]:\"/usr/share/${PN}/\":" simmain.cc || die +} + +src_configure() { + default + + cat > config.default <<-EOF || die + BACKEND=sdl2 + OSTYPE=linux + OPTIMISE=0 + STATIC=0 + MULTI_THREAD=1 + USE_UPNP=$(usex upnp 1 0) + USE_FREETYPE=$(usex truetype 1 0) + USE_ZSTD=$(usex zstd 1 0) + USE_FLUIDSYNTH_MIDI=$(usex midi 1 0) + VERBOSE=1 + FLAGS := -DREVISION="${MY_SVN_REVISION}" + + HOSTCC = $(tc-getCC) + HOSTCXX = $(tc-getCXX) + EOF +} + +src_install() { + newbin build/default/sim ${PN} + insinto usr/share/${PN} + doins -r simutrans/* + doicon "${DISTDIR}"/${PN}.svg + domenu "${FILESDIR}"/${PN}.desktop +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature_header "Since 123.0 this ebuild only installs the Pak64 PakSet. You can install" + optfeature "other PakSets" games-simulation/simutrans-paksets +} |