Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-simulation/openttd: ChangeLog openttd-1.0.2.ebuild
Date: Tue, 29 Jun 2010 20:47:01
Message-Id: 20100629204657.C9BEB2C621@corvid.gentoo.org
1 mr_bones_ 10/06/29 20:46:57
2
3 Modified: ChangeLog
4 Added: openttd-1.0.2.ebuild
5 Log:
6 version bump (bug #324871)
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.92 games-simulation/openttd/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.92&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.92&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.91&r2=1.92
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v
19 retrieving revision 1.91
20 retrieving revision 1.92
21 diff -u -r1.91 -r1.92
22 --- ChangeLog 7 Jun 2010 15:13:12 -0000 1.91
23 +++ ChangeLog 29 Jun 2010 20:46:57 -0000 1.92
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-simulation/openttd
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.91 2010/06/07 15:13:12 hwoarang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.92 2010/06/29 20:46:57 mr_bones_ Exp $
29 +
30 +*openttd-1.0.2 (29 Jun 2010)
31 +
32 + 29 Jun 2010; Michael Sterrett <mr_bones_@g.o>
33 + +openttd-1.0.2.ebuild:
34 + version bump (bug #324871)
35
36 07 Jun 2010; Markos Chandras <hwoarang@g.o> openttd-1.0.1.ebuild:
37 Stable on amd64 wrt bug #321609
38
39
40
41 1.1 games-simulation/openttd/openttd-1.0.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.0.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.0.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openttd-1.0.2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.0.2.ebuild,v 1.1 2010/06/29 20:46:57 mr_bones_ Exp $
51
52 EAPI=2
53 inherit eutils games
54
55 MY_PV=${PV/_rc/-RC}
56 MY_P=${PN}-${MY_PV}
57
58 DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
59 HOMEPAGE="http://www.openttd.org/"
60 SRC_URI="http://binaries.openttd.org/releases/${MY_PV}/${MY_P}-source.tar.bz2"
61 S=${WORKDIR}/${MY_P}
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
66 IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib"
67 RESTRICT="test"
68
69 DEPEND="
70 !dedicated? (
71 media-libs/libsdl[audio,X,video]
72 icu? ( dev-libs/icu )
73 truetype? (
74 media-libs/fontconfig
75 media-libs/freetype:2
76 sys-libs/zlib
77 )
78 )
79 lzo? ( dev-libs/lzo:2 )
80 iconv? ( virtual/libiconv )
81 png? ( media-libs/libpng )
82 zlib? ( sys-libs/zlib )"
83
84 PDEPEND="
85 !dedicated? (
86 openmedia? (
87 games-misc/opengfx
88 games-misc/opensfx
89 games-misc/openmsx
90 )
91 aplaymidi? ( media-sound/alsa-utils )
92 !aplaymidi? ( timidity? ( media-sound/timidity++ ) )
93 )"
94
95 src_configure() {
96 # there is an allegro interface available as well as sdl, but
97 # the configure for it looks broken so the sdl interface is
98 # always built instead.
99 local myopts="${myopts} --without-allegro"
100
101 # libtimidity not needed except for some embedded platform
102 # nevertheless, it will be automagically linked if it is
103 # installed. Hence, we disable it.
104 myopts="${myopts} --without-libtimidity"
105
106 use debug && myopts="${myopts} --enable-debug=3"
107
108 if use dedicated ; then
109 myopts="${myopts} --enable-dedicated"
110 else
111 use aplaymidi && myopts="${myopts} --with-midi='/usr/bin/aplaymidi'"
112 myopts="${myopts}
113 $(use_with truetype freetype)
114 $(use_with icu)
115 --with-sdl"
116 fi
117 if use png || { use !dedicated && use truetype; } || use zlib ; then
118 myopts="${myopts} --with-zlib"
119 else
120 myopts="${myopts} --without-zlib"
121 fi
122
123 # configure is a hand-written bash-script, so econf will not work.
124 # It's all built as C++, upstream uses CFLAGS internally.
125 CFLAGS="" ./configure \
126 --disable-strip \
127 --prefix-dir="${EPREFIX}" \
128 --binary-dir="${GAMES_BINDIR}" \
129 --data-dir="${GAMES_DATADIR}/${PN}" \
130 --install-dir="${D}" \
131 --icon-dir=/usr/share/pixmaps \
132 --menu-dir=/usr/share/applications \
133 --icon-theme-dir=/usr/share/icons/hicolor \
134 --man-dir=/usr/share/man/man6 \
135 --doc-dir=/usr/share/doc/${PF} \
136 --menu-group="Game;Simulation;" \
137 ${myopts} \
138 $(use_with iconv) \
139 $(use_with png) \
140 $(use_with lzo liblzo2) \
141 || die "configure failed"
142 }
143
144 src_compile() {
145 emake VERBOSE=1 || die
146 }
147
148 src_install() {
149 emake DESTDIR="${D}" install || die "emake install failed"
150 if use dedicated ; then
151 newinitd "${FILESDIR}"/${PN}.initd ${PN}
152 rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
153 fi
154 rm -f "${D}"/usr/share/doc/${PF}/COPYING
155 prepalldocs
156 prepgamesdirs
157 }
158
159 pkg_postinst() {
160 games_pkg_postinst
161
162 if ! use lzo ; then
163 elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not"
164 elog "required, disabling it does mean that loading old savegames"
165 elog "or scenarios from ancient versions (~0.2) will fail."
166 elog
167 fi
168
169 if use dedicated ; then
170 ewarn "Warning: The init script will kill all running openttd"
171 ewarn "processes when triggered, including any running client sessions!"
172 else
173 if use aplaymidi ; then
174 elog "You have emerged with 'aplaymidi' for playing MIDI."
175 elog "This option is for those with a hardware midi device,"
176 elog "or who have set up ALSA to handle midi ports."
177 elog "You must set the environment variable ALSA_OUTPUT_PORTS."
178 elog "Available ports can be listed by using 'aplaymidi -l'."
179 else
180 if ! use timidity ; then
181 elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'"
182 elog "in USE. Music may or may not work in-game. If you happen"
183 elog "to have timidity++ installed, music will work so long"
184 elog "as it remains installed, but OpenTTD will not depend on it."
185 fi
186 fi
187 if ! use openmedia ; then
188 elog
189 elog "OpenTTD was compiled without the 'openmedia' USE flag."
190 elog
191 elog "In order to play, you must at least install:"
192 elog "games-misc/opengfx, and games-misc/opensfx, or copy the "
193 elog "following 6 files from a version of Transport Tycoon Deluxe"
194 elog "(windows or DOS) to ~/.openttd/data/ or"
195 elog "${GAMES_DATADIR}/${PN}/data/."
196 elog
197 elog "From the WINDOWS version you need: "
198 elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
199 elog "OR from the DOS version you need: "
200 elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
201 elog
202 elog "File names are case sensitive, but should work either with"
203 elog "all upper or all lower case names"
204 elog
205 elog "In addition, in-game music will be unavailable: for music,"
206 elog "install games-misc/openmsx, or use the in-game download"
207 elog "functionality to get a music set"
208 elog
209 fi
210 fi
211 }