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-0.7.2.ebuild openttd-0.7.1.ebuild openttd-0.7.0.ebuild
Date: Sat, 01 Aug 2009 17:00:51
Message-Id: E1MXHwv-0001rI-F8@stork.gentoo.org
1 mr_bones_ 09/08/01 17:00:49
2
3 Modified: ChangeLog
4 Added: openttd-0.7.2.ebuild
5 Removed: openttd-0.7.1.ebuild openttd-0.7.0.ebuild
6 Log:
7 version bump; clean old
8 (Portage version: 2.1.6.13/cvs/Linux i686)
9
10 Revision Changes Path
11 1.74 games-simulation/openttd/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.74&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.74&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.73&r2=1.74
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v
20 retrieving revision 1.73
21 retrieving revision 1.74
22 diff -u -r1.73 -r1.74
23 --- ChangeLog 1 Aug 2009 12:07:43 -0000 1.73
24 +++ ChangeLog 1 Aug 2009 17:00:49 -0000 1.74
25 @@ -1,6 +1,13 @@
26 # ChangeLog for games-simulation/openttd
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.73 2009/08/01 12:07:43 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.74 2009/08/01 17:00:49 mr_bones_ Exp $
30 +
31 +*openttd-0.7.2 (01 Aug 2009)
32 +
33 + 01 Aug 2009; Michael Sterrett <mr_bones_@g.o>
34 + -openttd-0.7.0.ebuild, -files/openttd-0.7.0-build.patch,
35 + -openttd-0.7.1.ebuild, +openttd-0.7.2.ebuild:
36 + version bump; clean old
37
38 01 Aug 2009; Samuli Suominen <ssuominen@g.o> openttd-0.7.0.ebuild,
39 openttd-0.7.1.ebuild:
40
41
42
43 1.1 games-simulation/openttd/openttd-0.7.2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.7.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.7.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openttd-0.7.2.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.7.2.ebuild,v 1.1 2009/08/01 17:00:49 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.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 IUSE="alsa debug dedicated iconv icu +png +truetype zlib"
65 RESTRICT="test"
66
67 DEPEND="
68 !dedicated? (
69 media-libs/libsdl[X]
70 icu? ( dev-libs/icu )
71 truetype? (
72 media-libs/fontconfig
73 media-libs/freetype:2
74 sys-libs/zlib
75 )
76 )
77 iconv? ( virtual/libiconv )
78 png? ( media-libs/libpng )
79 zlib? ( sys-libs/zlib )"
80 RDEPEND="${DEPEND}
81 !dedicated? (
82 alsa? ( media-sound/alsa-utils )
83 )"
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 bash-script, so econf will not work
111 ./configure \
112 --disable-strip \
113 --prefix-dir=/ \
114 --binary-dir="${GAMES_BINDIR}" \
115 --data-dir="${GAMES_DATADIR}/${PN}" \
116 --install-dir="${D}" \
117 --icon-theme-dir=/usr/share/icons \
118 --icon-dir=/usr/share/pixmaps \
119 --menu-dir=/usr/share/applications \
120 --man-dir=/usr/share/man \
121 --doc-dir=/usr/share/doc/${PF} \
122 --menu-group="Game;Simulation;" \
123 ${myopts} \
124 $(use_with iconv) \
125 $(use_with png) \
126 || die "configure failed"
127 }
128
129 src_install() {
130 emake DESTDIR="${D}" install || die "emake install failed"
131 if use dedicated ; then
132 newinitd "${FILESDIR}"/${PN}.initd ${PN}
133 rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
134 fi
135 rm -f "${D}"/usr/share/doc/${PF}/COPYING
136 prepalldocs
137 prepgamesdirs
138 }
139
140 pkg_postinst() {
141 games_pkg_postinst
142
143 elog
144 elog "In order to play, you must copy the following 6 files from "
145 elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
146 elog
147 elog "From the WINDOWS version you need: "
148 elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
149 elog "OR from the DOS version you need: "
150 elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
151 elog
152 elog "File names are case sensitive so make sure they are "
153 elog "correct for whichever version you have."
154 elog
155
156 if use dedicated ; then
157 ewarn "Warning: The init script will kill all running openttd"
158 ewarn "processes when run, including any running client sessions!"
159 else
160 if use alsa ; then
161 elog "You have emerged with 'aplaymidi' for playing MIDI."
162 elog "You have to set the environment variable ALSA_OUTPUT_PORTS."
163 elog "Available ports can be listed by using 'aplaymidi -l'."
164 else
165 elog "alsa not in USE so music will not be played during the game."
166 fi
167 fi
168 }