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: ChangeLog openttd-1.1.2.ebuild
Date: Thu, 01 Sep 2011 03:11:32
Message-Id: 20110901031121.81FD520051@flycatcher.gentoo.org
1 mr_bones_ 11/09/01 03:11:21
2
3 Modified: ChangeLog
4 Added: openttd-1.1.2.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.1.10.11/cvs/Linux i686)
9
10 Revision Changes Path
11 1.113 games-simulation/openttd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.113&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.113&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.112&r2=1.113
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v
20 retrieving revision 1.112
21 retrieving revision 1.113
22 diff -u -r1.112 -r1.113
23 --- ChangeLog 14 Aug 2011 22:30:18 -0000 1.112
24 +++ ChangeLog 1 Sep 2011 03:11:21 -0000 1.113
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-simulation/openttd
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.112 2011/08/14 22:30:18 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.113 2011/09/01 03:11:21 mr_bones_ Exp $
30 +
31 +*openttd-1.1.2 (01 Sep 2011)
32 +
33 + 01 Sep 2011; Michael Sterrett <mr_bones_@g.o> +openttd-1.1.2.ebuild,
34 + +files/openttd-1.1.2-cflags.patch:
35 + version bump
36
37 14 Aug 2011; Markos Chandras <hwoarang@g.o> openttd-1.1.1.ebuild:
38 Stable on amd64 wrt bug #378141
39
40
41
42 1.1 games-simulation/openttd/openttd-1.1.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.1.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.1.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openttd-1.1.2.ebuild
48 ===================================================================
49 # Copyright 1999-2011 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.1.2.ebuild,v 1.1 2011/09/01 03:11:21 mr_bones_ Exp $
52
53 EAPI=2
54 inherit eutils 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 ~arm ~ppc ~ppc64 ~x86"
63 IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib"
64
65 DEPEND="
66 !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 )
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="${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="${myopts} --without-libtimidity"
102
103 use debug && myopts="${myopts} --enable-debug=3"
104
105 if use dedicated ; then
106 myopts="${myopts} --enable-dedicated"
107 else
108 use aplaymidi && myopts="${myopts} --with-midi='/usr/bin/aplaymidi'"
109 myopts="${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="${myopts} --with-zlib"
116 else
117 myopts="${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 "configure failed"
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 "emake install failed"
152 if use dedicated ; then
153 newinitd "${FILESDIR}"/${PN}.initd ${PN}
154 rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
155 fi
156 rm -f "${D}"/usr/share/doc/${PF}/COPYING
157 prepalldocs
158 prepgamesdirs
159 }
160
161 pkg_postinst() {
162 games_pkg_postinst
163
164 if ! use lzo ; then
165 elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not"
166 elog "required, disabling it does mean that loading old savegames"
167 elog "or scenarios from ancient versions (~0.2) will fail."
168 elog
169 fi
170
171 if use dedicated ; then
172 ewarn "Warning: The init script will kill all running openttd"
173 ewarn "processes when triggered, including any running client sessions!"
174 else
175 if use aplaymidi ; then
176 elog "You have emerged with 'aplaymidi' for playing MIDI."
177 elog "This option is for those with a hardware midi device,"
178 elog "or who have set up ALSA to handle midi ports."
179 elog "You must set the environment variable ALSA_OUTPUT_PORTS."
180 elog "Available ports can be listed by using 'aplaymidi -l'."
181 else
182 if ! use timidity ; then
183 elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'"
184 elog "in USE. Music may or may not work in-game. If you happen"
185 elog "to have timidity++ installed, music will work so long"
186 elog "as it remains installed, but OpenTTD will not depend on it."
187 fi
188 fi
189 if ! use openmedia ; then
190 elog
191 elog "OpenTTD was compiled without the 'openmedia' USE flag."
192 elog
193 elog "In order to play, you must at least install:"
194 elog "games-misc/opengfx, and games-misc/opensfx, or copy the "
195 elog "following 6 files from a version of Transport Tycoon Deluxe"
196 elog "(windows or DOS) to ~/.openttd/data/ or"
197 elog "${GAMES_DATADIR}/${PN}/data/."
198 elog
199 elog "From the WINDOWS version you need: "
200 elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
201 elog "OR from the DOS version you need: "
202 elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
203 elog
204 elog "File names are case sensitive, but should work either with"
205 elog "all upper or all lower case names"
206 elog
207 elog "In addition, in-game music will be unavailable: for music,"
208 elog "install games-misc/openmsx, or use the in-game download"
209 elog "functionality to get a music set"
210 elog
211 fi
212 fi
213 }