summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-09-15 12:16:33 -0500
committerAustin English <wizardedit@gentoo.org>2016-09-15 12:18:15 -0500
commitd184c167e5985c496390425cf717e116b08d7523 (patch)
tree61ceb442bae7949cb87e4c141f2f15cf76d15057 /games-simulation/simutrans/simutrans-0.120.1.3-r1.ebuild
parentgames-simulation/singularity: remove deprecated games eclass (diff)
downloadgentoo-d184c167e5985c496390425cf717e116b08d7523.tar.gz
gentoo-d184c167e5985c496390425cf717e116b08d7523.tar.bz2
gentoo-d184c167e5985c496390425cf717e116b08d7523.zip
games-simulation/simutrans: fix missing text files
Also remove deprecated games eclass Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/580948 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-simulation/simutrans/simutrans-0.120.1.3-r1.ebuild')
-rw-r--r--games-simulation/simutrans/simutrans-0.120.1.3-r1.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/games-simulation/simutrans/simutrans-0.120.1.3-r1.ebuild b/games-simulation/simutrans/simutrans-0.120.1.3-r1.ebuild
new file mode 100644
index 00000000000..6912a06d850
--- /dev/null
+++ b/games-simulation/simutrans/simutrans-0.120.1.3-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit flag-o-matic eutils
+
+MY_PV=${PV/0./}
+MY_PV=${MY_PV//./-}
+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
+ mirror://sourceforge/simutrans/simupak64-${MY_PV/3/2}.zip" #FIXME: rev bump when .3 is released
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ app-arch/bzip2
+ media-libs/libpng:0
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-Makefile.patch
+)
+
+src_unpack() {
+ unpack simutrans-src-${MY_PV}.zip
+ unpack simupak64-${MY_PV/3/2}.zip
+
+ # Bundled text files are incomplete, bug #580948
+ cd "${S}/simutrans/text" || die
+ unpack language_pack-Base+texts.zip
+}
+
+src_prepare() {
+ default
+
+ strip-flags # bug #293927
+ echo "BACKEND=mixer_sdl
+COLOUR_DEPTH=16
+OSTYPE=linux
+VERBOSE=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
+
+ rm -f simutrans/{simutrans,*.txt}
+}
+
+src_install() {
+ newbin build/default/sim ${PN}
+ insinto /usr/share/${PN}
+ doins -r simutrans/*
+ dodoc documentation/*
+ doicon simutrans.ico
+ make_desktop_entry simutrans Simutrans /usr/share/pixmaps/simutrans.ico
+}