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.0.ebuild
Date: Sat, 30 Apr 2011 18:23:32
Message-Id: 20110430182322.82CBA20054@flycatcher.gentoo.org
1 mr_bones_ 11/04/30 18:23:22
2
3 Modified: ChangeLog
4 Added: openttd-1.1.0.ebuild
5 Log:
6 version bump (bug #362031)
7
8 (Portage version: 2.1.9.42/cvs/Linux i686, RepoMan options: --force)
9
10 Revision Changes Path
11 1.107 games-simulation/openttd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.107&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.107&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.106&r2=1.107
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v
20 retrieving revision 1.106
21 retrieving revision 1.107
22 diff -u -r1.106 -r1.107
23 --- ChangeLog 28 Nov 2010 12:19:11 -0000 1.106
24 +++ ChangeLog 30 Apr 2011 18:23:22 -0000 1.107
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-simulation/openttd
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.106 2010/11/28 12:19:11 hwoarang Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.107 2011/04/30 18:23:22 mr_bones_ Exp $
31 +
32 +*openttd-1.1.0 (30 Apr 2011)
33 +
34 + 30 Apr 2011; Michael Sterrett <mr_bones_@g.o>
35 + +openttd-1.1.0.ebuild:
36 + version bump (bug #362031)
37
38 28 Nov 2010; Markos Chandras <hwoarang@g.o> openttd-1.0.5.ebuild:
39 Stable on amd64 wrt bug #345691
40
41
42
43 1.1 games-simulation/openttd/openttd-1.1.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.1.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.1.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openttd-1.1.0.ebuild
49 ===================================================================
50 # Copyright 1999-2011 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.1.0.ebuild,v 1.1 2011/04/30 18:23:22 mr_bones_ Exp $
53
54 EAPI=2
55 inherit eutils 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 ~arm ~ppc ~ppc64 ~x86"
64 IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib"
65
66 DEPEND="
67 !dedicated? (
68 media-libs/libsdl[audio,X,video]
69 icu? ( dev-libs/icu )
70 truetype? (
71 media-libs/fontconfig
72 media-libs/freetype:2
73 sys-libs/zlib
74 )
75 )
76 lzo? ( dev-libs/lzo:2 )
77 iconv? ( virtual/libiconv )
78 png? ( media-libs/libpng )
79 zlib? ( sys-libs/zlib )"
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 )
90 "
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 }