1 |
mr_bones_ 15/02/05 21:49:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freeciv-2.4.4.ebuild |
5 |
Removed: freeciv-2.4.3.ebuild |
6 |
Log: |
7 |
version bump; clean old |
8 |
|
9 |
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit) |
10 |
|
11 |
Revision Changes Path |
12 |
1.161 games-strategy/freeciv/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.161&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.161&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.160&r2=1.161 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v |
21 |
retrieving revision 1.160 |
22 |
retrieving revision 1.161 |
23 |
diff -u -r1.160 -r1.161 |
24 |
--- ChangeLog 3 Jan 2015 19:21:26 -0000 1.160 |
25 |
+++ ChangeLog 5 Feb 2015 21:49:03 -0000 1.161 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for games-strategy/freeciv |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.160 2015/01/03 19:21:26 mr_bones_ Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.161 2015/02/05 21:49:03 mr_bones_ Exp $ |
31 |
+ |
32 |
+*freeciv-2.4.4 (05 Feb 2015) |
33 |
+ |
34 |
+ 05 Feb 2015; Michael Sterrett <mr_bones_@g.o> +freeciv-2.4.4.ebuild, |
35 |
+ -freeciv-2.4.3.ebuild: |
36 |
+ version bump; clean old |
37 |
|
38 |
03 Jan 2015; Michael Sterrett <mr_bones_@g.o> metadata.xml: |
39 |
drop ggz from metadata.xml |
40 |
|
41 |
|
42 |
|
43 |
1.1 games-strategy/freeciv/freeciv-2.4.4.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.4.4.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.4.4.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: freeciv-2.4.4.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2015 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.4.4.ebuild,v 1.1 2015/02/05 21:49:03 mr_bones_ Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
inherit eutils gnome2-utils games |
56 |
|
57 |
DESCRIPTION="multiplayer strategy game (Civilization Clone)" |
58 |
HOMEPAGE="http://www.freeciv.org/" |
59 |
SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
64 |
IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls postgres readline sdl +server +sound sqlite" |
65 |
|
66 |
RDEPEND="app-arch/bzip2 |
67 |
app-arch/xz-utils |
68 |
dev-lang/lua |
69 |
net-misc/curl |
70 |
sys-libs/zlib |
71 |
auth? ( |
72 |
mysql? ( virtual/mysql ) |
73 |
postgres? ( dev-db/postgresql ) |
74 |
sqlite? ( dev-db/sqlite:3 ) |
75 |
!mysql? ( !postgres? ( !sqlite? ( virtual/mysql ) ) ) |
76 |
) |
77 |
readline? ( sys-libs/readline:0 ) |
78 |
dedicated? ( aimodules? ( dev-libs/libltdl:0 ) ) |
79 |
!dedicated? ( |
80 |
media-libs/libpng:0 |
81 |
gtk? ( x11-libs/gtk+:2 ) |
82 |
mapimg? ( media-gfx/imagemagick ) |
83 |
modpack? ( x11-libs/gtk+:2 ) |
84 |
nls? ( virtual/libintl ) |
85 |
sdl? ( |
86 |
media-libs/libsdl[video] |
87 |
media-libs/sdl-image[png] |
88 |
media-libs/freetype:2 |
89 |
) |
90 |
server? ( aimodules? ( sys-devel/libtool:2 ) ) |
91 |
sound? ( |
92 |
media-libs/libsdl[sound] |
93 |
media-libs/sdl-mixer[vorbis] |
94 |
) |
95 |
!sdl? ( !gtk? ( x11-libs/gtk+:2 ) ) |
96 |
)" |
97 |
DEPEND="${RDEPEND} |
98 |
virtual/pkgconfig |
99 |
!dedicated? ( |
100 |
x11-proto/xextproto |
101 |
nls? ( sys-devel/gettext ) |
102 |
)" |
103 |
|
104 |
pkg_setup() { |
105 |
if use !dedicated && use !server ; then |
106 |
ewarn "Disabling server USE flag will make it impossible" |
107 |
ewarn "to start local games, but you will still be able to" |
108 |
ewarn "join multiplayer games." |
109 |
fi |
110 |
games_pkg_setup |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
|
115 |
# install the .desktop in /usr/share/applications |
116 |
# install the icons in /usr/share/pixmaps |
117 |
sed -i \ |
118 |
-e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \ |
119 |
-e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ |
120 |
-e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ |
121 |
client/Makefile.in \ |
122 |
server/Makefile.in \ |
123 |
modinst/Makefile.in \ |
124 |
data/Makefile.in \ |
125 |
data/icons/Makefile.in || die |
126 |
sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die |
127 |
} |
128 |
|
129 |
src_configure() { |
130 |
local myclient myopts mydatabase |
131 |
|
132 |
if use auth ; then |
133 |
if use !mysql && use !postgres && use !sqlite ; then |
134 |
einfo "No database backend chosen, defaulting" |
135 |
einfo "to mysql!" |
136 |
mydatabase=mysql |
137 |
else |
138 |
use mysql && mydatabase="${mydatabase} mysql" |
139 |
use postgres && mydatabase="${mydatabase} postgres" |
140 |
use sqlite && mydatabase="${mydatabase} sqlite3" |
141 |
fi |
142 |
else |
143 |
mydatabase=no |
144 |
fi |
145 |
|
146 |
if use dedicated ; then |
147 |
myclient="no" |
148 |
myopts="--enable-server" |
149 |
else |
150 |
if use !sdl && use !gtk ; then |
151 |
einfo "No client backend given, defaulting to" |
152 |
einfo "gtk2 client!" |
153 |
myclient="gtk2" |
154 |
else |
155 |
use sdl && myclient="${myclient} sdl" |
156 |
use gtk && myclient="${myclient} gtk2" |
157 |
fi |
158 |
myopts="$(use_enable server) --without-ggz-client" |
159 |
fi |
160 |
|
161 |
# disabling shared libs will break aimodules USE flag |
162 |
egamesconf \ |
163 |
--docdir="/usr/share/doc/${P}" \ |
164 |
--localedir=/usr/share/locale \ |
165 |
$(use_enable ipv6) \ |
166 |
$(use_enable mapimg) \ |
167 |
--enable-aimodules="$(usex aimodules "yes" "no")" \ |
168 |
--enable-shared \ |
169 |
--enable-fcdb="${mydatabase}" \ |
170 |
$(use_enable nls) \ |
171 |
$(use_with readline) \ |
172 |
$(use_enable sound sdl-mixer) \ |
173 |
--enable-fcmp="$(usex modpack "gtk2" "no")" \ |
174 |
--enable-sys-lua \ |
175 |
${myopts} \ |
176 |
--enable-client="${myclient}" |
177 |
} |
178 |
|
179 |
src_install() { |
180 |
emake DESTDIR="${D}" install |
181 |
|
182 |
if use dedicated ; then |
183 |
rm -rf "${D}/usr/share/pixmaps" |
184 |
rm -f "${D}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,sdl,xaw}* |
185 |
else |
186 |
if use server ; then |
187 |
# Create and install the html manual. It can't be done for dedicated |
188 |
# servers, because the 'freeciv-manual' tool is then not built. Also |
189 |
# delete freeciv-manual from the GAMES_BINDIR, because it's useless. |
190 |
# Note: to have it localized, it should be ran from _postinst, or |
191 |
# something like that, but then it's a PITA to avoid orphan files... |
192 |
./manual/freeciv-manual || die |
193 |
dohtml manual*.html |
194 |
fi |
195 |
if use sdl ; then |
196 |
make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client |
197 |
else |
198 |
rm -f "${D}"/usr/share/man/man6/freeciv-sdl* |
199 |
fi |
200 |
rm -f "${D}"/usr/share/man/man6/freeciv-xaw* |
201 |
fi |
202 |
find "${D}" -name "freeciv-manual*" -delete |
203 |
|
204 |
rm -f "${D}$(games_get_libdir)"/*.a |
205 |
prune_libtool_files |
206 |
|
207 |
prepgamesdirs |
208 |
} |
209 |
|
210 |
pkg_preinst() { |
211 |
games_pkg_preinst |
212 |
gnome2_icon_savelist |
213 |
} |
214 |
|
215 |
pkg_postinst() { |
216 |
games_pkg_postinst |
217 |
gnome2_icon_cache_update |
218 |
} |
219 |
|
220 |
pkg_postrm() { |
221 |
gnome2_icon_cache_update |
222 |
} |