1 |
mr_bones_ 12/04/02 18:10:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freeciv-2.3.2.ebuild |
5 |
Log: |
6 |
version bump (bug #410533) |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.134 games-strategy/freeciv/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.134&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?rev=1.134&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/ChangeLog?r1=1.133&r2=1.134 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v |
20 |
retrieving revision 1.133 |
21 |
retrieving revision 1.134 |
22 |
diff -u -r1.133 -r1.134 |
23 |
--- ChangeLog 15 Jan 2012 15:39:17 -0000 1.133 |
24 |
+++ ChangeLog 2 Apr 2012 18:10:36 -0000 1.134 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for games-strategy/freeciv |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.133 2012/01/15 15:39:17 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/ChangeLog,v 1.134 2012/04/02 18:10:36 mr_bones_ Exp $ |
30 |
+ |
31 |
+*freeciv-2.3.2 (02 Apr 2012) |
32 |
+ |
33 |
+ 02 Apr 2012; Michael Sterrett <mr_bones_@g.o> |
34 |
+ files/freeciv-2.3.0-clean-man.patch, files/freeciv-2.3.1-clean-man.patch, |
35 |
+ +freeciv-2.3.2.ebuild, +files/freeciv-2.3.2-clean-man.patch: |
36 |
+ version bump (bug #410533) |
37 |
|
38 |
15 Jan 2012; Pawel Hajdan jr <phajdan.jr@g.o> freeciv-2.3.1.ebuild: |
39 |
x86 stable wrt bug #396623 |
40 |
|
41 |
|
42 |
|
43 |
1.1 games-strategy/freeciv/freeciv-2.3.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.3.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/freeciv/freeciv-2.3.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: freeciv-2.3.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 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.3.2.ebuild,v 1.1 2012/04/02 18:10:36 mr_bones_ Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
inherit eutils gnome2-utils games-ggz 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 dedicated ggz gtk ipv6 nls readline sdl +sound" |
65 |
|
66 |
RDEPEND="readline? ( sys-libs/readline ) |
67 |
sys-libs/zlib |
68 |
app-arch/bzip2 |
69 |
auth? ( virtual/mysql ) |
70 |
!dedicated? ( |
71 |
nls? ( virtual/libintl ) |
72 |
gtk? ( x11-libs/gtk+:2 ) |
73 |
sdl? ( |
74 |
media-libs/libsdl[video] |
75 |
media-libs/sdl-image[png] |
76 |
media-libs/freetype |
77 |
) |
78 |
!gtk? ( !sdl? ( x11-libs/gtk+:2 ) ) |
79 |
sound? ( |
80 |
media-libs/libsdl[audio] |
81 |
media-libs/sdl-mixer |
82 |
) |
83 |
ggz? ( games-board/ggz-gtk-client ) |
84 |
media-libs/libpng |
85 |
)" |
86 |
DEPEND="${RDEPEND} |
87 |
dev-util/pkgconfig |
88 |
!dedicated? ( |
89 |
nls? ( sys-devel/gettext ) |
90 |
x11-proto/xextproto |
91 |
)" |
92 |
|
93 |
src_prepare() { |
94 |
# install the .desktop in /usr/share/applications |
95 |
# install the icons in /usr/share/pixmaps |
96 |
sed -i \ |
97 |
-e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \ |
98 |
-e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ |
99 |
-e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ |
100 |
client/Makefile.in \ |
101 |
server/Makefile.in \ |
102 |
modinst/Makefile.in \ |
103 |
data/Makefile.in \ |
104 |
data/icons/Makefile.in \ |
105 |
|| die "sed failed" |
106 |
|
107 |
# remove civclient manpage if dedicated server |
108 |
if use dedicated ; then |
109 |
epatch "${FILESDIR}"/${P}-clean-man.patch |
110 |
fi |
111 |
} |
112 |
|
113 |
src_configure() { |
114 |
local myclient myopts |
115 |
|
116 |
if use dedicated ; then |
117 |
myclient="no" |
118 |
else |
119 |
use sdl && myclient="${myclient} sdl" |
120 |
use gtk && myclient="${myclient} gtk" |
121 |
[[ -z ${myclient} ]] && myclient="gtk" # default to gtk if none specified |
122 |
myopts=$(use_with ggz ggz-client) |
123 |
fi |
124 |
|
125 |
egamesconf \ |
126 |
--disable-dependency-tracking \ |
127 |
--localedir=/usr/share/locale \ |
128 |
--with-ggzconfig=/usr/bin \ |
129 |
--enable-noregistry="${GGZ_MODDIR}" \ |
130 |
$(use_enable auth) \ |
131 |
$(use_enable ipv6) \ |
132 |
$(use_enable nls) \ |
133 |
$(use_with readline) \ |
134 |
$(use_enable sound sdl-mixer) \ |
135 |
${myopts} \ |
136 |
--enable-client="${myclient}" |
137 |
} |
138 |
|
139 |
src_install() { |
140 |
emake DESTDIR="${D}" install || die "emake install failed" |
141 |
|
142 |
if ! use dedicated ; then |
143 |
# Create and install the html manual. It can't be done for dedicated |
144 |
# servers, because the 'civmanual' tool is then not built. Also |
145 |
# delete civmanual from the GAMES_BINDIR, because it's then useless. |
146 |
# Note: to have it localized, it should be ran from _postinst, or |
147 |
# something like that, but then it's a PITA to avoid orphan files... |
148 |
./manual/freeciv-manual || die "freeciv-manual failed" |
149 |
dohtml manual*.html || die "dohtml failed" |
150 |
rm -f "${D}/${GAMES_BINDIR}"/civmanual |
151 |
use sdl && make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client |
152 |
fi |
153 |
|
154 |
dodoc ChangeLog NEWS doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,README*,TODO} |
155 |
rm -rf "${D}$(games_get_libdir)" |
156 |
|
157 |
prepgamesdirs |
158 |
} |
159 |
|
160 |
pkg_preinst() { |
161 |
games_pkg_preinst |
162 |
gnome2_icon_savelist |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
games_pkg_postinst |
167 |
games-ggz_update_modules |
168 |
gnome2_icon_cache_update |
169 |
} |
170 |
|
171 |
pkg_postrm() { |
172 |
games-ggz_update_modules |
173 |
gnome2_icon_cache_update |
174 |
} |