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.6.ebuild
Date: Fri, 29 Aug 2008 05:31:38
Message-Id: E1KYwa7-0000jI-H0@stork.gentoo.org
1 mr_bones_ 08/08/29 05:31:35
2
3 Modified: ChangeLog
4 Added: freeciv-2.1.6.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.78 games-strategy/freeciv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.78&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.78&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.77&r2=1.78
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v
19 retrieving revision 1.77
20 retrieving revision 1.78
21 diff -u -r1.77 -r1.78
22 --- ChangeLog 24 Aug 2008 11:35:30 -0000 1.77
23 +++ ChangeLog 29 Aug 2008 05:31:34 -0000 1.78
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-strategy/freeciv
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.77 2008/08/24 11:35:30 corsair Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.78 2008/08/29 05:31:34 mr_bones_ Exp $
29 +
30 +*freeciv-2.1.6 (29 Aug 2008)
31 +
32 + 29 Aug 2008; Michael Sterrett <mr_bones_@g.o>
33 + +freeciv-2.1.6.ebuild:
34 + version bump
35
36 24 Aug 2008; Markus Rothe <corsair@g.o> freeciv-2.1.5.ebuild:
37 Stable on ppc64; bug #234507
38
39
40
41 1.1 games-strategy/freeciv/freeciv-2.1.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: freeciv-2.1.6.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-strategy/freeciv/freeciv-2.1.6.ebuild,v 1.1 2008/08/29 05:31:34 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 !dedicated? (
59 alsa? (
60 ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz )
61 esd? (
62 ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz )
63 sdl? (
64 ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/stdsounds3.tar.gz )
65 )"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
70 IUSE="alsa auth dedicated esd gtk nls readline sdl Xaw3d"
71
72 RDEPEND="readline? ( sys-libs/readline )
73 !dedicated? (
74 nls? ( virtual/libintl )
75 gtk? ( >=x11-libs/gtk+-2 )
76 !gtk? (
77 Xaw3d? ( x11-libs/Xaw3d )
78 !Xaw3d? (
79 sdl? (
80 media-libs/libsdl
81 media-libs/sdl-image
82 media-libs/freetype
83 )
84 !sdl? ( x11-libs/libXaw )
85 )
86 )
87 media-libs/libpng
88 alsa? (
89 media-libs/alsa-lib
90 media-libs/audiofile
91 )
92 esd? ( media-sound/esound )
93 sdl? ( media-libs/sdl-mixer )
94 auth? ( virtual/mysql )
95 )"
96 DEPEND="${RDEPEND}
97 nls? ( sys-devel/gettext )
98 !dedicated? (
99 gtk? ( dev-util/pkgconfig )
100 x11-proto/xextproto
101 )"
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 einfo "The Freeciv Client will be built with the GTK+-2 toolkit"
110 elif use Xaw3d ; then
111 einfo "The Freeciv Client will be built with the Xaw3d toolkit"
112 elif use sdl ; then
113 einfo "The Freeciv Client will be built with the SDL toolkit"
114 else
115 einfo "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's freedesktop complient
141 sed -i \
142 -e '/Icon/ s:\.png::' \
143 bootstrap/freeciv.desktop.in \
144 || die "sed failed"
145 # install the .desktop in /usr/share/applications
146 # install the icons in /usr/share/pixmaps
147 sed -i \
148 -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \
149 -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
150 -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
151 client/Makefile.in \
152 server/Makefile.in \
153 data/Makefile.in \
154 data/icons/Makefile.in \
155 || die "sed failed"
156
157 # remove civclient manpage if dedicated server
158 if use dedicated ; then
159 sed -i \
160 -e '/man_MANS = /s:civclient.6::' \
161 doc/man/Makefile.in \
162 || die "sed failed"
163 fi
164 }
165
166 src_compile() {
167 local mysoundconf
168 local myclient
169
170 if use dedicated ; then
171 mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer"
172 myclient="no"
173 else
174 myclient="xaw"
175 use sdl && myclient="sdl"
176 use Xaw3d && myclient="xaw3d"
177 if use gtk ; then
178 myclient="gtk-2.0"
179 fi
180 #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them...
181 #FIXME ==> use --disable-* only, and autodetect to enable.
182 use alsa || mysoundconf="${mysoundconf} --disable-alsa"
183 use esd || mysoundconf="${mysoundconf} --disable-esd"
184 use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer"
185 fi
186
187 egamesconf \
188 --disable-dependency-tracking \
189 --with-zlib \
190 $(use_enable auth) \
191 $(use_enable nls) \
192 $(use_with readline) \
193 --enable-client=${myclient} \
194 ${mysoundconf} \
195 || die "egamesconf failed"
196
197 emake || die "emake failed"
198 }
199
200 src_install() {
201 emake DESTDIR="${D}" install || die "emake install failed"
202
203 if ! use dedicated ; then
204 # Install the app-defaults if Xaw/Xaw3d toolkit
205 if ! use gtk && ! use sdl ; then
206 insinto /etc/X11/app-defaults
207 doins data/Freeciv || die "doins failed"
208 fi
209 # Install sounds if at least one sound plugin was built
210 if use alsa || use esd || use sdl ; then
211 insinto "${GAMES_DATADIR}"/${PN}
212 doins -r ../data/stdsounds* || die "doins sounds failed"
213 fi
214 # Create and install the html manual. It can't be done for dedicated
215 # servers, because the 'civmanual' tool is then not built. Also
216 # delete civmanual from the GAMES_BINDIR, because it's then useless.
217 # Note: to have it localized, it should be ran from _postinst, or
218 # something like that, but then it's a PITA to avoid orphan files...
219 ./manual/civmanual || die "civmanual failed"
220 dohtml manual*.html || die "dohtml failed"
221 rm -f "${D}/${GAMES_BINDIR}"/civmanual
222 fi
223
224 dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO}
225
226 prepgamesdirs
227 }