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