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