summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-simulation/openttd')
-rw-r--r--games-simulation/openttd/ChangeLog8
-rw-r--r--games-simulation/openttd/Manifest14
-rw-r--r--games-simulation/openttd/openttd-0.7.1.ebuild115
3 files changed, 135 insertions, 2 deletions
diff --git a/games-simulation/openttd/ChangeLog b/games-simulation/openttd/ChangeLog
index acf8404bd384..7d7d75dc4719 100644
--- a/games-simulation/openttd/ChangeLog
+++ b/games-simulation/openttd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-simulation/openttd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.69 2009/04/05 17:38:04 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.70 2009/07/02 21:36:41 scarabeus Exp $
+
+*openttd-0.7.1 (02 Jul 2009)
+
+ 02 Jul 2009; Tomáš Chvátal <scarabeus@gentoo.org>
+ +openttd-0.7.1.ebuild:
+ Version bump per bug #273753
05 Apr 2009; Michael Sterrett <mr_bones_@gentoo.org> openttd-0.7.0.ebuild:
configure is a bash script (bug #264963)
diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest
index 4125b839cdf6..61dac5315940 100644
--- a/games-simulation/openttd/Manifest
+++ b/games-simulation/openttd/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX install.patch 5471 RMD160 3db7bbfcf7b1e8da872263d24184220296f2d982 SHA1 3d1fab46598dc8c20558dad18488e6b5f08352c2 SHA256 02b3ff940a49ad59e24846b6488a81e01828260cd33c4f620262e3d009fc2043
AUX libiconv.patch 1461 RMD160 8122de4e7a15f877c3948ee23231376640b7bde0 SHA1 651dd41c29ed0b260c4a7056950b8f346025bcae SHA256 38208cd0c32bbc367356620f9f2e4452b2004d59496ac8fb05dc165aea307c16
AUX menu_name.patch 439 RMD160 eab4d7d23fdea12c4589b5735d22a7bccfa38376 SHA1 513ab0ccc9d75fd118030d88659a731f55c7fe8b SHA256 8b5a9c0cc3d804dee0cc6f7a8298f69370951593cec2b2644ee1bc8c4a0b3b52
@@ -7,7 +10,16 @@ DIST openttd-0.4.8-scenarios.tar.bz2 5000799 RMD160 a6c2fa9f81e4e4628adb9c3932de
DIST openttd-0.5.0-scenarios.tar.bz2 917117 RMD160 f6ea4a4004bb0c90de9283a92b14da4bd99bc33c SHA1 965fc34bbe9998741ea07531772c9673b33aab99 SHA256 c89e652aca1a9ad9f0f4936dd99cd8a9c96f4c53450990ff87d87483f8e74a31
DIST openttd-0.6.3-source.tar.bz2 4609714 RMD160 ab1f2ae17cbc97c2ebc4eceb1496bc708e6d83d4 SHA1 5fb359789fae9b03550da268973fb1238ddf224c SHA256 2d60e8a08768a9c81f37e699df6890c12d53f4d56b5562724c3a9ffa302c7197
DIST openttd-0.7.0-source.tar.bz2 4827319 RMD160 389618bea76513e1891d9eb5bfead834c66b173d SHA1 a55402a49ccd87b574b12183abb4239b92ea98f5 SHA256 5606338bd504c8248c7c39f00c5b66234158e92177d64715748adcc98c8f4720
+DIST openttd-0.7.1-source.tar.bz2 4856729 RMD160 cb16b6deb761b1cf3d835527df5f46f949e136eb SHA1 dfb3dd962b6321ce461fc45a61e25a7bebb487ca SHA256 d3a78fab9e8135a30a4793c7ecac3dcfcb1ddca98aa679c73fd7d8fd8b9273bc
EBUILD openttd-0.6.3.ebuild 4226 RMD160 1b9c87b272b79aa0a7b5ca3ecab1654092b6bb3f SHA1 b2de50caf8c5c37423dcd988783af6abb6536649 SHA256 00cb692cd9a906e3d2185008f48f8c57a2e8743029a012934daa134bc759dabc
EBUILD openttd-0.7.0.ebuild 3230 RMD160 49bdd4b39a2491bef3f996605f9ab787f613dc56 SHA1 e94a1c2674b8188bef533b6c7df319930843dc7c SHA256 29608dfc13f86448ffbbe677286418d0f567ed4a6e933ce3ee595e6ba226503d
-MISC ChangeLog 9129 RMD160 dd8ad90dcb6fce6e85ffed69c425786bc61ea556 SHA1 8f908e32886c9f5a648545cbd1b9d887d1ccf639 SHA256 1b114053655fc672dd8ca17d1213fc78f301a306495b1550ed5381d24b178fd2
+EBUILD openttd-0.7.1.ebuild 3178 RMD160 d3a504b536ff384fd0c91da3f3ac1166ba6a708c SHA1 1aa006059f5ceec7928bab5976d0e5df33e14eae SHA256 207f34fec2280036f1b3822ed6ca10d2a0266057f660e4de6e82317832bd0a44
+MISC ChangeLog 9271 RMD160 cdc099323f697d7ec21cfe85eaec77843c0aa1d0 SHA1 21cf2fe198c6ca1be197f9a5c3f2996af1bc92bb SHA256 d7ac65f84bc0a9fd6978fdbe1b59c51ec3a5873b90eab20e05f9cf3a296dd7a5
MISC metadata.xml 307 RMD160 83f20da47827470c3f19c6849fc14217b47389a7 SHA1 ca4ccf0fe4b5abf21a994189f9d689e8a2616128 SHA256 ab66512663eaf8f6d321f0efb9643951f9dab6fda5d8789d1cb83eb6cc82e8e7
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkpNKHUACgkQHB6c3gNBRYf5kQCgporoNIzh4MjJ49F9Or8R6VUq
+WMcAoLjEyFT1dDlUE+JhXis27y1+qmS2
+=R/zz
+-----END PGP SIGNATURE-----
diff --git a/games-simulation/openttd/openttd-0.7.1.ebuild b/games-simulation/openttd/openttd-0.7.1.ebuild
new file mode 100644
index 000000000000..b20c3ad9e71d
--- /dev/null
+++ b/games-simulation/openttd/openttd-0.7.1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.7.1.ebuild,v 1.1 2009/07/02 21:36:41 scarabeus Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
+HOMEPAGE="http://www.openttd.org/"
+SRC_URI="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="alsa debug dedicated iconv icu +png +truetype zlib"
+RESTRICT="test"
+
+DEPEND="
+ !dedicated? (
+ media-libs/libsdl[X]
+ icu? ( dev-libs/icu )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ sys-libs/zlib
+ )
+ )
+ iconv? ( virtual/libiconv )
+ png? ( media-libs/libpng )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}
+ !dedicated? (
+ alsa? ( media-sound/alsa-utils[midi] )
+ )"
+
+src_configure() {
+ local myopts
+
+ use debug && myopts="${myopts} --enable-debug=3"
+
+ if use dedicated ; then
+ myopts="${myopts} --enable-dedicated"
+ else
+ use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi"
+ myopts="${myopts}
+ $(use_with truetype freetype)
+ $(use_with icu)
+ --with-sdl"
+ fi
+ if use png || { use !dedicated && use truetype; } || use zlib ; then
+ myopts="${myopts} --with-zlib"
+ else
+ myopts="${myopts} --without-zlib"
+ fi
+
+ # there is an allegro interface available as well as sdl, but
+ # the configure for it looks broken so the sdl interface is
+ # always built instead.
+ myopts="${myopts} --without-allegro"
+
+ # configure is a hand-written bash-script, so econf will not work
+ ./configure \
+ --disable-strip \
+ --prefix-dir=/ \
+ --binary-dir="${GAMES_BINDIR}" \
+ --data-dir="${GAMES_DATADIR}/${PN}" \
+ --install-dir="${D}" \
+ --doc-dir=share/doc/${PF} \
+ --menu-group="Game;Simulation;" \
+ ${myopts} \
+ $(use_with iconv) \
+ $(use_with png) \
+ || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ if use dedicated ; then
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
+ fi
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING
+ prepalldocs
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog
+ elog "In order to play, you must copy the following 6 files from "
+ elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
+ elog
+ elog "From the WINDOWS version you need: "
+ elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
+ elog "OR from the DOS version you need: "
+ elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
+ elog
+ elog "File names are case sensitive so make sure they are "
+ elog "correct for whichever version you have."
+ elog
+
+ if use dedicated ; then
+ ewarn "Warning: The init script will kill all running openttd"
+ ewarn "processes when run, including any running client sessions!"
+ else
+ if use alsa ; then
+ elog "You have emerged with 'aplaymidi' for playing MIDI."
+ elog "You have to set the environment variable ALSA_OUTPUT_PORTS."
+ elog "Available ports can be listed by using 'aplaymidi -l'."
+ else
+ elog "alsa not in USE so music will not be played during the game."
+ fi
+ fi
+}