summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-03-25 04:45:39 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-03-25 04:45:39 +0000
commit0ff1a9b8b1570e1fb89d9c48b498a78f23ed3b7e (patch)
treee5f6366ff450b09c9f6d8008a5ff335b9637dc69 /games-simulation
parentStable for HPPA (bug #309703). (diff)
downloadgentoo-2-0ff1a9b8b1570e1fb89d9c48b498a78f23ed3b7e.tar.gz
gentoo-2-0ff1a9b8b1570e1fb89d9c48b498a78f23ed3b7e.tar.bz2
gentoo-2-0ff1a9b8b1570e1fb89d9c48b498a78f23ed3b7e.zip
Version bump (patch from Matthias Maier via bug #310931)
(Portage version: 2.1.7.17/cvs/Linux i686)
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/simutrans/ChangeLog8
-rw-r--r--games-simulation/simutrans/simutrans-0.102.2.2.ebuild65
2 files changed, 72 insertions, 1 deletions
diff --git a/games-simulation/simutrans/ChangeLog b/games-simulation/simutrans/ChangeLog
index c2c65d0747d6..82a374a0b51c 100644
--- a/games-simulation/simutrans/ChangeLog
+++ b/games-simulation/simutrans/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-simulation/simutrans
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/ChangeLog,v 1.23 2010/01/18 22:21:26 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/ChangeLog,v 1.24 2010/03/25 04:45:39 mr_bones_ Exp $
+
+*simutrans-0.102.2.2 (25 Mar 2010)
+
+ 25 Mar 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ +simutrans-0.102.2.2.ebuild:
+ Version bump (patch from Matthias Maier via bug #310931)
18 Jan 2010; Markus Meier <maekke@gentoo.org> simutrans-0.102.2.ebuild:
amd64/x86 stable, bug #299697
diff --git a/games-simulation/simutrans/simutrans-0.102.2.2.ebuild b/games-simulation/simutrans/simutrans-0.102.2.2.ebuild
new file mode 100644
index 000000000000..2f8fe9f86a80
--- /dev/null
+++ b/games-simulation/simutrans/simutrans-0.102.2.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/simutrans-0.102.2.2.ebuild,v 1.1 2010/03/25 04:45:39 mr_bones_ Exp $
+
+EAPI=2
+inherit flag-o-matic eutils games
+
+MY_PV=${PV/0./}
+MY_PV=${MY_PV//./-}
+MY_FOOD_PV=${MY_PV/%-2/-1}
+DESCRIPTION="A free Transport Tycoon clone"
+HOMEPAGE="http://www.simutrans.com/"
+SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip
+ mirror://sourceforge/simutrans/simulinux-complete-${MY_PV}.zip
+ mirror://sourceforge/simutrans/simupak64-addon-food-${MY_FOOD_PV}.zip"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[audio,video]
+ sys-libs/zlib
+ media-libs/libpng
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_prepare() {
+ strip-flags # bug #293927
+ echo "BACKEND=mixer_sdl
+COLOUR_DEPTH=16
+OSTYPE=linux
+FLAGS=-DSTEPS16" > config.default \
+ || die "echo failed"
+
+ if use amd64; then
+ echo "FLAGS+=-DUSE_C" >> config.default
+ fi
+ # make it look in the install location for the data
+ sed -i \
+ -e "s:argv\[0\]:\"${GAMES_DATADIR}/${PN}/\":" \
+ simmain.cc \
+ || die "sed failed"
+
+ # Please don't override our CFLAGS, kthx
+ sed -i \
+ -e '/-O$/d' \
+ Makefile \
+ || die "sed failed"
+
+ rm -f simutrans/simutrans
+}
+
+src_install() {
+ newgamesbin sim ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r simutrans/* || die "doins failed"
+ dodoc documentation/* todo.txt
+ doicon simutrans.ico
+ make_desktop_entry simutrans Simutrans /usr/share/pixmaps/simutrans.ico
+ prepgamesdirs
+}