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