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.0.ebuild
Date: Wed, 31 Oct 2007 16:57:52
Message-Id: E1InGt1-0000vm-OQ@stork.gentoo.org
1 mr_bones_ 07/10/31 16:57:47
2
3 Modified: ChangeLog
4 Added: freeciv-2.1.0.ebuild
5 Log:
6 version bump (bug #197644)
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.62 games-strategy/freeciv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.62&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.62&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.61&r2=1.62
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v
19 retrieving revision 1.61
20 retrieving revision 1.62
21 diff -u -r1.61 -r1.62
22 --- ChangeLog 12 May 2007 09:15:35 -0000 1.61
23 +++ ChangeLog 31 Oct 2007 16:57:47 -0000 1.62
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.61 2007/05/12 09:15:35 genstef Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.62 2007/10/31 16:57:47 mr_bones_ Exp $
29 +
30 +*freeciv-2.1.0 (31 Oct 2007)
31 +
32 + 31 Oct 2007; Michael Sterrett <mr_bones_@g.o>
33 + +freeciv-2.1.0.ebuild:
34 + version bump (bug #197644)
35
36 12 May 2007; Stefan Schweizer <genstef@g.o> freeciv-2.0.9.ebuild:
37 Fix unavailable stdsounds3.tar.gz url
38
39
40
41 1.1 games-strategy/freeciv/freeciv-2.1.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: freeciv-2.1.0.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.0.ebuild,v 1.1 2007/10/31 16:57:47 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 Xaw3d? ( x11-libs/Xaw3d )
79 !Xaw3d? ( x11-libs/libXaw )
80 x11-libs/libXmu
81 x11-libs/libXpm
82 )
83 alsa? (
84 media-libs/alsa-lib
85 media-libs/audiofile
86 )
87 esd? ( media-sound/esound )
88 sdl? ( media-libs/sdl-mixer )
89 auth? ( virtual/mysql )
90 )"
91 DEPEND="${RDEPEND}
92 nls? ( sys-devel/gettext )
93 !dedicated? ( gtk? ( dev-util/pkgconfig ) )
94 x11-proto/xextproto
95 media-libs/libpng"
96
97 S=${WORKDIR}/${MY_P}
98
99 pkg_setup() {
100 games_pkg_setup
101 if ! use dedicated ; then
102 if use gtk ; then
103 elog "The Freeciv Client will be built with the GTK+-2 toolkit"
104 elif use Xaw3d ; then
105 elog "The Freeciv Client will be built with the Xaw3d toolkit"
106 else
107 elog "The Freeciv Client will be built with the Xaw toolkit"
108 fi
109 if ! use esd && ! use alsa && ! use sdl ; then
110 ewarn
111 ewarn "To enable sound support in civclient, you must enable"
112 ewarn "at least one of this USE flags: alsa, esd, sdl"
113 ewarn
114 fi
115 fi
116 }
117
118 src_unpack() {
119 unpack ${A}
120 cd "${S}"
121
122 # install locales in /usr/share/locale
123 sed -i \
124 -e 's:^\(localedir = \).*:\1/usr/share/locale:' \
125 intl/Makefile.in po/Makefile.in.in \
126 || die "sed failed"
127 sed -i \
128 -e 's:$datadir/locale:/usr/share/locale:' \
129 configure \
130 || die "sed failed"
131
132 # change .desktop category so it is not gnome specific
133 sed -i \
134 -e 's:^\(Categories=GNOME;Application;Game;Strategy;\):Categories=Application;Game;StrategyGame;:' \
135 -e 's:^\(Icon=\).*:\1freeciv.png:' \
136 bootstrap/freeciv.desktop.in \
137 || die "sed failed"
138 # install the .desktop in /usr/share/applications
139 sed -i \
140 -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \
141 client/Makefile.in \
142 || die "sed failed"
143
144 # remove civclient manpage if dedicated server
145 if use dedicated ; then
146 sed -i \
147 -e '/man_MANS = /s:civclient.6::' \
148 doc/man/Makefile.in \
149 || die "sed failed"
150 fi
151 }
152
153 src_compile() {
154 local mysoundconf
155 local myclient
156
157 if use dedicated ; then
158 mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer"
159 myclient="no"
160 else
161 myclient="xaw"
162 use Xaw3d && myclient="xaw3d"
163 if use gtk ; then
164 myclient="gtk-2.0"
165 fi
166 #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them...
167 #FIXME ==> use --disable-* only, and autodetect to enable.
168 use alsa || mysoundconf="${mysoundconf} --disable-alsa"
169 use esd || mysoundconf="${mysoundconf} --disable-esd"
170 use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer"
171 fi
172
173 egamesconf \
174 --disable-dependency-tracking \
175 --with-zlib \
176 $(use_enable auth) \
177 $(use_enable nls) \
178 $(use_with readline) \
179 --enable-client=${myclient} \
180 ${mysoundconf} \
181 || die "egamesconf failed"
182
183 emake || die "emake failed"
184 }
185
186 src_install() {
187 emake DESTDIR="${D}" install || die "emake install failed"
188
189 if ! use dedicated ; then
190 # Install the app-defaults if Xaw/Xaw3d toolkit
191 if ! use gtk ; then
192 insinto /etc/X11/app-defaults
193 doins data/Freeciv || die "doins failed"
194 fi
195 # Install sounds if at least one sound plugin was built
196 if use alsa || use esd || use sdl ; then
197 insinto "${GAMES_DATADIR}"/${PN}
198 doins -r ../data/stdsounds* || die "doins sounds failed"
199 fi
200 # Create and install the html manual. It can't be done for dedicated
201 # servers, because the 'civmanual' tool is then not built. Also
202 # delete civmanual from the GAMES_BINDIR, because it's then useless.
203 # Note: to have it localized, it should be ran from _postinst, or
204 # something like that, but then it's a PITA to avoid orphan files...
205 ./manual/civmanual || die "civmanual failed"
206 dohtml manual*.html || die "dohtml failed"
207 rm -f "${D}/${GAMES_BINDIR}"/civmanual
208 fi
209
210 dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO}
211
212 doicon "${DISTDIR}"/${PN}.png
213 prepgamesdirs
214 }
215
216
217
218 --
219 gentoo-commits@g.o mailing list