Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/freeciv: ChangeLog freeciv-2.4.2.ebuild metadata.xml
Date: Thu, 22 May 2014 19:00:23
Message-Id: 20140522190019.AF1F82004C@flycatcher.gentoo.org
1 hasufell 14/05/22 19:00:19
2
3 Modified: ChangeLog metadata.xml
4 Added: freeciv-2.4.2.ebuild
5 Log:
6 version bump wrt #487012
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.149 games-strategy/freeciv/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.149&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.149&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.148&r2=1.149
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v
20 retrieving revision 1.148
21 retrieving revision 1.149
22 diff -u -r1.148 -r1.149
23 --- ChangeLog 15 May 2014 17:03:17 -0000 1.148
24 +++ ChangeLog 22 May 2014 19:00:19 -0000 1.149
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-strategy/freeciv
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.148 2014/05/15 17:03:17 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.149 2014/05/22 19:00:19 hasufell Exp $
30 +
31 +*freeciv-2.4.2 (22 May 2014)
32 +
33 + 22 May 2014; Julian Ospald <hasufell@g.o> +freeciv-2.4.2.ebuild,
34 + metadata.xml:
35 + version bump wrt #487012
36
37 15 May 2014; Ulrich Müller <ulm@g.o> freeciv-2.3.4.ebuild:
38 Fix USE dependency on media-libs/libsdl, "audio" USE flag was renamed to
39
40
41
42 1.6 games-strategy/freeciv/metadata.xml
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/metadata.xml?rev=1.6&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/metadata.xml?rev=1.6&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/metadata.xml?r1=1.5&r2=1.6
47
48 Index: metadata.xml
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/metadata.xml,v
51 retrieving revision 1.5
52 retrieving revision 1.6
53 diff -u -r1.5 -r1.6
54 --- metadata.xml 5 Mar 2010 20:23:25 -0000 1.5
55 +++ metadata.xml 22 May 2014 19:00:19 -0000 1.6
56 @@ -1,10 +1,20 @@
57 <?xml version="1.0" encoding="UTF-8"?>
58 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
59 <pkgmetadata>
60 - <herd>games</herd>
61 - <use>
62 - <flag name="auth">Add authentication capability</flag>
63 - <flag name="ggz">Add support for GGZ Gaming Zone</flag>
64 - <flag name="sound">Add support for sound provided by <pkg>media-libs/sdl-mixer</pkg></flag>
65 - </use>
66 + <herd>games</herd>
67 + <use>
68 + <flag name="aimodules">Support for dynamically loadable AI
69 + modules (server-side)</flag>
70 + <flag name="auth">Add authentication capability via
71 + mysql, postgres or sqlite3</flag>
72 + <flag name="ggz">Add support for GGZ Gaming Zone</flag>
73 + <flag name="mapimg">Additional mag image toolkit
74 + via <pkg>media-gfx/imagemagick</pkg></flag>
75 + <flag name="modpack">Build the freeciv-modpack-program
76 + to download/install mods</flag>
77 + <flag name="server">Enable server support. Disabling this
78 + will also make it impossible to start local games.</flag>
79 + <flag name="sound">Add support for sound provided by
80 + <pkg>media-libs/sdl-mixer</pkg></flag>
81 + </use>
82 </pkgmetadata>
83
84
85
86 1.1 games-strategy/freeciv/freeciv-2.4.2.ebuild
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.4.2.ebuild?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.4.2.ebuild?rev=1.1&content-type=text/plain
90
91 Index: freeciv-2.4.2.ebuild
92 ===================================================================
93 # Copyright 1999-2014 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95 # $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.4.2.ebuild,v 1.1 2014/05/22 19:00:19 hasufell Exp $
96
97 # FIXME: gtk3 support breaks ggz support
98
99 EAPI=5
100 inherit eutils gnome2-utils games-ggz games
101
102 DESCRIPTION="multiplayer strategy game (Civilization Clone)"
103 HOMEPAGE="http://www.freeciv.org/"
104 SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2"
105
106 LICENSE="GPL-2"
107 SLOT="0"
108 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
109 IUSE="auth aimodules dedicated ggz +gtk ipv6 mapimg modpack mysql nls postgres qt4 readline sdl +server +sound sqlite"
110
111 RDEPEND="app-arch/bzip2
112 app-arch/xz-utils
113 dev-lang/lua
114 net-misc/curl
115 sys-libs/zlib
116 auth? (
117 mysql? ( virtual/mysql )
118 postgres? ( dev-db/postgresql-base )
119 sqlite? ( dev-db/sqlite:3 )
120 !mysql? ( !postgres? ( !sqlite? ( virtual/mysql ) ) )
121 )
122 readline? ( sys-libs/readline )
123 dedicated? ( aimodules? ( sys-devel/libtool:2 ) )
124 !dedicated? (
125 media-libs/libpng:0
126 ggz? ( games-board/ggz-gtk-client )
127 gtk? ( x11-libs/gtk+:2 )
128 mapimg? ( media-gfx/imagemagick )
129 modpack? ( x11-libs/gtk+:2 )
130 nls? ( virtual/libintl )
131 qt4? (
132 dev-qt/qtcore:4
133 dev-qt/qtgui:4
134 )
135 sdl? (
136 media-libs/libsdl[video]
137 media-libs/sdl-image[png]
138 media-libs/freetype:2
139 )
140 server? ( aimodules? ( sys-devel/libtool:2 ) )
141 sound? (
142 media-libs/libsdl[sound]
143 media-libs/sdl-mixer[vorbis]
144 )
145 !sdl? ( !gtk? ( !qt4? ( x11-libs/gtk+:2 ) ) )
146 )"
147 DEPEND="${RDEPEND}
148 virtual/pkgconfig
149 !dedicated? (
150 x11-proto/xextproto
151 nls? ( sys-devel/gettext )
152 )"
153
154 pkg_setup() {
155 if use !dedicated && use !server ; then
156 ewarn "Disabling server USE flag will make it impossible"
157 ewarn "to start local games, but you will still be able to"
158 ewarn "join multiplayer games."
159 fi
160 games_pkg_setup
161 }
162
163 src_prepare() {
164 # install the .desktop in /usr/share/applications
165 # install the icons in /usr/share/pixmaps
166 sed -i \
167 -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \
168 -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
169 -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
170 client/Makefile.in \
171 server/Makefile.in \
172 modinst/Makefile.in \
173 data/Makefile.in \
174 data/icons/Makefile.in \
175 || die
176 }
177
178 src_configure() {
179 local myclient myopts mydatabase
180
181 if use auth ; then
182 if use !mysql && use !postgres && use !sqlite ; then
183 einfo "No database backend chosen, defaulting"
184 einfo "to mysql!"
185 mydatabase=mysql
186 else
187 use mysql && mydatabase="${mydatabase} mysql"
188 use postgres && mydatabase="${mydatabase} postgres"
189 use sqlite && mydatabase="${mydatabase} sqlite3"
190 fi
191 else
192 mydatabase=no
193 fi
194
195 if use dedicated ; then
196 myclient="no"
197 myopts="--enable-server"
198 else
199 if use !sdl && use !gtk && use !qt4 ; then
200 einfo "No client backend given, defaulting to"
201 einfo "gtk2 client!"
202 myclient="gtk2"
203 else
204 use sdl && myclient="${myclient} sdl"
205 use gtk && myclient="${myclient} gtk2"
206 use qt4 && myclient="${myclient} qt"
207 fi
208 myopts="$(use_enable server) $(use_with ggz ggz-client)"
209 fi
210
211 # disabling shared libs will break aimodules USE flag
212 egamesconf \
213 --localedir=/usr/share/locale \
214 $(use_enable ipv6) \
215 $(use_enable mapimg) \
216 --enable-aimodules="$(usex aimodules "yes" "no")" \
217 --enable-shared \
218 --enable-fcdb="${mydatabase}" \
219 --with-ggzconfig=/usr/bin \
220 --enable-noregistry="${GGZ_MODDIR}" \
221 $(use_enable nls) \
222 $(use_with readline) \
223 $(use_enable sound sdl-mixer) \
224 --enable-fcmp="$(usex modpack "gtk2" "no")" \
225 --enable-sys-lua \
226 ${myopts} \
227 --enable-client="${myclient}"
228 }
229
230 src_install() {
231 emake DESTDIR="${D}" install
232
233 if use dedicated ; then
234 rm -rf "${D}/usr/share/pixmaps"
235 rm -f "${D}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,qt,sdl,xaw}*
236 else
237 if use server ; then
238 # Create and install the html manual. It can't be done for dedicated
239 # servers, because the 'freeciv-manual' tool is then not built. Also
240 # delete freeciv-manual from the GAMES_BINDIR, because it's useless.
241 # Note: to have it localized, it should be ran from _postinst, or
242 # something like that, but then it's a PITA to avoid orphan files...
243 ./manual/freeciv-manual || die
244 dohtml manual*.html
245 fi
246 if use sdl ; then
247 make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client
248 else
249 rm -f "${D}"/usr/share/man/man6/freeciv-sdl*
250 fi
251 rm -f "${D}"/usr/share/man/man6/freeciv-xaw*
252 fi
253 find "${D}" -name "freeciv-manual*" -delete
254
255 dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO}
256 rm -f "${D}$(games_get_libdir)"/*.a
257 prune_libtool_files --all
258
259 prepgamesdirs
260 }
261
262 pkg_preinst() {
263 games_pkg_preinst
264 gnome2_icon_savelist
265 }
266
267 pkg_postinst() {
268 games_pkg_postinst
269 games-ggz_update_modules
270 gnome2_icon_cache_update
271 }
272
273 pkg_postrm() {
274 games-ggz_update_modules
275 gnome2_icon_cache_update
276 }