games-simulation/simutrans: Remove package.
This commit is contained in:
parent
998db76b50
commit
7c57eb2ae9
|
@ -1,17 +0,0 @@
|
|||
DIST simutrans-src-120-4-1.zip 4171225 BLAKE2B 5291e73613a2bfa095a98b51d6eaaf5283b9f2b211ddde8dc8aefeccd9459479aad4d233bc975844537fb2792173b9ef15cbf8120117f0f61cd54816912eae69 SHA512 b85b8916e2853a519ccf8c310d67866203e71922aa6b23cd5816fb1924cc64f190735be15a0da9e7c2e94ea844ec6938e91be40ccfa2914f3a3f73d598851357
|
||||
DIST simutrans-src-121-0.zip 4154876 BLAKE2B 36e109e3ffda66618a00cb559f721fc73c7c53c8cd9232672a52b20853eb8a6a3707fce8576a86ef2423011752ba0e7cb2c5c390ae4bd5aaab05f291c394ac01 SHA512 4a4e232596e12169fe4e4c1a5c356e3b2d670c93aa3d5507576fccd0025607854a8cfe5bd184078783e2ef294bd6204dd790968f369dc4db08215ac3a22c815e
|
||||
DIST simutrans-src-122-0.zip 4534293 BLAKE2B c4117baf82530adced1fbb60e099176b7b63ade07e10f741e19e41aedd4b65f5d7b6ab60145f3bce7ff88def9836eac88323b14aa74f2ce5f1c76eeaa6beb713 SHA512 7a044ceda9359847353c1dcd23c380d1ddcca901fd674a25b66d7bd0ede7f974525c5fc3b37781977e9946626f30b538c483166983ab8b7be9e73903dc9be0bd
|
||||
DIST simutrans_PAK128.german_1.1_for_ST_120.4.1.zip 130569973 BLAKE2B 344ad9afc2f8e22893752a27df7eaffb9b9c8112ab6df7f4a40e573fda66249477916b29ec88b563b66aa2ac4a762ea6fc0e017a3d0347c550debef7f121e020 SHA512 99d5e0faec3224dbc95cd9506f21384c4fe7dc99c8d7b3d87cd93aa99815a1b22a1dc62e1c7120a37781c1aa22e76e2fe4255f3effc2c4d97bdb3081e4f4be7b
|
||||
DIST simutrans_PAK128.german_1.2_for_ST_121-0.zip 156036866 BLAKE2B 47bca56715340649b492d2d48419fa47c9bfd91e7094f625782a5be94e1fe3cd207e5d23e89a3b89b9d88e92c1a5ea66b431f6f8e0dc3ecf1ae6e9dd69906e94 SHA512 c182204ee71001fe79de09b2eb945ee05d2d77b83eac0e983317c1d33e26546769de03014abcc4773b9f410b5a92559090b6f449f9f3079fdaa29562b9cf378b
|
||||
DIST simutrans_PAK128.german_2.0_for_ST_122.0.zip 186572954 BLAKE2B 1f21655660f947767657f79fa45f66cd434888c37596e17dbd8400ce684251c33617dc78096c34b23bad3f241cc4641029d0f12b5f09d199013582c89fa02ab3 SHA512 9e6250b333e6b31e0ad23f2629409c2b4914e5fb9cb0304baa1e70f0c268d5eca7db27d77b51f18fff57569df56eecb82c8ec9b48c3a3efacf7d47501546347d
|
||||
DIST simutrans_coalwagonfix.rar 10769 BLAKE2B 4ebb14c5585fcb09b2c9e70451a0a4f1133d1bf7a184c898463c4393026dcbaf10954430d83e64cd7430ec3e3708e0d51f04b805ac0c32656c138b001e617079 SHA512 503c795b4fdc168cc925a3b5ff385880dd28c8e3214a7c5aeb80e937378cf19b1f2408d19f2ab6ef066f47d6f6ab0955e6d5ec59981d1e76fbe3cd661b8bd22e
|
||||
DIST simutrans_language_pack-Base+texts-0.120.4.1.zip 1174644 BLAKE2B 3acd8be8e8bc13fd6df7c06a4cabb0cf73b9b0d680824ad43971fec446e2552c5927e7758ed216f9b2e27416522229058fe2ba67946624ed7f778a8cbec7c0a0 SHA512 6b7f08bb770744b478e91a30fe189d4476a5afa688bd10f2d67eb888b2bbf156d48e6ca39d8495317ca7dda79775e15c01b21ef22438646fd2d8aea8468e650c
|
||||
DIST simutrans_language_pack-Base+texts-0.121.0.zip 1192274 BLAKE2B 680c2bf6af65f72b512dbb56902088e417708d7d1613a57f428fe40b40f1c57e85c4f14fa08d89b2385a5e7876d7852835a649b0c91d3857f9b97c55b5352c70 SHA512 3a5711077da1f26bd7854959e34a50fae19b2ad7e9562bda8083ab51a40eed3bac0236b9fea37fdc293d6aa62d66aba96370e3b4c368ada05b923266ac2ba190
|
||||
DIST simutrans_language_pack-Base+texts-0.122.0.zip 1172877 BLAKE2B 6a1646d8bd1e74a54506cd32508b5dd9da3d2ce77c7920049fea6bd42c6b46b91e9b248860a352380a5f2bb1393f2bbc9b837dcb347c132c7132f6813a608212 SHA512 d87b4f65188f6efd7e277f6ae5796584e58a1302dae7246cd7b6e3c06d8cdc81c5eae647e12cdf7598230c588f66f5682d2be0e6628311343daf4bd46b441278
|
||||
DIST simutrans_pak128-2.8.1.zip 97430218 BLAKE2B 95b6788fd8e4f539b232e9de563227704f16c05951d8cd42ca3faf6b9f625d08108bda068417e9e04c14db8ee6fe860e9b8d958c703719223de770da36ee686b SHA512 c4635a446d9874fe1cf1a15a1ca8eaa50a0888c7679df540aa7509e30db6cb8f9519a27aad10dc481a7762c6c16bb5df64e18665652dcd777885adf0dae6736a
|
||||
DIST simutrans_pak128.Britain.1.18-120-3.zip 67251660 BLAKE2B 6dbebdf77985e2610f4283b1ae252a19cbfcc37cc1c6974e4132300f87c7d881bd87aba29bb01974d56d261ee6694fd81d0d4b09eb0a2854e38de6f278f91b53 SHA512 234a6c3dffa236ae98ba3372efb2e2b2808c0dcc0933ea5f339aa639e0705674435599e27228f0ee82f24af49ffbd7cb7c6c076ff6569a7ce622c6b8009c8472
|
||||
DIST simutrans_pak192.comic.0.5.zip 70896173 BLAKE2B 63557e08387802a788f8e77157674847d757a23f329aa452c9ea6c096f875d665bb2090df34886437a2d35519c83b38f03d06566bf052c1ffe3cad718c7c3dfe SHA512 f61ad804d63027e181bb99a92f48d23cf6a6f47047a1ba9e8f83383cc4e6d603c7fe260d0846613d43765d3fc933bf13ae063d8d8176f8aef41db8d6bf187773
|
||||
DIST simutrans_simupak64-120-4.zip 4531808 BLAKE2B 906291c4b56d2836d0d4379cc715b67a6f1b83b08dbb8175fd82abc0940c478ef4055320d9071c3145b33b2ef3f8b708e308d73de2ca32a2388802ccfc2f13c5 SHA512 c42cbf2257950ff981a2fc7b1cced50ca84610591991cf25431829cc8fcbe110c0031879fca0a128593cb766f91c427fec2d3e657217e94369bc90f69fd172cc
|
||||
DIST simutrans_simupak64-121-0.zip 4422401 BLAKE2B 234a91af5cc46f5152f1645141970ee77431b68d7178912a1b5ab7d7a91dd923b0b29e909b44e43de2d31d2b83b5d5ff812437995ef7bcdb5551e870c134275c SHA512 fcec6d05036837eaa8b18b90b47a08819a05449d17c29c0577d6a39f8200e55668d6fdcd3ab4021bf47b28f03f3bd854eb1d9b2d460e12c37a02679b4e36ea39
|
||||
DIST simutrans_simupak64-122-0.zip 4537410 BLAKE2B 300d0248f4f3781578579f31056810c3f1261660b7d1eaa4ec21e735625c3b499548c560d1b1ee918fd7111ca4f872f77119cffc82014c95753520225226665b SHA512 de099d71392130e26a907f4cd30d5e714cc472cb91c606b3dc5e499653a277750cd971440351fd384c368b453704633ad4eda8ec3e6e16e9ea797080371aaa9d
|
||||
DIST simutrans_simupak64-addon-food-120-4.zip 127332 BLAKE2B e898e079ae4da2239a3b2d39cba8b64191fc5855fca84cc88326ba755010ee553b2c31ba7c736ec97b90960fac1eb18d8b91c932299675621f2ff5a3fa6c9dac SHA512 be27bae01b882f21fb6a390d65c2e914dea44fc75fb352fcec5f53913cdcb46642d55c554e3fbcbcf2bdcce4541633fb9cac064749a176f07cbe66a1e4bf941b
|
|
@ -1,11 +0,0 @@
|
|||
--- a/Makefile 2018-09-17 16:24:15.000000000 +0200
|
||||
+++ b/Makefile 2019-10-19 00:05:32.652384943 +0200
|
||||
@@ -90,8 +90,6 @@
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
-else
|
||||
- CFLAGS += -O
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
|
@ -1,25 +0,0 @@
|
|||
From f0aa149a74c7b0edaa568c2c747d49ad9e1c296e Mon Sep 17 00:00:00 2001
|
||||
From: tastytea <tastytea@tastytea.de>
|
||||
Date: Fri, 31 Jan 2020 05:41:23 +0100
|
||||
Subject: [PATCH] Remove CFLAGS.
|
||||
|
||||
---
|
||||
Makefile | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d3f54684c..f8b42d003 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -83,8 +83,6 @@ ifdef OPTIMISE
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
-else
|
||||
- CFLAGS += -O
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
--
|
||||
2.24.1
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
--- a/Makefile 2020-10-15 08:32:29.000000000 +0200
|
||||
+++ b/Makefile 2020-10-23 15:57:17.517823272 +0200
|
||||
@@ -17,8 +17,8 @@
|
||||
SDL_CONFIG ?= sdl-config
|
||||
SDL2_CONFIG ?= pkg-config sdl2
|
||||
#SDL2_CONFIG ?= sdl2-config
|
||||
-FREETYPE_CONFIG ?= freetype-config
|
||||
-#FREETYPE_CONFIG ?= pkg-config freetype2
|
||||
+#FREETYPE_CONFIG ?= freetype-config
|
||||
+FREETYPE_CONFIG ?= pkg-config freetype2
|
||||
|
||||
BACKENDS = allegro gdi sdl sdl2 mixer_sdl mixer_sdl2 posix
|
||||
OSTYPES = amiga beos freebsd haiku linux mingw mac openbsd
|
||||
@@ -91,7 +91,5 @@
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
-else
|
||||
- CFLAGS += -O
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
|
@ -1,9 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Simutrans
|
||||
Encoding=UTF-8
|
||||
Comment=A free Transport Tycoon clone
|
||||
TryExec=simutrans
|
||||
Exec=simutrans
|
||||
Icon=simutrans
|
||||
Terminal=false
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">simutrans</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="freetype">Add support for Truetype fonts via media-libs/freetype</flag>
|
||||
<flag name="pak128">Install more detailed theme</flag>
|
||||
<flag name="pak128-britain">Install british theme</flag>
|
||||
<flag name="pak128-german">Install german theme</flag>
|
||||
<flag name="pak192-comic">Install comic-like theme</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
|
@ -1,106 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic xdg-utils
|
||||
|
||||
MY_PV=${PV/0./}
|
||||
MY_PV=${MY_PV//./-}
|
||||
SIMUPAK_64="simupak64-${MY_PV%-[0-9]*}.zip"
|
||||
SIMUPAK_128_V="2.8.1"
|
||||
SIMUPAK_128_BRITAIN="pak128.Britain.1.18-120-3.zip"
|
||||
SIMUPAK_128_GERMAN="PAK128.german_1.1_for_ST_120.4.1.zip"
|
||||
SIMUPAK_192_COMIC="pak192.comic.0.5.zip"
|
||||
|
||||
DESCRIPTION="A free Transport Tycoon clone"
|
||||
HOMEPAGE="http://www.simutrans.com/"
|
||||
SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip
|
||||
http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip -> simutrans_language_pack-Base+texts-${PV}.zip
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_64} -> simutrans_${SIMUPAK_64}
|
||||
pak128? ( https://download.sourceforge.net/simutrans/pak128/pak128%20for%20ST%20${PV/0./}%20%28${SIMUPAK_128_V}%2C%20priority%20signals%20%2B%20bugfix%29/pak128.zip -> simutrans_pak128-${SIMUPAK_128_V}.zip )
|
||||
pak128-britain? ( mirror://sourceforge/simutrans/${SIMUPAK_128_BRITAIN} -> simutrans_${SIMUPAK_128_BRITAIN} )
|
||||
pak128-german? ( mirror://sourceforge/simutrans/${SIMUPAK_128_GERMAN} -> simutrans_${SIMUPAK_128_GERMAN} )
|
||||
pak192-comic? (
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_192_COMIC} -> simutrans_${SIMUPAK_192_COMIC}
|
||||
https://www.dropbox.com/s/3wwyrajrr2oqzo6/coalwagons.rar?dl=1 -> simutrans_coalwagonfix.rar
|
||||
)"
|
||||
|
||||
LICENSE="Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="+pak128 +pak128-britain +pak128-german +pak192-comic"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
media-libs/sdl-mixer[midi]
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl[sound,video]"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-arch/unzip
|
||||
virtual/imagemagick-tools[png]"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PV}-Makefile.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack "simutrans-src-${MY_PV}.zip"
|
||||
unpack "simutrans_${SIMUPAK_64}"
|
||||
use pak128 && unpack "simutrans_pak128-${SIMUPAK_128_V}.zip"
|
||||
use pak128-britain && unpack "simutrans_${SIMUPAK_128_BRITAIN}"
|
||||
use pak128-german && unpack "simutrans_${SIMUPAK_128_GERMAN}"
|
||||
if use pak192-comic; then
|
||||
unpack "simutrans_${SIMUPAK_192_COMIC}"
|
||||
cd simutrans/pak192.comic || die
|
||||
unpack "simutrans_coalwagonfix.rar" # Fixes invisible wagons.
|
||||
fi
|
||||
|
||||
# Bundled text files are incomplete, bug #580948
|
||||
cd "${S}/simutrans/text" || die
|
||||
unpack "simutrans_language_pack-Base+texts-${PV}.zip"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
strip-flags # bug #293927
|
||||
printf "BACKEND=mixer_sdl\nCOLOUR_DEPTH=16\nOSTYPE=linux\nVERBOSE=1" \
|
||||
> config.default || die
|
||||
|
||||
# make it look in the install location for the data
|
||||
sed -i \
|
||||
-e "s:argv\[0\]:\"/usr/share/${PN}/\":" \
|
||||
simmain.cc || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
# Convert icon to PNG for Desktop Entry.
|
||||
convert simutrans.ico simutrans.png || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin build/default/sim ${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r simutrans/*
|
||||
dodoc documentation/*
|
||||
insinto /usr/share/icons/hicolor/32x32/apps
|
||||
doins simutrans.png
|
||||
insinto /usr/share/applications
|
||||
doins "${FILESDIR}/${PN}.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop flag-o-matic xdg-utils
|
||||
|
||||
MY_PV=${PV/0./}
|
||||
MY_PV=${MY_PV//./-}
|
||||
SIMUPAK_64="simupak64-${MY_PV%-[0-9]*}-0.zip"
|
||||
SIMUPAK_64_ADDON="simupak64-addon-food-120-4.zip"
|
||||
SIMUPAK_128_V="2.8.1"
|
||||
SIMUPAK_128_BRITAIN="pak128.Britain.1.18-120-3.zip"
|
||||
SIMUPAK_128_GERMAN="PAK128.german_1.2_for_ST_121-0.zip"
|
||||
SIMUPAK_192_COMIC="pak192.comic.0.5.zip"
|
||||
|
||||
DESCRIPTION="A free Transport Tycoon clone"
|
||||
HOMEPAGE="https://www.simutrans.com/"
|
||||
SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip
|
||||
https://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip -> simutrans_language_pack-Base+texts-${PV}.zip
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_64} -> simutrans_${SIMUPAK_64}
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_64_ADDON} -> simutrans_${SIMUPAK_64_ADDON}
|
||||
pak128? ( https://download.sourceforge.net/simutrans/pak128/pak128%20for%20ST%20120.4.1%20%28${SIMUPAK_128_V}%2C%20priority%20signals%20%2B%20bugfix%29/pak128.zip -> simutrans_pak128-${SIMUPAK_128_V}.zip )
|
||||
pak128-britain? ( mirror://sourceforge/simutrans/${SIMUPAK_128_BRITAIN} -> simutrans_${SIMUPAK_128_BRITAIN} )
|
||||
pak128-german? ( mirror://sourceforge/simutrans/${SIMUPAK_128_GERMAN} -> simutrans_${SIMUPAK_128_GERMAN} )
|
||||
pak192-comic? (
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_192_COMIC} -> simutrans_${SIMUPAK_192_COMIC}
|
||||
https://www.dropbox.com/s/3wwyrajrr2oqzo6/coalwagons.rar?dl=1 -> simutrans_coalwagonfix.rar
|
||||
)"
|
||||
|
||||
LICENSE="Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="+pak128 +pak128-britain +pak128-german +pak192-comic"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
media-libs/sdl-mixer[midi]
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl[sound,video]"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
|| ( app-arch/zip app-arch/unzip )
|
||||
virtual/imagemagick-tools[png]
|
||||
|| ( app-arch/rar app-arch/unrar )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/0.121.0-Remove_CFLAGS.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack "simutrans-src-${MY_PV}.zip"
|
||||
unpack "simutrans_${SIMUPAK_64}"
|
||||
unpack "simutrans_${SIMUPAK_64_ADDON}"
|
||||
use pak128 && unpack "simutrans_pak128-${SIMUPAK_128_V}.zip"
|
||||
use pak128-britain && unpack "simutrans_${SIMUPAK_128_BRITAIN}"
|
||||
use pak128-german && unpack "simutrans_${SIMUPAK_128_GERMAN}"
|
||||
if use pak192-comic; then
|
||||
unpack "simutrans_${SIMUPAK_192_COMIC}"
|
||||
cd simutrans/pak192.comic || die
|
||||
unpack "simutrans_coalwagonfix.rar" # Fixes invisible wagons.
|
||||
fi
|
||||
|
||||
# Bundled text files are incomplete, bug #580948
|
||||
cd "${S}/simutrans/text" || die
|
||||
unpack "simutrans_language_pack-Base+texts-${PV}.zip"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
strip-flags # bug #293927
|
||||
printf "BACKEND=mixer_sdl\nCOLOUR_DEPTH=16\nOSTYPE=linux\nVERBOSE=1" \
|
||||
> config.default || die
|
||||
|
||||
# make it look in the install location for the data
|
||||
sed -i \
|
||||
-e "s:argv\[0\]:\"/usr/share/${PN}/\":" \
|
||||
simmain.cc || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
# Convert icon to PNG for Desktop Entry.
|
||||
convert simutrans.ico simutrans.png || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin build/default/sim ${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r simutrans/*
|
||||
dodoc documentation/*
|
||||
insinto /usr/share/icons/hicolor/32x32/apps
|
||||
doins simutrans.png
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop flag-o-matic xdg-utils
|
||||
|
||||
MY_PV=${PV/0./}
|
||||
MY_PV=${MY_PV//./-}
|
||||
SIMUPAK_64="simupak64-${MY_PV%-[0-9]*}-0.zip"
|
||||
SIMUPAK_128_V="2.8.1"
|
||||
SIMUPAK_128_BRITAIN="pak128.Britain.1.18-120-3.zip"
|
||||
SIMUPAK_128_GERMAN="PAK128.german_2.0_for_ST_122.0.zip"
|
||||
SIMUPAK_192_COMIC="pak192.comic.0.5.zip"
|
||||
|
||||
DESCRIPTION="A free Transport Tycoon clone"
|
||||
HOMEPAGE="https://www.simutrans.com/"
|
||||
SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip
|
||||
https://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip -> simutrans_language_pack-Base+texts-${PV}.zip
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_64} -> simutrans_${SIMUPAK_64}
|
||||
pak128? ( https://download.sourceforge.net/simutrans/pak128/pak128%20for%20ST%20120.4.1%20%28${SIMUPAK_128_V}%2C%20priority%20signals%20%2B%20bugfix%29/pak128.zip -> simutrans_pak128-${SIMUPAK_128_V}.zip )
|
||||
pak128-britain? ( mirror://sourceforge/simutrans/${SIMUPAK_128_BRITAIN} -> simutrans_${SIMUPAK_128_BRITAIN} )
|
||||
pak128-german? ( mirror://sourceforge/simutrans/${SIMUPAK_128_GERMAN} -> simutrans_${SIMUPAK_128_GERMAN} )
|
||||
pak192-comic? (
|
||||
mirror://sourceforge/simutrans/${SIMUPAK_192_COMIC} -> simutrans_${SIMUPAK_192_COMIC}
|
||||
https://www.dropbox.com/s/3wwyrajrr2oqzo6/coalwagons.rar?dl=1 -> simutrans_coalwagonfix.rar
|
||||
)"
|
||||
|
||||
LICENSE="Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="freetype +pak128 +pak128-britain +pak128-german +pak192-comic upnp"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
media-libs/sdl-mixer[midi]
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl2[sound,video]
|
||||
freetype? ( media-libs/freetype )
|
||||
upnp? ( net-libs/miniupnpc )
|
||||
app-arch/zstd
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
|| ( app-arch/zip app-arch/unzip )
|
||||
virtual/imagemagick-tools[png]
|
||||
|| ( app-arch/rar app-arch/unrar )
|
||||
"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
PATCHES=("${FILESDIR}/simutrans-0.122.0-Fix-Makefile.patch" )
|
||||
|
||||
src_unpack() {
|
||||
unpack "simutrans-src-${MY_PV}.zip"
|
||||
unpack "simutrans_${SIMUPAK_64}"
|
||||
use pak128 && unpack "simutrans_pak128-${SIMUPAK_128_V}.zip"
|
||||
use pak128-britain && unpack "simutrans_${SIMUPAK_128_BRITAIN}"
|
||||
use pak128-german && unpack "simutrans_${SIMUPAK_128_GERMAN}"
|
||||
if use pak192-comic; then
|
||||
unpack "simutrans_${SIMUPAK_192_COMIC}"
|
||||
cd simutrans/pak192.comic || die
|
||||
unpack "simutrans_coalwagonfix.rar" # Fixes invisible wagons.
|
||||
fi
|
||||
|
||||
# Bundled text files are incomplete, bug #580948
|
||||
cd "${S}/simutrans/text" || die
|
||||
unpack "simutrans_language_pack-Base+texts-${PV}.zip"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
strip-flags # bug #293927
|
||||
printf "%s\n" "BACKEND=mixer_sdl" \
|
||||
"OSTYPE=linux" \
|
||||
"MULTI_THREAD=1" \
|
||||
"USE_UPNP=$(usex upnp 1 0)" \
|
||||
"USE_FREETYPE=$(usex freetype 1 0)" \
|
||||
"USE_ZSTD=$(usex zstd 1 0)" \
|
||||
"VERBOSE=1" \
|
||||
"STATIC=0" \
|
||||
> config.default || die
|
||||
|
||||
# make it look in the install location for the data
|
||||
sed -i \
|
||||
-e "s:argv\[0\]:\"/usr/share/${PN}/\":" \
|
||||
simmain.cc || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
# Convert icon to PNG for Desktop Entry.
|
||||
convert simutrans.ico simutrans.png || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin build/default/sim ${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r simutrans/*
|
||||
doicon simutrans.png
|
||||
domenu "${FILESDIR}/${PN}.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
|
@ -1,8 +1,3 @@
|
|||
# tastytea <gentoo@tastytea.de> (2020-10-23)
|
||||
# The newest version is in ::gentoo now, please use that instead. Masked for
|
||||
# removal in 30 days.
|
||||
games-simulation/simutrans
|
||||
|
||||
# tastytea <gentoo@tastytea.de> (2020-11-16)
|
||||
# Unmaintained. Use dev-cpp/mastodonpp instead. Masked for removal in 30 days.
|
||||
dev-cpp/mastodon-cpp
|
||||
|
|
Reference in New Issue
Block a user