1 |
mr_bones_ 09/04/02 18:14:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openttd-0.7.0.ebuild |
5 |
Log: |
6 |
version bump - ebuild and patch submitted by scarabeus |
7 |
(Portage version: 2.1.6.7/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.68 games-simulation/openttd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.68&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.68&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.67&r2=1.68 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v |
19 |
retrieving revision 1.67 |
20 |
retrieving revision 1.68 |
21 |
diff -u -r1.67 -r1.68 |
22 |
--- ChangeLog 2 Feb 2009 15:14:49 -0000 1.67 |
23 |
+++ ChangeLog 2 Apr 2009 18:14:03 -0000 1.68 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for games-simulation/openttd |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.67 2009/02/02 15:14:49 ranger Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.68 2009/04/02 18:14:03 mr_bones_ Exp $ |
29 |
+ |
30 |
+*openttd-0.7.0 (02 Apr 2009) |
31 |
+ |
32 |
+ 02 Apr 2009; Michael Sterrett <mr_bones_@g.o> |
33 |
+ +files/openttd-0.7.0-build.patch, +openttd-0.7.0.ebuild: |
34 |
+ version bump - ebuild and patch submitted by scarabeus |
35 |
|
36 |
02 Feb 2009; Brent Baude <ranger@g.o> openttd-0.6.3.ebuild: |
37 |
Marking openttd-0.6.3 ppc64 for bug 233929 |
38 |
|
39 |
|
40 |
|
41 |
1.1 games-simulation/openttd/openttd-0.7.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.7.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.7.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openttd-0.7.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 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.7.0.ebuild,v 1.1 2009/04/02 18:14:03 mr_bones_ Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit eutils games |
54 |
|
55 |
DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" |
56 |
HOMEPAGE="http://www.openttd.org/" |
57 |
SRC_URI="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
62 |
IUSE="alsa debug dedicated iconv icu +png +truetype zlib" |
63 |
RESTRICT="test" |
64 |
|
65 |
DEPEND=" |
66 |
!dedicated? ( |
67 |
media-libs/libsdl[X] |
68 |
icu? ( dev-libs/icu ) |
69 |
truetype? ( |
70 |
media-libs/fontconfig |
71 |
media-libs/freetype:2 |
72 |
sys-libs/zlib |
73 |
) |
74 |
) |
75 |
iconv? ( virtual/libiconv ) |
76 |
png? ( media-libs/libpng ) |
77 |
zlib? ( sys-libs/zlib )" |
78 |
RDEPEND="${DEPEND} |
79 |
!dedicated? ( |
80 |
alsa? ( media-sound/alsa-utils[midi] ) |
81 |
)" |
82 |
|
83 |
PATCHES=( "${FILESDIR}"/${P}-build.patch ) |
84 |
|
85 |
src_configure() { |
86 |
local myopts |
87 |
|
88 |
use debug && myopts="${myopts} --enable-debug=3" |
89 |
|
90 |
if use dedicated ; then |
91 |
myopts="${myopts} --enable-dedicated" |
92 |
else |
93 |
use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi" |
94 |
myopts="${myopts} |
95 |
$(use_with truetype freetype) |
96 |
$(use_with icu) |
97 |
--with-sdl" |
98 |
fi |
99 |
if use png || { use !dedicated && use truetype; } || use zlib ; then |
100 |
myopts="${myopts} --with-zlib" |
101 |
else |
102 |
myopts="${myopts} --without-zlib" |
103 |
fi |
104 |
|
105 |
# there is an allegro interface available as well as sdl, but |
106 |
# the configure for it looks broken so the sdl interface is |
107 |
# always built instead. |
108 |
myopts="${myopts} --without-allegro" |
109 |
|
110 |
# configure is a hand-written sh-script, so econf will not work |
111 |
./configure \ |
112 |
--disable-strip \ |
113 |
--prefix-dir=/usr \ |
114 |
--binary-dir="${GAMES_BINDIR}" \ |
115 |
--data-dir="${GAMES_DATADIR}/${PN}" \ |
116 |
--install-dir="${D}" \ |
117 |
--doc-dir=share/doc/${PF} \ |
118 |
--menu-group="Game;Simulation;" \ |
119 |
${myopts} \ |
120 |
$(use_with iconv) \ |
121 |
$(use_with png) \ |
122 |
|| die "configure failed" |
123 |
} |
124 |
|
125 |
src_install() { |
126 |
emake DESTDIR="${D}" install || die "emake install failed" |
127 |
if use dedicated ; then |
128 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} |
129 |
rm -rf "${D}"/usr/share/{applications,icons,pixmaps} |
130 |
fi |
131 |
rm -f "${D}"/usr/share/doc/${PF}/COPYING |
132 |
prepalldocs |
133 |
prepgamesdirs |
134 |
} |
135 |
|
136 |
pkg_postinst() { |
137 |
games_pkg_postinst |
138 |
|
139 |
elog |
140 |
elog "In order to play, you must copy the following 6 files from " |
141 |
elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/." |
142 |
elog |
143 |
elog "From the WINDOWS version you need: " |
144 |
elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
145 |
elog "OR from the DOS version you need: " |
146 |
elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
147 |
elog |
148 |
elog "File names are case sensitive so make sure they are " |
149 |
elog "correct for whichever version you have." |
150 |
elog |
151 |
|
152 |
if use dedicated ; then |
153 |
ewarn "Warning: The init script will kill all running openttd" |
154 |
ewarn "processes when run, including any running client sessions!" |
155 |
else |
156 |
if use alsa ; then |
157 |
elog "You have emerged with 'aplaymidi' for playing MIDI." |
158 |
elog "You have to set the environment variable ALSA_OUTPUT_PORTS." |
159 |
elog "Available ports can be listed by using 'aplaymidi -l'." |
160 |
else |
161 |
elog "alsa not in USE so music will not be played during the game." |
162 |
fi |
163 |
fi |
164 |
} |