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-strategy/freeciv: ChangeLog freeciv-2.1.1.ebuild
Date: Thu, 29 Nov 2007 07:26:42
Message-Id: E1IxdnB-0001ZZ-GP@stork.gentoo.org
1 mr_bones_ 07/11/29 07:26:37
2
3 Modified: ChangeLog
4 Added: freeciv-2.1.1.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.64 games-strategy/freeciv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.64&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.64&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.63&r2=1.64
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v
19 retrieving revision 1.63
20 retrieving revision 1.64
21 diff -u -r1.63 -r1.64
22 --- ChangeLog 31 Oct 2007 23:04:47 -0000 1.63
23 +++ ChangeLog 29 Nov 2007 07:26:36 -0000 1.64
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-strategy/freeciv
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.63 2007/10/31 23:04:47 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.64 2007/11/29 07:26:36 mr_bones_ Exp $
29 +
30 +*freeciv-2.1.1 (29 Nov 2007)
31 +
32 + 29 Nov 2007; Michael Sterrett <mr_bones_@g.o>
33 + +freeciv-2.1.1.ebuild:
34 + version bump
35
36 31 Oct 2007; Michael Sterrett <mr_bones_@g.o> freeciv-2.1.0.ebuild:
37 add sdl patch to ebuild from Andrei Slavoiu (bug #197697)
38
39
40
41 1.1 games-strategy/freeciv/freeciv-2.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: freeciv-2.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.1.1.ebuild,v 1.1 2007/11/29 07:26:36 mr_bones_ Exp $
51
52 inherit eutils games
53
54 MY_P=${PN}-${PV/_/-}
55 DESCRIPTION="multiplayer strategy game (Civilization Clone)"
56 HOMEPAGE="http://www.freeciv.org/"
57 SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/stable/${MY_P}.tar.bz2
58 mirror://gentoo/${PN}.png
59 !dedicated? (
60 alsa? (
61 ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz )
62 esd? (
63 ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz )
64 sdl? (
65 ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz )
66 )"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
71 IUSE="alsa auth dedicated esd gtk nls readline sdl Xaw3d"
72
73 RDEPEND="readline? ( sys-libs/readline )
74 !dedicated? (
75 nls? ( virtual/libintl )
76 gtk? ( >=x11-libs/gtk+-2 )
77 !gtk? (
78 sdl? (
79 media-libs/libsdl
80 media-libs/sdl-image
81 )
82 !sdl? (
83 Xaw3d? ( x11-libs/Xaw3d )
84 !Xaw3d? ( x11-libs/libXaw )
85 x11-libs/libXmu
86 x11-libs/libXpm
87 )
88 )
89 alsa? (
90 media-libs/alsa-lib
91 media-libs/audiofile
92 )
93 esd? ( media-sound/esound )
94 sdl? ( media-libs/sdl-mixer )
95 auth? ( virtual/mysql )
96 )"
97 DEPEND="${RDEPEND}
98 nls? ( sys-devel/gettext )
99 !dedicated? ( gtk? ( dev-util/pkgconfig ) )
100 x11-proto/xextproto
101 media-libs/libpng"
102
103 S=${WORKDIR}/${MY_P}
104
105 pkg_setup() {
106 games_pkg_setup
107 if ! use dedicated ; then
108 if use gtk ; then
109 elog "The Freeciv Client will be built with the GTK+-2 toolkit"
110 elif use Xaw3d ; then
111 elog "The Freeciv Client will be built with the Xaw3d toolkit"
112 elif use sdl ; then
113 elog "The Freeciv Client will be built with the SDL toolkit"
114 else
115 elog "The Freeciv Client will be built with the Xaw toolkit"
116 fi
117 if ! use esd && ! use alsa && ! use sdl ; then
118 ewarn
119 ewarn "To enable sound support in civclient, you must enable"
120 ewarn "at least one of this USE flags: alsa, esd, sdl"
121 ewarn
122 fi
123 fi
124 }
125
126 src_unpack() {
127 unpack ${A}
128 cd "${S}"
129
130 # install locales in /usr/share/locale
131 sed -i \
132 -e 's:^\(localedir = \).*:\1/usr/share/locale:' \
133 intl/Makefile.in po/Makefile.in.in \
134 || die "sed failed"
135 sed -i \
136 -e 's:$datadir/locale:/usr/share/locale:' \
137 configure \
138 || die "sed failed"
139
140 # change .desktop category so it is not gnome specific
141 sed -i \
142 -e 's:^\(Categories=GNOME;Application;Game;Strategy;\):Categories=Application;Game;StrategyGame;:' \
143 -e 's:^\(Icon=\).*:\1freeciv.png:' \
144 bootstrap/freeciv.desktop.in \
145 || die "sed failed"
146 # install the .desktop in /usr/share/applications
147 sed -i \
148 -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \
149 client/Makefile.in \
150 || die "sed failed"
151
152 # remove civclient manpage if dedicated server
153 if use dedicated ; then
154 sed -i \
155 -e '/man_MANS = /s:civclient.6::' \
156 doc/man/Makefile.in \
157 || die "sed failed"
158 fi
159 }
160
161 src_compile() {
162 local mysoundconf
163 local myclient
164
165 if use dedicated ; then
166 mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer"
167 myclient="no"
168 else
169 myclient="xaw"
170 use sdl && myclient="sdl"
171 use Xaw3d && myclient="xaw3d"
172 if use gtk ; then
173 myclient="gtk-2.0"
174 fi
175 #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them...
176 #FIXME ==> use --disable-* only, and autodetect to enable.
177 use alsa || mysoundconf="${mysoundconf} --disable-alsa"
178 use esd || mysoundconf="${mysoundconf} --disable-esd"
179 use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer"
180 fi
181
182 egamesconf \
183 --disable-dependency-tracking \
184 --with-zlib \
185 $(use_enable auth) \
186 $(use_enable nls) \
187 $(use_with readline) \
188 --enable-client=${myclient} \
189 ${mysoundconf} \
190 || die "egamesconf failed"
191
192 emake || die "emake failed"
193 }
194
195 src_install() {
196 emake DESTDIR="${D}" install || die "emake install failed"
197
198 if ! use dedicated ; then
199 # Install the app-defaults if Xaw/Xaw3d toolkit
200 if ! use gtk && ! use sdl ; then
201 insinto /etc/X11/app-defaults
202 doins data/Freeciv || die "doins failed"
203 fi
204 # Install sounds if at least one sound plugin was built
205 if use alsa || use esd || use sdl ; then
206 insinto "${GAMES_DATADIR}"/${PN}
207 doins -r ../data/stdsounds* || die "doins sounds failed"
208 fi
209 # Create and install the html manual. It can't be done for dedicated
210 # servers, because the 'civmanual' tool is then not built. Also
211 # delete civmanual from the GAMES_BINDIR, because it's then useless.
212 # Note: to have it localized, it should be ran from _postinst, or
213 # something like that, but then it's a PITA to avoid orphan files...
214 ./manual/civmanual || die "civmanual failed"
215 dohtml manual*.html || die "dohtml failed"
216 rm -f "${D}/${GAMES_BINDIR}"/civmanual
217 fi
218
219 dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO}
220
221 doicon "${DISTDIR}"/${PN}.png
222 prepgamesdirs
223 }
224
225
226
227 --
228 gentoo-commits@g.o mailing list