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