1 |
commit: 11a77603a46b0ba9fd704a93f20d1ae5068922bd |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 21:18:12 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 21:18:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11a77603 |
7 |
|
8 |
games-strategy/freeciv: Bump to version 2.5.6 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
games-strategy/freeciv/Manifest | 1 + |
13 |
games-strategy/freeciv/freeciv-2.5.6.ebuild | 179 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 180 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/freeciv/Manifest b/games-strategy/freeciv/Manifest |
17 |
index b4a9241..508b31a 100644 |
18 |
--- a/games-strategy/freeciv/Manifest |
19 |
+++ b/games-strategy/freeciv/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST freeciv-2.5.3.tar.bz2 41010519 SHA256 480b0381c64bf1a9423f2507a75d76bda9bf45c3c3badd30b5bad105e75d805c SHA512 a3e1ee5f585be062ec5fc7783dfe24f4cd313bea016af47b868e01561fc3958a86ed310edd41130fc5ede6ca2547ca38198c8dbb18974db7d14defd103277b4b WHIRLPOOL c75ef1419e965003aebb396fd7245fa0a859fea2574d74cc1ef8de7bb4b3b0e47f28ee8bcf0b30c3ad1116bd374336f51bb285d66ea244e4b68e44e33ad36ec4 |
22 |
DIST freeciv-2.5.4.tar.bz2 40977253 SHA256 9e64ef047fd0d2f8e9aa1da01586dea7cfe63a36b15875c168ada555c2e6634b SHA512 08fb0d0e622fdb75a57edfa2de2c662fe68966e510dfc9c0219a00aa52f09ce67c43ad2df6109bdc440a39b020f4762015b04641f01327326768448acff46a92 WHIRLPOOL c07b5fedcb50257df184c4173868b1455ec42298e6fb63517fa94cd70d2216e0d9ca23e861bee9928b83bcbdcb692cf13344a5c6909f2d2ba599193bba851b83 |
23 |
DIST freeciv-2.5.5.tar.bz2 40828396 SHA256 5622f2142637057f7e47b1eda764c4e131222fab4d5bb42cd59fbd58ba3db1d4 SHA512 20cb71ab6d81b0ab272d1a0f8f2d639cbda3f6354a09fef3469cc35b391bf6efd947348c82c76dc632e3366ed1ee203af0e79a2378f7e5ea4206b4fede60f95e WHIRLPOOL 9ca6655f645c84d4488b6c96d06b0e7aa0187a0d29d5e90b8e6c81d544b022727af4ec7004d570e352fc7c60e95f7985f0a9ede7b480247a376e63dbca1ecac4 |
24 |
+DIST freeciv-2.5.6.tar.bz2 41185678 SHA256 cfadc23eec11a5a8ae74a7d3719eb126026137f0700da065367fd55cbab6999b SHA512 85f87d73e7f9a74ff4fe71962481374b2e37a98574615fb94831af0b3d8c1e5c8bbee9a9bbb0223ff455ca46ead85f050f941fb97777c015d1d760d8468cb3db WHIRLPOOL a93bcf972226b65df1cbd33816949593f27bc12aea92abd00e94eaf6659682b59bc3019897e8917eacbf3e9ed88067fd261afc4374f72c392feb07e08ac02cc1 |
25 |
|
26 |
diff --git a/games-strategy/freeciv/freeciv-2.5.6.ebuild b/games-strategy/freeciv/freeciv-2.5.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..441850c |
29 |
--- /dev/null |
30 |
+++ b/games-strategy/freeciv/freeciv-2.5.6.ebuild |
31 |
@@ -0,0 +1,179 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+inherit eutils flag-o-matic gnome2-utils |
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 qt5 readline sdl +server +sound sqlite system-lua" |
47 |
+ |
48 |
+# postgres isn't yet really supported by upstream |
49 |
+RDEPEND="app-arch/bzip2 |
50 |
+ app-arch/xz-utils |
51 |
+ net-misc/curl |
52 |
+ sys-libs/zlib |
53 |
+ auth? ( |
54 |
+ mysql? ( virtual/mysql ) |
55 |
+ sqlite? ( dev-db/sqlite:3 ) |
56 |
+ !mysql? ( ( !sqlite? ( virtual/mysql ) ) ) |
57 |
+ ) |
58 |
+ readline? ( sys-libs/readline:0= ) |
59 |
+ dedicated? ( aimodules? ( dev-libs/libltdl:0 ) ) |
60 |
+ !dedicated? ( |
61 |
+ media-libs/libpng:0 |
62 |
+ gtk? ( x11-libs/gtk+:2 ) |
63 |
+ mapimg? ( media-gfx/imagemagick:= ) |
64 |
+ modpack? ( x11-libs/gtk+:2 ) |
65 |
+ nls? ( virtual/libintl ) |
66 |
+ qt5? ( |
67 |
+ dev-qt/qtcore:5 |
68 |
+ dev-qt/qtgui:5 |
69 |
+ dev-qt/qtwidgets:5 |
70 |
+ ) |
71 |
+ sdl? ( |
72 |
+ media-libs/libsdl[video] |
73 |
+ media-libs/sdl-gfx |
74 |
+ media-libs/sdl-image[png] |
75 |
+ media-libs/sdl-ttf |
76 |
+ ) |
77 |
+ server? ( aimodules? ( sys-devel/libtool:2 ) ) |
78 |
+ sound? ( |
79 |
+ media-libs/libsdl[sound] |
80 |
+ media-libs/sdl-mixer[vorbis] |
81 |
+ ) |
82 |
+ !sdl? ( !gtk? ( x11-libs/gtk+:2 ) ) |
83 |
+ ) |
84 |
+ system-lua? ( >=dev-lang/lua-5.2 )" |
85 |
+DEPEND="${RDEPEND} |
86 |
+ virtual/pkgconfig |
87 |
+ !dedicated? ( |
88 |
+ x11-proto/xextproto |
89 |
+ nls? ( sys-devel/gettext ) |
90 |
+ )" |
91 |
+ |
92 |
+pkg_setup() { |
93 |
+ if use !dedicated && use !server ; then |
94 |
+ ewarn "Disabling server USE flag will make it impossible" |
95 |
+ ewarn "to start local games, but you will still be able to" |
96 |
+ ewarn "join multiplayer games." |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ default |
102 |
+ |
103 |
+ # install the .desktop in /usr/share/applications |
104 |
+ # install the icons in /usr/share/pixmaps |
105 |
+ sed -i \ |
106 |
+ -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \ |
107 |
+ -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ |
108 |
+ -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ |
109 |
+ client/Makefile.in \ |
110 |
+ server/Makefile.in \ |
111 |
+ tools/Makefile.in \ |
112 |
+ data/icons/Makefile.in || die |
113 |
+ sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die |
114 |
+} |
115 |
+ |
116 |
+src_configure() { |
117 |
+ local myclient myopts mydatabase |
118 |
+ |
119 |
+ if use auth ; then |
120 |
+ if use !mysql && use !sqlite ; then |
121 |
+ einfo "No database backend chosen, defaulting" |
122 |
+ einfo "to mysql!" |
123 |
+ mydatabase=mysql |
124 |
+ else |
125 |
+ use mysql && mydatabase="${mydatabase} mysql" |
126 |
+ use sqlite && mydatabase="${mydatabase} sqlite3" |
127 |
+ fi |
128 |
+ else |
129 |
+ mydatabase=no |
130 |
+ fi |
131 |
+ |
132 |
+ if use dedicated ; then |
133 |
+ myclient="no" |
134 |
+ myopts="--enable-server" |
135 |
+ else |
136 |
+ if use !sdl && use !gtk && ! use qt5 ; then |
137 |
+ einfo "No client backend given, defaulting to" |
138 |
+ einfo "gtk2 client!" |
139 |
+ myclient="gtk2" |
140 |
+ else |
141 |
+ use sdl && myclient+=" sdl" |
142 |
+ use gtk && myclient+=" gtk2" |
143 |
+ if use qt5 ; then |
144 |
+ myclient+=" qt" |
145 |
+ append-cxxflags -std=c++11 |
146 |
+ fi |
147 |
+ fi |
148 |
+ myopts="$(use_enable server) --without-ggz-client" |
149 |
+ fi |
150 |
+ |
151 |
+ # disabling shared libs will break aimodules USE flag |
152 |
+ econf \ |
153 |
+ --localedir=/usr/share/locale \ |
154 |
+ $(use_enable ipv6) \ |
155 |
+ $(use_enable mapimg) \ |
156 |
+ --enable-aimodules="$(usex aimodules "yes" "no")" \ |
157 |
+ --enable-shared \ |
158 |
+ --enable-fcdb="${mydatabase}" \ |
159 |
+ $(use_enable nls) \ |
160 |
+ $(use_with readline) \ |
161 |
+ $(use_enable sound sdl-mixer) \ |
162 |
+ --enable-fcmp="$(usex modpack "gtk2" "no")" \ |
163 |
+ $(use_enable system-lua sys-lua) \ |
164 |
+ ${myopts} \ |
165 |
+ --enable-client="${myclient}" |
166 |
+} |
167 |
+ |
168 |
+src_install() { |
169 |
+ default |
170 |
+ |
171 |
+ if use dedicated ; then |
172 |
+ rm -rf "${D}/usr/share/pixmaps" |
173 |
+ rm -f "${D}"/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 "${D}"/usr/share/man/man6/freeciv-sdl* |
189 |
+ fi |
190 |
+ rm -f "${D}"/usr/share/man/man6/freeciv-xaw* |
191 |
+ fi |
192 |
+ find "${D}" -name "freeciv-manual*" -delete |
193 |
+ |
194 |
+ rm -f "${D}/usr/$(get_libdir)"/*.a |
195 |
+ prune_libtool_files |
196 |
+} |
197 |
+ |
198 |
+pkg_preinst() { |
199 |
+ games_pkg_preinst |
200 |
+ gnome2_icon_savelist |
201 |
+} |
202 |
+ |
203 |
+pkg_postinst() { |
204 |
+ games_pkg_postinst |
205 |
+ gnome2_icon_cache_update |
206 |
+} |
207 |
+ |
208 |
+pkg_postrm() { |
209 |
+ gnome2_icon_cache_update |
210 |
+} |