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.0.1.ebuild openttd-1.0.0.ebuild
Date: Sat, 01 May 2010 04:26:38
Message-Id: 20100501042633.8EA6B2C08A@corvid.gentoo.org
1 mr_bones_ 10/05/01 04:26:33
2
3 Modified: ChangeLog
4 Added: openttd-1.0.1.ebuild
5 Removed: openttd-1.0.0.ebuild
6 Log:
7 version bump; clean old
8 (Portage version: 2.1.8.3/cvs/Linux i686)
9
10 Revision Changes Path
11 1.86 games-simulation/openttd/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.86&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.86&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.85&r2=1.86
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v
20 retrieving revision 1.85
21 retrieving revision 1.86
22 diff -u -r1.85 -r1.86
23 --- ChangeLog 18 Apr 2010 07:35:40 -0000 1.85
24 +++ ChangeLog 1 May 2010 04:26:33 -0000 1.86
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.85 2010/04/18 07:35:40 mr_bones_ Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.86 2010/05/01 04:26:33 mr_bones_ Exp $
30 +
31 +*openttd-1.0.1 (01 May 2010)
32 +
33 + 01 May 2010; Michael Sterrett <mr_bones_@g.o>
34 + -openttd-1.0.0.ebuild, +openttd-1.0.1.ebuild:
35 + version bump; clean old
36
37 *openttd-1.0.0 (18 Apr 2010)
38
39
40
41
42 1.1 games-simulation/openttd/openttd-1.0.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openttd-1.0.1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 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.0.1.ebuild,v 1.1 2010/05/01 04:26:33 mr_bones_ Exp $
52
53 EAPI=2
54 inherit eutils games
55
56 MY_PV=${PV/_rc/-RC}
57 MY_P=${PN}-${MY_PV}
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/${MY_PV}/${MY_P}-source.tar.bz2"
62 S=${WORKDIR}/${MY_P}
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
67 IUSE="alsa debug dedicated iconv icu lzo +openmedia +png +truetype zlib"
68 RESTRICT="test"
69
70 DEPEND="
71 !dedicated? (
72 media-libs/libsdl[audio,X,video]
73 icu? ( dev-libs/icu )
74 truetype? (
75 media-libs/fontconfig
76 media-libs/freetype:2
77 sys-libs/zlib
78 )
79 )
80 lzo? ( dev-libs/lzo:2 )
81 iconv? ( virtual/libiconv )
82 png? ( media-libs/libpng )
83 zlib? ( sys-libs/zlib )"
84 RDEPEND="${DEPEND}
85 !dedicated? (
86 alsa? ( media-sound/alsa-utils )
87 )"
88 PDEPEND="
89 openmedia? (
90 games-misc/opengfx
91 games-misc/opensfx
92 games-misc/openmsx
93 )"
94
95 src_configure() {
96 # there is an allegro interface available as well as sdl, but
97 # the configure for it looks broken so the sdl interface is
98 # always built instead.
99 local myopts="${myopts} --without-allegro"
100
101 use debug && myopts="${myopts} --enable-debug=3"
102
103 if use dedicated ; then
104 myopts="${myopts} --enable-dedicated"
105 else
106 use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi"
107 myopts="${myopts}
108 $(use_with truetype freetype)
109 $(use_with icu)
110 --with-sdl"
111 fi
112 if use png || { use !dedicated && use truetype; } || use zlib ; then
113 myopts="${myopts} --with-zlib"
114 else
115 myopts="${myopts} --without-zlib"
116 fi
117
118 # configure is a hand-written bash-script, so econf will not work.
119 # It's all built as C++, upstream uses CFLAGS internally.
120 CFLAGS="" ./configure \
121 --disable-strip \
122 --prefix-dir="${EPREFIX}" \
123 --binary-dir="${GAMES_BINDIR}" \
124 --data-dir="${GAMES_DATADIR}/${PN}" \
125 --install-dir="${D}" \
126 --icon-dir=/usr/share/pixmaps \
127 --menu-dir=/usr/share/applications \
128 --icon-theme-dir=/usr/share/icons/hicolor \
129 --man-dir=/usr/share/man/man6 \
130 --doc-dir=/usr/share/doc/${PF} \
131 --menu-group="Game;Simulation;" \
132 ${myopts} \
133 $(use_with iconv) \
134 $(use_with png) \
135 $(use_with lzo liblzo2) \
136 || die "configure failed"
137 }
138
139 src_compile() {
140 emake VERBOSE=1 || die
141 }
142
143 src_install() {
144 emake DESTDIR="${D}" install || die "emake install failed"
145 if use dedicated ; then
146 newinitd "${FILESDIR}"/${PN}.initd ${PN}
147 rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
148 fi
149 rm -f "${D}"/usr/share/doc/${PF}/COPYING
150 prepalldocs
151 prepgamesdirs
152 }
153
154 pkg_postinst() {
155 games_pkg_postinst
156
157 if ! use openmedia ; then
158 elog
159 elog "OpenTTD was compiled without openmedia USE flags."
160 elog
161 elog "In order to play, you must either install games-misc/opengfx"
162 elog "as well as games-misc/opensfx or copy the following 6 files"
163 elog "from a version of Transport Tycoon Deluxe (windows or DOS)"
164 elog "to ~/.openttd/data/ or ${GAMES_DATADIR}/${PN}/data/."
165 elog
166 elog "From the WINDOWS version you need: "
167 elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
168 elog "OR from the DOS version you need: "
169 elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
170 elog
171 elog "File names are case sensitive so make sure they are "
172 elog "correct for whichever version you have."
173 elog
174 fi
175
176 if ! use lzo ; then
177 elog "OpenTTD was compiled without lzo2 support."
178 elog "While lzo2 is not required, disabling it does mean that"
179 elog "loading old savegames/scenarios from ancient versions (~0.2)"
180 elog "will be disabled"
181 elog
182 fi
183
184 if use dedicated ; then
185 ewarn "Warning: The init script will kill all running openttd"
186 ewarn "processes when run, including any running client sessions!"
187 else
188 if use alsa ; then
189 elog "You have emerged with 'aplaymidi' for playing MIDI."
190 elog "You have to set the environment variable ALSA_OUTPUT_PORTS."
191 elog "Available ports can be listed by using 'aplaymidi -l'."
192 if ! use openmedia ; then
193 elog "You have disabled the openmedia use flag, in-game music"
194 elog "will be unavailable unless you install games-misc/openmsx"
195 elog "or install a music set in ~/.openttd/gm or use the in-game"
196 elog "download functionality to get a music set"
197 fi
198 else
199 elog "alsa not in USE so music will not be played during the game."
200
201 fi
202 fi
203 }