1 |
eva 12/12/25 21:23:16 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: gnome-games-3.6.1-r1.ebuild |
5 |
Log: |
6 |
Version bump for Gnome 3.6. Switch to EAPI=5 and python-r1.eclass. |
7 |
|
8 |
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key C6085806) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 gnome-extra/gnome-games/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/metadata.xml?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/metadata.xml?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/metadata.xml?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/metadata.xml,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- metadata.xml 10 Dec 2012 02:06:28 -0000 1.7 |
24 |
+++ metadata.xml 25 Dec 2012 21:23:16 -0000 1.8 |
25 |
@@ -8,8 +8,6 @@ |
26 |
<flag name="clutter">Install games that use <pkg>media-libs/clutter</pkg></flag> |
27 |
<flag name="glchess">Install Chess written in <pkg>dev-lang/vala</pkg> and |
28 |
OpenGL</flag> |
29 |
- <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> |
30 |
- for introspection</flag> |
31 |
<flag name="sudoku">Install the game Sudoku which uses |
32 |
<pkg>dev-python/pygobject</pkg> and introspection</flag> |
33 |
</use> |
34 |
|
35 |
|
36 |
|
37 |
1.326 gnome-extra/gnome-games/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/ChangeLog?rev=1.326&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/ChangeLog?rev=1.326&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/ChangeLog?r1=1.325&r2=1.326 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v |
46 |
retrieving revision 1.325 |
47 |
retrieving revision 1.326 |
48 |
diff -u -r1.325 -r1.326 |
49 |
--- ChangeLog 10 Dec 2012 02:06:28 -0000 1.325 |
50 |
+++ ChangeLog 25 Dec 2012 21:23:16 -0000 1.326 |
51 |
@@ -1,6 +1,12 @@ |
52 |
# ChangeLog for gnome-extra/gnome-games |
53 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.325 2012/12/10 02:06:28 tetromino Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.326 2012/12/25 21:23:16 eva Exp $ |
56 |
+ |
57 |
+*gnome-games-3.6.1-r1 (25 Dec 2012) |
58 |
+ |
59 |
+ 25 Dec 2012; Gilles Dartiguelongue <eva@g.o> |
60 |
+ +gnome-games-3.6.1-r1.ebuild, metadata.xml: |
61 |
+ Version bump for Gnome 3.6. Switch to EAPI=5 and python-r1.eclass. |
62 |
|
63 |
10 Dec 2012; Alexandre Rostovtsev <tetromino@g.o> |
64 |
-gnome-games-3.2.1-r1.ebuild, -files/gnome-games-3.2.1-pygobject-3.0.3.patch, |
65 |
|
66 |
|
67 |
|
68 |
1.1 gnome-extra/gnome-games/gnome-games-3.6.1-r1.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.6.1-r1.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.6.1-r1.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: gnome-games-3.6.1-r1.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2012 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.6.1-r1.ebuild,v 1.1 2012/12/25 21:23:16 eva Exp $ |
78 |
|
79 |
EAPI="5" |
80 |
GCONF_DEBUG="no" |
81 |
GNOME2_LA_PUNT="yes" |
82 |
PYTHON_COMPAT=( python2_{6,7} ) |
83 |
PYTHON_REQ_USE="xml" |
84 |
|
85 |
# Make sure games is inherited first so that the gnome2 |
86 |
# functions will be called if they are not overridden |
87 |
inherit games gnome2 python-r1 virtualx |
88 |
|
89 |
DESCRIPTION="Collection of games for the GNOME desktop" |
90 |
HOMEPAGE="http://live.gnome.org/GnomeGames/" |
91 |
|
92 |
LICENSE="GPL-2 GPL-3 FDL-1.1" |
93 |
SLOT="0" |
94 |
# TODO: file KEYWORDREQ bug once it's determined that seed is usable |
95 |
KEYWORDS="~amd64 ~mips ~x86" |
96 |
|
97 |
# FIXME: we should decide whether to have USE flag for games or features |
98 |
# IUSE="artworkextra clutter opengl python test" |
99 |
# vs |
100 |
# IUSE="artworkextra aisleriot glchess quadrapassel swell-foop lightsoff gnibbles sudoku" |
101 |
IUSE="artworkextra +aisleriot +clutter +glchess +sudoku test" |
102 |
|
103 |
COMMON_DEPEND=" |
104 |
>=dev-libs/glib-2.25.7 |
105 |
>=gnome-base/librsvg-2.32 |
106 |
>=x11-libs/cairo-1.10 |
107 |
>=x11-libs/gtk+-3.3.11:3[introspection] |
108 |
|
109 |
>=media-libs/libcanberra-0.26[gtk3] |
110 |
|
111 |
artworkextra? ( >=gnome-extra/gnome-games-extra-data-3 ) |
112 |
clutter? ( |
113 |
media-libs/clutter:1.0[introspection] |
114 |
>=media-libs/clutter-gtk-0.91.6:1.0 ) |
115 |
glchess? ( |
116 |
dev-db/sqlite:3 |
117 |
virtual/glu |
118 |
virtual/opengl |
119 |
x11-libs/libX11 ) |
120 |
sudoku? ( dev-libs/gobject-introspection ) |
121 |
" |
122 |
RDEPEND="${COMMON_DEPEND} |
123 |
sudoku? ( |
124 |
${PYTHON_DEPS} |
125 |
dev-python/pycairo |
126 |
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] |
127 |
x11-libs/gdk-pixbuf:2[introspection] |
128 |
x11-libs/pango[introspection] |
129 |
>=x11-libs/gtk+-3:3[introspection] ) |
130 |
|
131 |
!<gnome-extra/gnome-games-extra-data-3 |
132 |
" |
133 |
DEPEND="${COMMON_DEPEND} |
134 |
>=dev-util/intltool-0.40.4 |
135 |
dev-util/itstool |
136 |
>=sys-devel/gettext-0.10.40 |
137 |
virtual/pkgconfig |
138 |
" |
139 |
|
140 |
# For compatibility with older versions of the gnome-games package |
141 |
PDEPEND="aisleriot? ( games-board/aisleriot )" |
142 |
|
143 |
# Others are installed below; multiples in this package. |
144 |
DOCS="AUTHORS HACKING MAINTAINERS TODO" |
145 |
|
146 |
_omitgame() { |
147 |
G2CONF="${G2CONF},${1}" |
148 |
} |
149 |
|
150 |
pkg_setup() { |
151 |
# create the games user / group |
152 |
games_pkg_setup |
153 |
python_pkg_setup |
154 |
} |
155 |
|
156 |
src_prepare() { |
157 |
gnome2_src_prepare |
158 |
if use sudoku ; then |
159 |
python_copy_sources |
160 |
fi |
161 |
} |
162 |
|
163 |
src_configure() { |
164 |
G2CONF="${G2CONF} |
165 |
--disable-static |
166 |
ITSTOOL=$(type -P true) |
167 |
VALAC=$(type -P true) |
168 |
--with-platform=gnome |
169 |
--with-scores-group=${GAMES_GROUP} |
170 |
--enable-omitgames=none" # This line should be last for _omitgame |
171 |
|
172 |
# FIXME: Use REQUIRED_USE once games.eclass is ported to EAPI 4 |
173 |
if ! use clutter; then |
174 |
ewarn "USE='-clutter' => quadrapassel, swell-foop, lightsoff, gnibbles won't be installed" |
175 |
_omitgame quadrapassel |
176 |
_omitgame gnibbles |
177 |
_omitgame swell-foop |
178 |
_omitgame lightsoff |
179 |
fi |
180 |
|
181 |
if ! use glchess; then |
182 |
_omitgame glchess |
183 |
fi |
184 |
|
185 |
if ! use sudoku; then |
186 |
_omitgame gnome-sudoku |
187 |
fi |
188 |
|
189 |
if use sudoku ; then |
190 |
python_foreach_impl run_in_build_dir gnome2_src_configure |
191 |
else |
192 |
gnome2_src_configure |
193 |
fi |
194 |
} |
195 |
|
196 |
src_compile() { |
197 |
if use sudoku ; then |
198 |
python_foreach_impl run_in_build_dir gnome2_src_compile |
199 |
else |
200 |
gnome2_src_compile |
201 |
fi |
202 |
} |
203 |
|
204 |
src_test() { |
205 |
if use sudoku ; then |
206 |
python_foreach_impl run_in_build_dir Xemake check |
207 |
else |
208 |
Xemake check || die "tests failed" |
209 |
fi |
210 |
} |
211 |
|
212 |
src_install() { |
213 |
if use sudoku ; then |
214 |
install_python() { |
215 |
gnome2_src_install |
216 |
python_doscript gnome-sudoku/src/gnome-sudoku |
217 |
} |
218 |
python_foreach_impl run_in_build_dir install_python |
219 |
else |
220 |
gnome2_src_install |
221 |
fi |
222 |
|
223 |
# Documentation install for each of the games |
224 |
for game in \ |
225 |
$(find . -maxdepth 1 -type d ! -name po ! -name libgames-support); do |
226 |
docinto ${game} |
227 |
for doc in AUTHORS ChangeLog NEWS README TODO; do |
228 |
[ -s ${game}/${doc} ] && dodoc ${game}/${doc} |
229 |
done |
230 |
done |
231 |
} |
232 |
|
233 |
pkg_preinst() { |
234 |
gnome2_pkg_preinst |
235 |
# Avoid overwriting previous .scores files |
236 |
local basefile |
237 |
for scorefile in "${ED}"/var/lib/games/*.scores; do |
238 |
basefile=$(basename $scorefile) |
239 |
if [ -s "${EROOT}/var/lib/games/${basefile}" ]; then |
240 |
cp "${EROOT}/var/lib/games/${basefile}" \ |
241 |
"${ED}/var/lib/games/${basefile}" |
242 |
fi |
243 |
done |
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
games_pkg_postinst |
248 |
gnome2_pkg_postinst |
249 |
} |
250 |
|
251 |
pkg_postrm() { |
252 |
gnome2_pkg_postrm |
253 |
} |
254 |
|
255 |
run_in_build_dir() { |
256 |
pushd "${BUILD_DIR}" > /dev/null || die |
257 |
"$@" |
258 |
popd > /dev/null |
259 |
} |