1 |
mr_bones_ 10/01/31 07:27:01 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: freeciv-2.1.11.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.7.16/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 games-strategy/freeciv/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/metadata.xml?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/metadata.xml?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/metadata.xml?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/metadata.xml,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- metadata.xml 26 Jul 2008 04:03:21 -0000 1.3 |
23 |
+++ metadata.xml 31 Jan 2010 07:27:00 -0000 1.4 |
24 |
@@ -4,5 +4,6 @@ |
25 |
<herd>games</herd> |
26 |
<use> |
27 |
<flag name="auth">Add authentication capability</flag> |
28 |
+ <flag name="ggz">Add support for GGZ Gaming Zone</flag> |
29 |
</use> |
30 |
</pkgmetadata> |
31 |
|
32 |
|
33 |
|
34 |
1.97 games-strategy/freeciv/ChangeLog |
35 |
|
36 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.97&view=markup |
37 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.97&content-type=text/plain |
38 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.96&r2=1.97 |
39 |
|
40 |
Index: ChangeLog |
41 |
=================================================================== |
42 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v |
43 |
retrieving revision 1.96 |
44 |
retrieving revision 1.97 |
45 |
diff -u -r1.96 -r1.97 |
46 |
--- ChangeLog 11 Jan 2010 13:26:55 -0000 1.96 |
47 |
+++ ChangeLog 31 Jan 2010 07:27:00 -0000 1.97 |
48 |
@@ -1,6 +1,12 @@ |
49 |
# ChangeLog for games-strategy/freeciv |
50 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
51 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.96 2010/01/11 13:26:55 tupone Exp $ |
52 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.97 2010/01/31 07:27:00 mr_bones_ Exp $ |
53 |
+ |
54 |
+*freeciv-2.1.11 (31 Jan 2010) |
55 |
+ |
56 |
+ 31 Jan 2010; Michael Sterrett <mr_bones_@g.o> |
57 |
+ +freeciv-2.1.11.ebuild: |
58 |
+ version bump |
59 |
|
60 |
*freeciv-2.1.10 (11 Jan 2010) |
61 |
|
62 |
|
63 |
|
64 |
|
65 |
1.1 games-strategy/freeciv/freeciv-2.1.11.ebuild |
66 |
|
67 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.11.ebuild?rev=1.1&view=markup |
68 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/freeciv/freeciv-2.1.11.ebuild?rev=1.1&content-type=text/plain |
69 |
|
70 |
Index: freeciv-2.1.11.ebuild |
71 |
=================================================================== |
72 |
# Copyright 1999-2010 Gentoo Foundation |
73 |
# Distributed under the terms of the GNU General Public License v2 |
74 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.1.11.ebuild,v 1.1 2010/01/31 07:27:00 mr_bones_ Exp $ |
75 |
|
76 |
EAPI=2 |
77 |
inherit eutils gnome2-utils games |
78 |
|
79 |
DESCRIPTION="multiplayer strategy game (Civilization Clone)" |
80 |
HOMEPAGE="http://www.freeciv.org/" |
81 |
SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2" |
82 |
|
83 |
LICENSE="GPL-2" |
84 |
SLOT="0" |
85 |
KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
86 |
IUSE="auth dedicated ggz gtk nls readline sdl Xaw3d" |
87 |
|
88 |
RDEPEND="readline? ( sys-libs/readline ) |
89 |
sys-libs/zlib |
90 |
!dedicated? ( |
91 |
nls? ( virtual/libintl ) |
92 |
gtk? ( x11-libs/gtk+:2 ) |
93 |
!gtk? ( |
94 |
sdl? ( |
95 |
media-libs/libsdl |
96 |
media-libs/sdl-image |
97 |
media-libs/freetype |
98 |
) |
99 |
!sdl? ( |
100 |
Xaw3d? ( x11-libs/Xaw3d ) |
101 |
!Xaw3d? ( x11-libs/libXaw ) |
102 |
) |
103 |
) |
104 |
ggz? ( dev-games/ggz-client-libs ) |
105 |
media-libs/libpng |
106 |
media-libs/alsa-lib |
107 |
media-libs/audiofile |
108 |
sdl? ( media-libs/sdl-mixer ) |
109 |
auth? ( virtual/mysql ) |
110 |
)" |
111 |
DEPEND="${RDEPEND} |
112 |
nls? ( sys-devel/gettext ) |
113 |
!dedicated? ( |
114 |
gtk? ( dev-util/pkgconfig ) |
115 |
x11-proto/xextproto |
116 |
)" |
117 |
|
118 |
pkg_setup() { |
119 |
games_pkg_setup |
120 |
if ! use dedicated ; then |
121 |
if use gtk ; then |
122 |
einfo "The Freeciv Client will be built with the GTK+-2 toolkit" |
123 |
elif use sdl ; then |
124 |
einfo "The Freeciv Client will be built with the SDL toolkit" |
125 |
elif use Xaw3d ; then |
126 |
einfo "The Freeciv Client will be built with the Xaw3d toolkit" |
127 |
else |
128 |
einfo "The Freeciv Client will be built with the Xaw toolkit" |
129 |
fi |
130 |
fi |
131 |
} |
132 |
|
133 |
src_prepare() { |
134 |
# install locales in /usr/share/locale |
135 |
#sed -i \ |
136 |
#-e 's:^\(localedir = \).*:\1/usr/share/locale:' \ |
137 |
#intl/Makefile.in po/Makefile.in.in \ |
138 |
#|| die "sed failed" |
139 |
#sed -i \ |
140 |
#-e 's:$datadir/locale:/usr/share/locale:' \ |
141 |
#configure \ |
142 |
#|| die "sed failed" |
143 |
|
144 |
# change .desktop category so it's freedesktop complient |
145 |
sed -i \ |
146 |
-e '/Icon/ s:\.png::' \ |
147 |
bootstrap/freeciv.desktop.in \ |
148 |
|| die "sed failed" |
149 |
# install the .desktop in /usr/share/applications |
150 |
# install the icons in /usr/share/pixmaps |
151 |
sed -i \ |
152 |
-e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ |
153 |
-e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ |
154 |
-e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ |
155 |
client/Makefile.in \ |
156 |
server/Makefile.in \ |
157 |
data/Makefile.in \ |
158 |
data/icons/Makefile.in \ |
159 |
|| die "sed failed" |
160 |
|
161 |
# remove civclient manpage if dedicated server |
162 |
if use dedicated ; then |
163 |
sed -i \ |
164 |
-e '/man_MANS = /s:civclient.6::' \ |
165 |
doc/man/Makefile.in \ |
166 |
|| die "sed failed" |
167 |
fi |
168 |
} |
169 |
|
170 |
src_configure() { |
171 |
local mysoundconf |
172 |
local myclient |
173 |
|
174 |
if use dedicated ; then |
175 |
myclient="no" |
176 |
else |
177 |
myclient="xaw" |
178 |
use Xaw3d && myclient="xaw3d" |
179 |
use sdl && myclient="sdl" |
180 |
if use gtk ; then |
181 |
myclient="gtk" |
182 |
fi |
183 |
fi |
184 |
|
185 |
egamesconf \ |
186 |
--disable-dependency-tracking \ |
187 |
--localedir=/usr/share/locale \ |
188 |
$(use_enable auth) \ |
189 |
$(use_enable nls) \ |
190 |
$(use_with readline) \ |
191 |
$(use_enable sdl sdl-mixer) \ |
192 |
$(use_with ggz ggz-client) \ |
193 |
--enable-client=${myclient} \ |
194 |
${mysoundconf} |
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 |
# Create and install the html manual. It can't be done for dedicated |
207 |
# servers, because the 'civmanual' tool is then not built. Also |
208 |
# delete civmanual from the GAMES_BINDIR, because it's then useless. |
209 |
# Note: to have it localized, it should be ran from _postinst, or |
210 |
# something like that, but then it's a PITA to avoid orphan files... |
211 |
./manual/civmanual || die "civmanual failed" |
212 |
dohtml manual*.html || die "dohtml failed" |
213 |
rm -f "${D}/${GAMES_BINDIR}"/civmanual |
214 |
fi |
215 |
|
216 |
dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO} |
217 |
|
218 |
prepgamesdirs |
219 |
} |
220 |
|
221 |
pkg_preinst() { |
222 |
games_pkg_preinst |
223 |
gnome2_icon_savelist |
224 |
} |
225 |
|
226 |
pkg_postinst() { |
227 |
games_pkg_postinst |
228 |
gnome2_icon_cache_update |
229 |
} |
230 |
|
231 |
pkg_postrm() { |
232 |
gnome2_icon_cache_update |
233 |
} |