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