Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/freeciv/
Date: Tue, 03 Apr 2018 14:19:37
Message-Id: 1522765162.3edff1c871f7d019f5b43d03315e483774bf1c22.polynomial-c@gentoo
1 commit: 3edff1c871f7d019f5b43d03315e483774bf1c22
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 14:19:22 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 14:19:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edff1c8
7
8 games-strategy/freeciv: Removed old.
9
10 Package-Manager: Portage-2.3.28, Repoman-2.3.9
11
12 games-strategy/freeciv/Manifest | 1 -
13 games-strategy/freeciv/freeciv-2.5.9.ebuild | 177 ----------------------------
14 2 files changed, 178 deletions(-)
15
16 diff --git a/games-strategy/freeciv/Manifest b/games-strategy/freeciv/Manifest
17 index 98389d908fc..85f6bc2183f 100644
18 --- a/games-strategy/freeciv/Manifest
19 +++ b/games-strategy/freeciv/Manifest
20 @@ -1,4 +1,3 @@
21 DIST freeciv-2.5.10.tar.bz2 40920632 BLAKE2B 1fb6d3d8130088c818ffe95c68a4061732278da8b7e477347cc67e7cc770526a65006844db0d3ecdb462a903fb5589d18666ffe6c9262956bf30fbc0c79742e5 SHA512 198ea42af083ebbfc4d79cbcbc9fc2dd548c92581301d77fd9cff0e2addc7b7255090471dc52aceb966320958b3a4c542615d5ec91a114dfc805fe993864a6f5
22 DIST freeciv-2.5.11.tar.bz2 40940090 BLAKE2B dfc1e714e1a3122335f555c2e57352726bda60dc0d1700b0d8ae937c85cba6beb0b2a6ffa6266b77437934ed85f1740f319c379a10c217161ee147f2339a50d3 SHA512 f5eac2fc2b7e09b9fd3b8b45145a5359f8216aef49050c692893d30584000c7db2f2a6e66ac19e67186e2653efaa0aa7656abefe2d2de25d123e9a52ce604456
23 -DIST freeciv-2.5.9.tar.bz2 41176249 BLAKE2B d590318e8f03c726fd36714751ed666574951bf988a37b1ee6527a07dcdf4e637cfa525c2ecdf83d537fefdc4c3fd4a3db2c0e037424825af6d1c38f009293c9 SHA512 e8002dc2d0c313ec34d6245f69bf8cc9ed4f98a826d9f564e21cbca379529f6060b8efb3453ec38cb2c7efd222a4aea04033c3ff84b191271ba0af5b770c7677
24 DIST freeciv-2.6.0-beta2.tar.bz2 51503051 BLAKE2B 45bf863a530d726261670cbdcd16daefeecaa72e3f090d98d274baa0cd52f3cd0dd1807d660863c822a2dafd170ad51a6b45d756c43aaf6e95e70c74460ce90b SHA512 e92411f43192dc28bcd492f7e78f455cbc18264c7720dd8d35eb86fcc6da5e3927d79751bd1cd6f88d2904283c0844910415df5d7e36d0b9b76ab5fe3c872976
25
26 diff --git a/games-strategy/freeciv/freeciv-2.5.9.ebuild b/games-strategy/freeciv/freeciv-2.5.9.ebuild
27 deleted file mode 100644
28 index 50f294a240b..00000000000
29 --- a/games-strategy/freeciv/freeciv-2.5.9.ebuild
30 +++ /dev/null
31 @@ -1,177 +0,0 @@
32 -# Copyright 1999-2017 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -inherit eutils flag-o-matic gnome2-utils
37 -
38 -DESCRIPTION="multiplayer strategy game (Civilization Clone)"
39 -HOMEPAGE="http://www.freeciv.org/"
40 -SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2"
41 -
42 -LICENSE="GPL-2+"
43 -SLOT="0"
44 -KEYWORDS="~amd64 ~ppc64 ~x86"
45 -IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls qt5 readline sdl +server +sound sqlite system-lua"
46 -
47 -# postgres isn't yet really supported by upstream
48 -RDEPEND="app-arch/bzip2
49 - app-arch/xz-utils
50 - net-misc/curl
51 - sys-libs/zlib
52 - auth? (
53 - mysql? ( virtual/mysql )
54 - sqlite? ( dev-db/sqlite:3 )
55 - !mysql? ( ( !sqlite? ( virtual/mysql ) ) )
56 - )
57 - readline? ( sys-libs/readline:0= )
58 - dedicated? ( aimodules? ( dev-libs/libltdl:0 ) )
59 - !dedicated? (
60 - media-libs/libpng:0
61 - gtk? ( x11-libs/gtk+:2 )
62 - mapimg? ( media-gfx/imagemagick:= )
63 - modpack? ( x11-libs/gtk+:2 )
64 - nls? ( virtual/libintl )
65 - qt5? (
66 - dev-qt/qtcore:5
67 - dev-qt/qtgui:5
68 - dev-qt/qtwidgets:5
69 - )
70 - sdl? (
71 - media-libs/libsdl[video]
72 - media-libs/sdl-gfx
73 - media-libs/sdl-image[png]
74 - media-libs/sdl-ttf
75 - )
76 - server? ( aimodules? ( sys-devel/libtool:2 ) )
77 - sound? (
78 - media-libs/libsdl[sound]
79 - media-libs/sdl-mixer[vorbis]
80 - )
81 - !sdl? ( !gtk? ( x11-libs/gtk+:2 ) )
82 - )
83 - system-lua? ( >=dev-lang/lua-5.2 )"
84 -DEPEND="${RDEPEND}
85 - virtual/pkgconfig
86 - !dedicated? (
87 - x11-proto/xextproto
88 - nls? ( sys-devel/gettext )
89 - )"
90 -
91 -pkg_setup() {
92 - if use !dedicated && use !server ; then
93 - ewarn "Disabling server USE flag will make it impossible"
94 - ewarn "to start local games, but you will still be able to"
95 - ewarn "join multiplayer games."
96 - fi
97 -}
98 -
99 -src_prepare() {
100 - default
101 -
102 - # install the .desktop in /usr/share/applications
103 - # install the icons in /usr/share/pixmaps
104 - sed -i \
105 - -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \
106 - -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \
107 - -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \
108 - client/Makefile.in \
109 - server/Makefile.in \
110 - tools/Makefile.in \
111 - data/icons/Makefile.in || die
112 - sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die
113 -}
114 -
115 -src_configure() {
116 - local myclient mydatabase myeconfargs
117 -
118 - if use auth ; then
119 - if ! use mysql && ! use sqlite ; then
120 - einfo "No database backend chosen, defaulting"
121 - einfo "to mysql!"
122 - mydatabase=mysql
123 - else
124 - use mysql && mydatabase+=" mysql"
125 - use sqlite && mydatabase+=" sqlite3"
126 - fi
127 - else
128 - mydatabase=no
129 - fi
130 -
131 - if use dedicated ; then
132 - myclient="no"
133 - myeconfargs+=( --enable-server )
134 - else
135 - if use !sdl && use !gtk && ! use qt5 ; then
136 - einfo "No client backend given, defaulting to"
137 - einfo "gtk2 client!"
138 - myclient="gtk2"
139 - else
140 - use sdl && myclient+=" sdl"
141 - use gtk && myclient+=" gtk2"
142 - if use qt5 ; then
143 - myclient+=" qt"
144 - append-cxxflags -std=c++11
145 - fi
146 - fi
147 - myeconfargs+=( $(use_enable server) --without-ggz-client )
148 - fi
149 -
150 - myeconfargs+=(
151 - --enable-aimodules="$(usex aimodules "yes" "no")"
152 - --enable-client="${myclient}"
153 - --enable-fcdb="${mydatabase}"
154 - --enable-fcmp="$(usex modpack "gtk2" "no")"
155 - # disabling shared libs will break aimodules USE flag
156 - --enable-shared
157 - --localedir=/usr/share/locale
158 - $(use_enable ipv6)
159 - $(use_enable mapimg)
160 - $(use_enable nls)
161 - $(use_enable sound sdl-mixer)
162 - $(use_enable system-lua sys-lua)
163 - $(use_with readline)
164 - )
165 - econf "${myeconfargs[@]}"
166 -}
167 -
168 -src_install() {
169 - default
170 -
171 - if use dedicated ; then
172 - rm -rf "${ED%/}/usr/share/pixmaps"
173 - rm -f "${ED%/}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,qt,sdl,xaw}*
174 - else
175 - if use server ; then
176 - # Create and install the html manual. It can't be done for dedicated
177 - # servers, because the 'freeciv-manual' tool is then not built. Also
178 - # delete freeciv-manual from the GAMES_BINDIR, because it's useless.
179 - # Note: to have it localized, it should be ran from _postinst, or
180 - # something like that, but then it's a PITA to avoid orphan files...
181 - ./tools/freeciv-manual || die
182 - docinto html
183 - dodoc manual*.html
184 - fi
185 - if use sdl ; then
186 - make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client
187 - else
188 - rm -f "${ED%/}"/usr/share/man/man6/freeciv-sdl*
189 - fi
190 - rm -f "${ED%/}"/usr/share/man/man6/freeciv-xaw*
191 - fi
192 - find "${ED}" -name "freeciv-manual*" -delete
193 -
194 - rm -f "${ED%/}/usr/$(get_libdir)"/*.a
195 - prune_libtool_files
196 -}
197 -
198 -pkg_preinst() {
199 - gnome2_icon_savelist
200 -}
201 -
202 -pkg_postinst() {
203 - gnome2_icon_cache_update
204 -}
205 -
206 -pkg_postrm() {
207 - gnome2_icon_cache_update
208 -}