1 |
robbat2 08/10/23 04:29:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openttd-0.6.3.ebuild |
5 |
Log: |
6 |
Version bump per bug 233929. |
7 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc6-00521-gcdbf87e x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.62 games-simulation/openttd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.62&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.62&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.61&r2=1.62 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v |
19 |
retrieving revision 1.61 |
20 |
retrieving revision 1.62 |
21 |
diff -p -w -b -B -u -u -r1.61 -r1.62 |
22 |
--- ChangeLog 23 Oct 2008 04:04:29 -0000 1.61 |
23 |
+++ ChangeLog 23 Oct 2008 04:29:56 -0000 1.62 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for games-simulation/openttd |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.61 2008/10/23 04:04:29 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.62 2008/10/23 04:29:56 robbat2 Exp $ |
29 |
+ |
30 |
+*openttd-0.6.3 (23 Oct 2008) |
31 |
+ |
32 |
+ 23 Oct 2008; Robin H. Johnson <robbat2@g.o> +files/install.patch, |
33 |
+ +files/libiconv.patch, +files/menu_name.patch, +openttd-0.6.3.ebuild: |
34 |
+ Version bump per bug 233929. |
35 |
|
36 |
23 Oct 2008; Robin H. Johnson <robbat2@g.o> metadata.xml: |
37 |
Missing USE descriptions. |
38 |
|
39 |
|
40 |
|
41 |
1.1 games-simulation/openttd/openttd-0.6.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.6.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.6.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openttd-0.6.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.6.3.ebuild,v 1.1 2008/10/23 04:29:56 robbat2 Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit games |
55 |
|
56 |
MY_P=${P/_rc/-RC} |
57 |
|
58 |
DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" |
59 |
HOMEPAGE="http://www.openttd.org/" |
60 |
SRC_URI="http://binaries.openttd.org/releases/${PV}/${MY_P}-source.tar.bz2" |
61 |
SCENARIOS="0.4.8 0.5.0" |
62 |
for scenario in ${SCENARIOS}; do |
63 |
SRC_URI="${SRC_URI} scenarios? ( |
64 |
http://binaries.openttd.org/scenarios/${PN}-${scenario}-scenarios.tar.bz2 )" |
65 |
done |
66 |
|
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
70 |
IUSE="alsa debug dedicated iconv +png scenarios timidity +truetype +zlib" |
71 |
|
72 |
DEPEND="!dedicated? ( |
73 |
media-libs/libsdl[X] |
74 |
truetype? ( |
75 |
media-libs/fontconfig |
76 |
media-libs/freetype:2 |
77 |
) |
78 |
) |
79 |
iconv? ( virtual/libiconv ) |
80 |
png? ( media-libs/libpng ) |
81 |
zlib? ( sys-libs/zlib )" |
82 |
RDEPEND="${DEPEND} |
83 |
!dedicated? ( |
84 |
timidity? ( media-sound/timidity++ ) |
85 |
!timidity? ( alsa? ( media-sound/alsa-utils ) ) |
86 |
)" |
87 |
|
88 |
S=${WORKDIR}/${MY_P} |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${MY_P}-source.tar.bz2 |
92 |
|
93 |
if use scenarios ; then |
94 |
cd "${S}"/bin/scenario/ |
95 |
for scenario in ${SCENARIOS}; do |
96 |
unpack ${PN}-${scenario}-scenarios.tar.bz2 |
97 |
done |
98 |
fi |
99 |
|
100 |
cd "${S}" |
101 |
epatch "${FILESDIR}/libiconv.patch" |
102 |
epatch "${FILESDIR}/install.patch" |
103 |
epatch "${FILESDIR}/menu_name.patch" |
104 |
} |
105 |
|
106 |
src_configure() { |
107 |
local myopts="" |
108 |
use debug && myopts="${myopts} --enable-debug=3" |
109 |
if use dedicated; then |
110 |
myopts="${myopts} --enable-dedicated " |
111 |
else |
112 |
myopts="${myopts} --with-sdl $(use_with truetype freetype) |
113 |
$(use_with truetype fontconfig)" |
114 |
if ! use timidity; then |
115 |
use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi" |
116 |
fi |
117 |
fi |
118 |
# configure is a hand-written sh-script, so econf will not work |
119 |
./configure --disable-strip \ |
120 |
--prefix-dir=/usr \ |
121 |
--binary-dir=games/bin \ |
122 |
--data-dir=share/games/${PN} \ |
123 |
--install-dir="${D}" \ |
124 |
--doc-dir=share/doc/${P} \ |
125 |
--menu-group="Game;Simulation;" \ |
126 |
$(use_with iconv) \ |
127 |
$(use_with png) \ |
128 |
$(use_with zlib) \ |
129 |
${myopts} \ |
130 |
|| die "configure failed" |
131 |
} |
132 |
|
133 |
src_compile() { |
134 |
emake || die "emake failed" |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
emake DESTDIR="${D}" install || die "emake install failed" |
139 |
|
140 |
if use scenarios ; then |
141 |
insinto "${GAMES_DATADIR}"/${PN}/scenario |
142 |
doins bin/scenario/*.scn || die "doins failed (scenario)" |
143 |
doins bin/scenario/*/*.scn || die "doins failed (scenario)" |
144 |
fi |
145 |
|
146 |
prepgamesdirs |
147 |
} |
148 |
|
149 |
pkg_postinst() { |
150 |
games_pkg_postinst |
151 |
|
152 |
elog |
153 |
elog "In order to play, you must copy the following 6 files from " |
154 |
elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/." |
155 |
elog |
156 |
elog "From the WINDOWS version you need: " |
157 |
elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
158 |
elog "OR from the DOS version you need: " |
159 |
elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
160 |
elog |
161 |
elog "File names are case sensitive so make sure they are " |
162 |
elog "correct for whichever version you have." |
163 |
elog |
164 |
|
165 |
if use scenarios ; then |
166 |
elog "Scenarios are installed into:" |
167 |
elog "${GAMES_DATADIR}/${PN}/scenario," |
168 |
elog "you will have to symlink them to ~/.openttd/scenario in order" |
169 |
elog "to use them." |
170 |
elog "Example:" |
171 |
elog " ln -s ${GAMES_DATADIR}/${PN}/scenario ~/.openttd/scenario" |
172 |
elog |
173 |
fi |
174 |
|
175 |
if use dedicated ; then |
176 |
ewarn "Warning: The init script will kill all running openttd" |
177 |
ewarn "processes when run, including any running client sessions!" |
178 |
else |
179 |
if use timidity || use alsa ; then |
180 |
elog "If you want music, you must copy the gm/ directory to" |
181 |
elog "${GAMES_DATADIR}/${PN}/" |
182 |
elog "You can enable MIDI by running:" |
183 |
elog " openttd -m extmidi" |
184 |
elog |
185 |
if use timidity ; then |
186 |
elog "You also need soundfonts for timidity, if you don't" |
187 |
elog "know what that is, do:" |
188 |
elog |
189 |
elog "emerge media-sound/timidity-eawpatches" |
190 |
else |
191 |
elog "You have emerged with 'aplaymidi' for playing MIDI." |
192 |
elog "You have to set the environment variable ALSA_OUTPUT_PORTS." |
193 |
elog "Available ports can be listed by using 'aplaymidi -l'." |
194 |
fi |
195 |
else |
196 |
elog "timidity and/or alsa not in USE so music will not be played during the game." |
197 |
fi |
198 |
elog |
199 |
fi |
200 |
} |