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