Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/freeciv/
Date: Thu, 08 Oct 2015 06:19:21
Message-Id: 1444285147.21c9db2834c5eef2273c2ef5763cfd14caaaf199.mr_bones_@gentoo
1 commit: 21c9db2834c5eef2273c2ef5763cfd14caaaf199
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 8 06:18:54 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 8 06:19:07 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21c9db28
7
8 clean old
9
10 Package-Manager: portage-2.2.20.1
11
12 games-strategy/freeciv/Manifest | 2 -
13 games-strategy/freeciv/freeciv-2.4.4.ebuild | 173 ---------------------------
14 games-strategy/freeciv/freeciv-2.5.0.ebuild | 178 ----------------------------
15 3 files changed, 353 deletions(-)
16
17 diff --git a/games-strategy/freeciv/Manifest b/games-strategy/freeciv/Manifest
18 index 0260544..87dc3fd 100644
19 --- a/games-strategy/freeciv/Manifest
20 +++ b/games-strategy/freeciv/Manifest
21 @@ -1,3 +1 @@
22 -DIST freeciv-2.4.4.tar.bz2 38847925 SHA256 8307fc9d69571b031ccc465e8029d8a7ea3dbef4e3651f2de07356aba931e2a3 SHA512 3f2ff619b21c36748a98bda98c923ec9ea71faf18cac77d8b247e4a79c4a8f41c9b399e648a0a51fe54738de3276081c31ded98f769104812125d304716796a7 WHIRLPOOL 0eb8374ad2d7174dab8971c39c0ce7f14e72c1c7a64dfa8461a054a53d2b659af71197bad7c65e65e3e5da4fd5552bfb10aa2fa8b9870c9b1fbd7e03c58c9c00
23 -DIST freeciv-2.5.0.tar.bz2 40323793 SHA256 bd9f7523ea79b8d2806d0c1844a9f48506ccd18276330580319913c43051210b SHA512 f03bafdca47da0677ad81ed945afe79bbd01ae871b95e6bdaf6249acb8420e78e3210dd60f520d960ec127e1d443f45c11fcc484b49b6bb59cab5904e51fc651 WHIRLPOOL 1a9768837b40c6c19ff6138d07074d96d75d2cecdb671180659d9380beb7c996fcb0be2fb343166fe46e92cc2c2e7495be2683f62440540cea3072f34e928391
24 DIST freeciv-2.5.1.tar.bz2 40686265 SHA256 4e420a9ad91aa7966039ec3b63501725c8261a4ff734d56fe801414fae772696 SHA512 c0f5df3df7bab9ad8e9e7ce75ea90a539ca7e6aafb0af2b57a3d30b095e30f3b093e66bd8b92524e0e19919e0f5d4b822946219bf270e6071102db56290119b8 WHIRLPOOL 1773d56801316afae6ab470b1b1fdf71b42bd42ff0f7ede62b28c5ef7abcd0af36887401937a028b4a9a2e19f994389ef5f63c0395545ebcb367ff2089e2fd55
25
26 diff --git a/games-strategy/freeciv/freeciv-2.4.4.ebuild b/games-strategy/freeciv/freeciv-2.4.4.ebuild
27 deleted file mode 100644
28 index 96d07d3..0000000
29 --- a/games-strategy/freeciv/freeciv-2.4.4.ebuild
30 +++ /dev/null
31 @@ -1,173 +0,0 @@
32 -# Copyright 1999-2015 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=5
37 -inherit eutils gnome2-utils games
38 -
39 -DESCRIPTION="multiplayer strategy game (Civilization Clone)"
40 -HOMEPAGE="http://www.freeciv.org/"
41 -SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
46 -IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls postgres readline sdl +server +sound sqlite"
47 -
48 -RDEPEND="app-arch/bzip2
49 - app-arch/xz-utils
50 - dev-lang/lua
51 - net-misc/curl
52 - sys-libs/zlib
53 - auth? (
54 - mysql? ( virtual/mysql )
55 - postgres? ( dev-db/postgresql )
56 - sqlite? ( dev-db/sqlite:3 )
57 - !mysql? ( !postgres? ( !sqlite? ( virtual/mysql ) ) )
58 - )
59 - readline? ( sys-libs/readline:0 )
60 - dedicated? ( aimodules? ( dev-libs/libltdl:0 ) )
61 - !dedicated? (
62 - media-libs/libpng:0
63 - gtk? ( x11-libs/gtk+:2 )
64 - mapimg? ( media-gfx/imagemagick )
65 - modpack? ( x11-libs/gtk+:2 )
66 - nls? ( virtual/libintl )
67 - sdl? (
68 - media-libs/libsdl[video]
69 - media-libs/sdl-image[png]
70 - media-libs/freetype:2
71 - )
72 - server? ( aimodules? ( sys-devel/libtool:2 ) )
73 - sound? (
74 - media-libs/libsdl[sound]
75 - media-libs/sdl-mixer[vorbis]
76 - )
77 - !sdl? ( !gtk? ( x11-libs/gtk+:2 ) )
78 - )"
79 -DEPEND="${RDEPEND}
80 - virtual/pkgconfig
81 - !dedicated? (
82 - x11-proto/xextproto
83 - nls? ( sys-devel/gettext )
84 - )"
85 -
86 -pkg_setup() {
87 - if use !dedicated && use !server ; then
88 - ewarn "Disabling server USE flag will make it impossible"
89 - ewarn "to start local games, but you will still be able to"
90 - ewarn "join multiplayer games."
91 - fi
92 - games_pkg_setup
93 -}
94 -
95 -src_prepare() {
96 -
97 - # install the .desktop in /usr/share/applications
98 - # install the icons in /usr/share/pixmaps
99 - sed -i \
100 - -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \
101 - -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
102 - -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
103 - client/Makefile.in \
104 - server/Makefile.in \
105 - modinst/Makefile.in \
106 - data/Makefile.in \
107 - data/icons/Makefile.in || die
108 - sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die
109 -}
110 -
111 -src_configure() {
112 - local myclient myopts mydatabase
113 -
114 - if use auth ; then
115 - if use !mysql && use !postgres && use !sqlite ; then
116 - einfo "No database backend chosen, defaulting"
117 - einfo "to mysql!"
118 - mydatabase=mysql
119 - else
120 - use mysql && mydatabase="${mydatabase} mysql"
121 - use postgres && mydatabase="${mydatabase} postgres"
122 - use sqlite && mydatabase="${mydatabase} sqlite3"
123 - fi
124 - else
125 - mydatabase=no
126 - fi
127 -
128 - if use dedicated ; then
129 - myclient="no"
130 - myopts="--enable-server"
131 - else
132 - if use !sdl && use !gtk ; then
133 - einfo "No client backend given, defaulting to"
134 - einfo "gtk2 client!"
135 - myclient="gtk2"
136 - else
137 - use sdl && myclient="${myclient} sdl"
138 - use gtk && myclient="${myclient} gtk2"
139 - fi
140 - myopts="$(use_enable server) --without-ggz-client"
141 - fi
142 -
143 - # disabling shared libs will break aimodules USE flag
144 - egamesconf \
145 - --docdir="/usr/share/doc/${P}" \
146 - --localedir=/usr/share/locale \
147 - $(use_enable ipv6) \
148 - $(use_enable mapimg) \
149 - --enable-aimodules="$(usex aimodules "yes" "no")" \
150 - --enable-shared \
151 - --enable-fcdb="${mydatabase}" \
152 - $(use_enable nls) \
153 - $(use_with readline) \
154 - $(use_enable sound sdl-mixer) \
155 - --enable-fcmp="$(usex modpack "gtk2" "no")" \
156 - --enable-sys-lua \
157 - ${myopts} \
158 - --enable-client="${myclient}"
159 -}
160 -
161 -src_install() {
162 - emake DESTDIR="${D}" install
163 -
164 - if use dedicated ; then
165 - rm -rf "${D}/usr/share/pixmaps"
166 - rm -f "${D}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,sdl,xaw}*
167 - else
168 - if use server ; then
169 - # Create and install the html manual. It can't be done for dedicated
170 - # servers, because the 'freeciv-manual' tool is then not built. Also
171 - # delete freeciv-manual from the GAMES_BINDIR, because it's useless.
172 - # Note: to have it localized, it should be ran from _postinst, or
173 - # something like that, but then it's a PITA to avoid orphan files...
174 - ./manual/freeciv-manual || die
175 - dohtml manual*.html
176 - fi
177 - if use sdl ; then
178 - make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client
179 - else
180 - rm -f "${D}"/usr/share/man/man6/freeciv-sdl*
181 - fi
182 - rm -f "${D}"/usr/share/man/man6/freeciv-xaw*
183 - fi
184 - find "${D}" -name "freeciv-manual*" -delete
185 -
186 - rm -f "${D}$(games_get_libdir)"/*.a
187 - prune_libtool_files
188 -
189 - prepgamesdirs
190 -}
191 -
192 -pkg_preinst() {
193 - games_pkg_preinst
194 - gnome2_icon_savelist
195 -}
196 -
197 -pkg_postinst() {
198 - games_pkg_postinst
199 - gnome2_icon_cache_update
200 -}
201 -
202 -pkg_postrm() {
203 - gnome2_icon_cache_update
204 -}
205
206 diff --git a/games-strategy/freeciv/freeciv-2.5.0.ebuild b/games-strategy/freeciv/freeciv-2.5.0.ebuild
207 deleted file mode 100644
208 index b569637..0000000
209 --- a/games-strategy/freeciv/freeciv-2.5.0.ebuild
210 +++ /dev/null
211 @@ -1,178 +0,0 @@
212 -# Copyright 1999-2015 Gentoo Foundation
213 -# Distributed under the terms of the GNU General Public License v2
214 -# $Id$
215 -
216 -EAPI=5
217 -inherit eutils gnome2-utils games
218 -
219 -DESCRIPTION="multiplayer strategy game (Civilization Clone)"
220 -HOMEPAGE="http://www.freeciv.org/"
221 -SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2"
222 -
223 -LICENSE="GPL-2"
224 -SLOT="0"
225 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
226 -IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls qt5 readline sdl +server +sound sqlite system-lua"
227 -
228 -# postgres isn't yet really supported by upstream
229 -RDEPEND="app-arch/bzip2
230 - app-arch/xz-utils
231 - net-misc/curl
232 - sys-libs/zlib
233 - auth? (
234 - mysql? ( virtual/mysql )
235 - sqlite? ( dev-db/sqlite:3 )
236 - !mysql? ( ( !sqlite? ( virtual/mysql ) ) )
237 - )
238 - readline? ( sys-libs/readline:0 )
239 - dedicated? ( aimodules? ( dev-libs/libltdl:0 ) )
240 - !dedicated? (
241 - media-libs/libpng:0
242 - gtk? ( x11-libs/gtk+:2 )
243 - mapimg? ( media-gfx/imagemagick )
244 - modpack? ( x11-libs/gtk+:2 )
245 - nls? ( virtual/libintl )
246 - qt5? (
247 - dev-qt/qtcore:5
248 - dev-qt/qtgui:5
249 - dev-qt/qtwidgets:5
250 - )
251 - sdl? (
252 - media-libs/libsdl[video]
253 - media-libs/sdl-gfx
254 - media-libs/sdl-image[png]
255 - media-libs/sdl-ttf
256 - )
257 - server? ( aimodules? ( sys-devel/libtool:2 ) )
258 - sound? (
259 - media-libs/libsdl[sound]
260 - media-libs/sdl-mixer[vorbis]
261 - )
262 - !sdl? ( !gtk? ( x11-libs/gtk+:2 ) )
263 - )
264 - system-lua? ( >=dev-lang/lua-5.2 )"
265 -DEPEND="${RDEPEND}
266 - virtual/pkgconfig
267 - !dedicated? (
268 - x11-proto/xextproto
269 - nls? ( sys-devel/gettext )
270 - )"
271 -
272 -pkg_setup() {
273 - if use !dedicated && use !server ; then
274 - ewarn "Disabling server USE flag will make it impossible"
275 - ewarn "to start local games, but you will still be able to"
276 - ewarn "join multiplayer games."
277 - fi
278 - games_pkg_setup
279 -}
280 -
281 -src_prepare() {
282 -
283 - # install the .desktop in /usr/share/applications
284 - # install the icons in /usr/share/pixmaps
285 - sed -i \
286 - -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \
287 - -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
288 - -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
289 - client/Makefile.in \
290 - server/Makefile.in \
291 - tools/Makefile.in \
292 - data/icons/Makefile.in || die
293 - sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die
294 -}
295 -
296 -src_configure() {
297 - local myclient myopts mydatabase
298 -
299 - if use auth ; then
300 - if use !mysql && use !sqlite ; then
301 - einfo "No database backend chosen, defaulting"
302 - einfo "to mysql!"
303 - mydatabase=mysql
304 - else
305 - use mysql && mydatabase="${mydatabase} mysql"
306 - use sqlite && mydatabase="${mydatabase} sqlite3"
307 - fi
308 - else
309 - mydatabase=no
310 - fi
311 -
312 - if use dedicated ; then
313 - myclient="no"
314 - myopts="--enable-server"
315 - else
316 - if use !sdl && use !gtk && ! use qt5 ; then
317 - einfo "No client backend given, defaulting to"
318 - einfo "gtk2 client!"
319 - myclient="gtk2"
320 - else
321 - use sdl && myclient+=" sdl"
322 - use gtk && myclient+=" gtk2"
323 - use qt5 && myclient+=" qt"
324 - fi
325 - myopts="$(use_enable server) --without-ggz-client"
326 - fi
327 -
328 - # disabling shared libs will break aimodules USE flag
329 - egamesconf \
330 - --docdir="/usr/share/doc/${P}" \
331 - --localedir=/usr/share/locale \
332 - $(use_enable ipv6) \
333 - $(use_enable mapimg) \
334 - --enable-aimodules="$(usex aimodules "yes" "no")" \
335 - --enable-shared \
336 - --enable-fcdb="${mydatabase}" \
337 - $(use_enable nls) \
338 - $(use_with readline) \
339 - $(use_enable sound sdl-mixer) \
340 - --enable-fcmp="$(usex modpack "gtk2" "no")" \
341 - $(use_enable system-lua sys-lua) \
342 - ${myopts} \
343 - --enable-client="${myclient}"
344 -}
345 -
346 -src_install() {
347 - emake DESTDIR="${D}" install
348 -
349 - if use dedicated ; then
350 - rm -rf "${D}/usr/share/pixmaps"
351 - rm -f "${D}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,qt,sdl,xaw}*
352 - else
353 - if use server ; then
354 - # Create and install the html manual. It can't be done for dedicated
355 - # servers, because the 'freeciv-manual' tool is then not built. Also
356 - # delete freeciv-manual from the GAMES_BINDIR, because it's useless.
357 - # Note: to have it localized, it should be ran from _postinst, or
358 - # something like that, but then it's a PITA to avoid orphan files...
359 - ./tools/freeciv-manual || die
360 - dohtml manual*.html
361 - fi
362 - if use sdl ; then
363 - make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client
364 - else
365 - rm -f "${D}"/usr/share/man/man6/freeciv-sdl*
366 - fi
367 - rm -f "${D}"/usr/share/man/man6/freeciv-xaw*
368 - fi
369 - find "${D}" -name "freeciv-manual*" -delete
370 -
371 - rm -f "${D}$(games_get_libdir)"/*.a
372 - prune_libtool_files
373 -
374 - prepgamesdirs
375 -}
376 -
377 -pkg_preinst() {
378 - games_pkg_preinst
379 - gnome2_icon_savelist
380 -}
381 -
382 -pkg_postinst() {
383 - games_pkg_postinst
384 - gnome2_icon_cache_update
385 -}
386 -
387 -pkg_postrm() {
388 - gnome2_icon_cache_update
389 -}