Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-simulation/openttd: openttd-0.7.1.ebuild ChangeLog
Date: Thu, 02 Jul 2009 21:36:43
Message-Id: E1MMTxR-0002tE-Jw@stork.gentoo.org
1 scarabeus 09/07/02 21:36:41
2
3 Modified: ChangeLog
4 Added: openttd-0.7.1.ebuild
5 Log:
6 Version bump per bug #273753.
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.70 games-simulation/openttd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.70&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.70&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.69&r2=1.70
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v
19 retrieving revision 1.69
20 retrieving revision 1.70
21 diff -u -r1.69 -r1.70
22 --- ChangeLog 5 Apr 2009 17:38:04 -0000 1.69
23 +++ ChangeLog 2 Jul 2009 21:36:41 -0000 1.70
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-simulation/openttd
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.69 2009/04/05 17:38:04 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.70 2009/07/02 21:36:41 scarabeus Exp $
29 +
30 +*openttd-0.7.1 (02 Jul 2009)
31 +
32 + 02 Jul 2009; Tomáš Chvátal <scarabeus@g.o>
33 + +openttd-0.7.1.ebuild:
34 + Version bump per bug #273753
35
36 05 Apr 2009; Michael Sterrett <mr_bones_@g.o> openttd-0.7.0.ebuild:
37 configure is a bash script (bug #264963)
38
39
40
41 1.1 games-simulation/openttd/openttd-0.7.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.7.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.7.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openttd-0.7.1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.7.1.ebuild,v 1.1 2009/07/02 21:36:41 scarabeus Exp $
51
52 EAPI=2
53 inherit eutils games
54
55 DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
56 HOMEPAGE="http://www.openttd.org/"
57 SRC_URI="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
62 IUSE="alsa debug dedicated iconv icu +png +truetype zlib"
63 RESTRICT="test"
64
65 DEPEND="
66 !dedicated? (
67 media-libs/libsdl[X]
68 icu? ( dev-libs/icu )
69 truetype? (
70 media-libs/fontconfig
71 media-libs/freetype:2
72 sys-libs/zlib
73 )
74 )
75 iconv? ( virtual/libiconv )
76 png? ( media-libs/libpng )
77 zlib? ( sys-libs/zlib )"
78 RDEPEND="${DEPEND}
79 !dedicated? (
80 alsa? ( media-sound/alsa-utils[midi] )
81 )"
82
83 src_configure() {
84 local myopts
85
86 use debug && myopts="${myopts} --enable-debug=3"
87
88 if use dedicated ; then
89 myopts="${myopts} --enable-dedicated"
90 else
91 use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi"
92 myopts="${myopts}
93 $(use_with truetype freetype)
94 $(use_with icu)
95 --with-sdl"
96 fi
97 if use png || { use !dedicated && use truetype; } || use zlib ; then
98 myopts="${myopts} --with-zlib"
99 else
100 myopts="${myopts} --without-zlib"
101 fi
102
103 # there is an allegro interface available as well as sdl, but
104 # the configure for it looks broken so the sdl interface is
105 # always built instead.
106 myopts="${myopts} --without-allegro"
107
108 # configure is a hand-written bash-script, so econf will not work
109 ./configure \
110 --disable-strip \
111 --prefix-dir=/ \
112 --binary-dir="${GAMES_BINDIR}" \
113 --data-dir="${GAMES_DATADIR}/${PN}" \
114 --install-dir="${D}" \
115 --doc-dir=share/doc/${PF} \
116 --menu-group="Game;Simulation;" \
117 ${myopts} \
118 $(use_with iconv) \
119 $(use_with png) \
120 || die "configure failed"
121 }
122
123 src_install() {
124 emake DESTDIR="${D}" install || die "emake install failed"
125 if use dedicated ; then
126 newinitd "${FILESDIR}"/${PN}.initd ${PN}
127 rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
128 fi
129 rm -f "${D}"/usr/share/doc/${PF}/COPYING
130 prepalldocs
131 prepgamesdirs
132 }
133
134 pkg_postinst() {
135 games_pkg_postinst
136
137 elog
138 elog "In order to play, you must copy the following 6 files from "
139 elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
140 elog
141 elog "From the WINDOWS version you need: "
142 elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
143 elog "OR from the DOS version you need: "
144 elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
145 elog
146 elog "File names are case sensitive so make sure they are "
147 elog "correct for whichever version you have."
148 elog
149
150 if use dedicated ; then
151 ewarn "Warning: The init script will kill all running openttd"
152 ewarn "processes when run, including any running client sessions!"
153 else
154 if use alsa ; then
155 elog "You have emerged with 'aplaymidi' for playing MIDI."
156 elog "You have to set the environment variable ALSA_OUTPUT_PORTS."
157 elog "Available ports can be listed by using 'aplaymidi -l'."
158 else
159 elog "alsa not in USE so music will not be played during the game."
160 fi
161 fi
162 }