diff options
author | Henry Gebhardt <hsggebhardt@googlemail.com> | 2011-03-30 23:54:34 +0200 |
---|---|---|
committer | Henry Gebhardt <hsggebhardt@googlemail.com> | 2011-03-30 23:54:34 +0200 |
commit | ffcefd0e7ea4116c82e0ae5bb5bfb44ebe1de3c1 (patch) | |
tree | 17397929edc762e4bdb2bd730b4f51bf267873f1 /games-simulation | |
parent | app-backup/bup-0.24b: Minor version bump (diff) | |
download | kork-ffcefd0e7ea4116c82e0ae5bb5bfb44ebe1de3c1.tar.gz kork-ffcefd0e7ea4116c82e0ae5bb5bfb44ebe1de3c1.tar.bz2 kork-ffcefd0e7ea4116c82e0ae5bb5bfb44ebe1de3c1.zip |
games-simulation/simutrans-0.102.2.2: Copy from main tree
Diffstat (limited to 'games-simulation')
-rw-r--r-- | games-simulation/simutrans/Manifest | 5 | ||||
-rw-r--r-- | games-simulation/simutrans/metadata.xml | 5 | ||||
-rw-r--r-- | games-simulation/simutrans/simutrans-0.102.2.2.ebuild | 65 |
3 files changed, 75 insertions, 0 deletions
diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest new file mode 100644 index 0000000..419f3e5 --- /dev/null +++ b/games-simulation/simutrans/Manifest @@ -0,0 +1,5 @@ +DIST simulinux-complete-102-2-2.zip 6115022 RMD160 6539c3bc66d4c6a9e6f67dbcf640e0f1588c9618 SHA1 f74d2ac9e03f86754881006c7a36d7089a6d1d6b SHA256 0f7752b7625ecfe18ab29f724321249ca9cc49cc9e05e392b3d19190188a6c98 +DIST simupak64-addon-food-102-2-1.zip 113454 RMD160 f57902d9c882196e50042daa31ba8f0b540599ee SHA1 e41abf1bdd480190bf7a46764895b43b9d65d3c1 SHA256 7add9c3e3dc3959c6a39776043a16beb92f6f59190fcae25b29e367c17e24607 +DIST simutrans-src-102-2-2.zip 2498680 RMD160 c521a50a25fff19a292571f093c0352dead4e941 SHA1 e956fefcf181a32f999d68ff49dbb73c9d9ff566 SHA256 b105013ba180706a4790eddf19e007e1955c4ef7daa1c90fb6aaa48c28134351 +EBUILD simutrans-0.102.2.2.ebuild 1629 RMD160 ffc28a5b8bf8e254495d5ec8f9999aa4eadbf4ca SHA1 b0c9cd9c81d4cbb8cc77960dbb36dfefd08e2ccd SHA256 5ab49c07663788caaa3b90ca2403e6025f2b268f1f226743d2f3d02ae8e896f7 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-simulation/simutrans/metadata.xml b/games-simulation/simutrans/metadata.xml new file mode 100644 index 0000000..d3c2cc9 --- /dev/null +++ b/games-simulation/simutrans/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> 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 0000000..e0b3330 --- /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.3 2010/05/24 18:57:09 pacho 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 +} |