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