summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-01-04 23:30:10 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-01-04 23:30:10 +0000
commit45764bfd9390340db3c038a33338b0cae9d31533 (patch)
tree5be186dfbd615fe65ca8c0814c1d352d68ad2075 /gnome-extra
parentVersion bump. (diff)
downloadhistorical-45764bfd9390340db3c038a33338b0cae9d31533.tar.gz
historical-45764bfd9390340db3c038a33338b0cae9d31533.tar.bz2
historical-45764bfd9390340db3c038a33338b0cae9d31533.zip
Fix py-compile idiom for automake-1.11.2 compatibility (bugs #396585, #397335). Move gnome2_src_prepare after eautoreconf. Revbump to fix sudoku set_bg_color traceback and pygobject-3.0.3 crashes (bug #397501), and to not install libgames-support-gi.a.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra')
-rw-r--r--gnome-extra/gnome-games/ChangeLog16
-rw-r--r--gnome-extra/gnome-games/Manifest19
-rw-r--r--gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch33
-rw-r--r--gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch29
-rw-r--r--gnome-extra/gnome-games/gnome-games-2.28.2.ebuild7
-rw-r--r--gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild7
-rw-r--r--gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild7
-rw-r--r--gnome-extra/gnome-games/gnome-games-3.2.1-r1.ebuild194
-rw-r--r--gnome-extra/gnome-games/gnome-games-3.2.1.ebuild11
9 files changed, 295 insertions, 28 deletions
diff --git a/gnome-extra/gnome-games/ChangeLog b/gnome-extra/gnome-games/ChangeLog
index 88cfd08ec9b9..a4b1ba8932b6 100644
--- a/gnome-extra/gnome-games/ChangeLog
+++ b/gnome-extra/gnome-games/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for gnome-extra/gnome-games
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.312 2011/11/07 04:03:58 tetromino Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.313 2012/01/04 23:30:09 tetromino Exp $
+
+*gnome-games-3.2.1-r1 (04 Jan 2012)
+
+ 04 Jan 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
+ gnome-games-2.28.2.ebuild, gnome-games-2.30.2-r1.ebuild,
+ gnome-games-2.30.2-r2.ebuild, gnome-games-3.2.1.ebuild,
+ +gnome-games-3.2.1-r1.ebuild, +files/gnome-games-3.2.1-pygobject-3.0.3.patch,
+ +files/gnome-games-3.2.1-sudoku-borders.patch:
+ Fix py-compile idiom for automake-1.11.2 compatibility (bugs #396585,
+ #397335). Move gnome2_src_prepare after eautoreconf. Revbump to fix sudoku
+ set_bg_color traceback and pygobject-3.0.3 crashes (bug #397501), and to not
+ install libgames-support-gi.a.
*gnome-games-3.2.1 (07 Nov 2011)
diff --git a/gnome-extra/gnome-games/Manifest b/gnome-extra/gnome-games/Manifest
index 1bf2f7a93b17..73fb182fbd9a 100644
--- a/gnome-extra/gnome-games/Manifest
+++ b/gnome-extra/gnome-games/Manifest
@@ -5,20 +5,23 @@ AUX gnome-games-2.26.3-gtali-invalid-pointer.patch 1145 RMD160 905fa0574296c70a4
AUX gnome-games-2.26.3-implicit-declaration.patch 319 RMD160 c6d868784160c6e10c046d6e117ce6206e1dd49f SHA1 1fa72d174f676b594c61dabb232a9e3a3b98b726 SHA256 7a113e54b4fe50a0d49c5b7b842a03b7f8c494e9f4ee42e9f0ae883dd1bfddcb
AUX gnome-games-2.28.1-conflicting-types-libgames-support.patch 1038 RMD160 e9c63e9881adbb43cf462a3387d9d0275e1f3598 SHA1 e3b3c30bd32e786bc767fbcee4006a99fea05095 SHA256 074718266310ccdc0ed29affee2dcd28c6e51e557b4db84a320c2e6223f55b8e
AUX gnome-games-2.91.90-fix-conditional-ac-prog-cxx.patch 633 RMD160 4ac7bc6c039c0cd8193230c8c73a8552a888f457 SHA1 9e54584aba6f313a590bb9664c9676097141749b SHA256 902c85ff3f0898b89b75cb077d5b132ad55045fbd18e8c618fae3daee6352e6b
+AUX gnome-games-3.2.1-pygobject-3.0.3.patch 1293 RMD160 520a0d8fcfafc7b33197fde43f64f7c74c321a06 SHA1 3e7bd87c115ac367651e0443ae54a4a2b278dde5 SHA256 0d1a7dd240b9e59ebd3d5bf98dcfb628b2a70a0ae10d007eb4fe908a524e4bbe
+AUX gnome-games-3.2.1-sudoku-borders.patch 1059 RMD160 043faaf6eb3fbbf7ddea67347e0807f6d0fc0891 SHA1 1abef0455aebf796a89f40e6c0c9f300b16c0718 SHA256 afa6a36eb002ca5ebff9c752a23e865a60df23f0d64c25b883ed77879ae85073
AUX gnome-games-fix-staging-games.patch 1245 RMD160 8a7f63d6b6c11194f7f46946390d346713890aa8 SHA1 535ee43c9b48fbd2ff946a561470846112e2c311 SHA256 525b90b1bdd69ca9a474daab4a7a79e7494f7dc0e148fd50e9195e64483e0817
DIST gnome-games-2.28.2.tar.bz2 25498433 RMD160 03c9ca6e899bcc44436b232b126f22a0946dff43 SHA1 c2be79044175df51e610edf4c9fd6fba270c02bf SHA256 7afca16831eff95cf3e9ea4f1344d26ed30b274b89b06403adf0757221b36899
DIST gnome-games-2.30.2.tar.bz2 27683256 RMD160 12c7e5ba3b4a9aca5d9918978e437e774ac0752b SHA1 3541ccc991af82603fc3067863bc27a731302b2c SHA256 57c3f3685cdd49016dfbf236f4a1d98c9d669d456fabe0aeb6f5a4128dba3586
DIST gnome-games-3.2.1.tar.xz 22816376 RMD160 aac7a262bb0e115743213d7d03d0267dfaa45df9 SHA1 42670da7bfbdecc2014076263dfb30276446c826 SHA256 b40fe59537fd58af1bd8163897684883b730ee0f0257d23b493b13e21d105a3b
-EBUILD gnome-games-2.28.2.ebuild 4880 RMD160 d6a1322f5dd138275e07c4157daede1eb0411a08 SHA1 94d63d2397ddad63ef6c379bce3f4840c17631e2 SHA256 3bb80a0a011f4815801950681e9e09b23ed7f23a4ad6a57acbc9f3110cf76c98
-EBUILD gnome-games-2.30.2-r1.ebuild 4556 RMD160 42fcc40b6196aca11a452dcf5f3e0f4fea523193 SHA1 9803b219699f73bbab1f837431107dacf9d79330 SHA256 d3e367c1b6fdbe8e58d9d49f9104987d17d0a173096c857b20d81ae7b9c34aae
-EBUILD gnome-games-2.30.2-r2.ebuild 4610 RMD160 03b6238170637eb9fe4e24f22b7b762e3c74344e SHA1 dd8ce569c6f619f8623d0a6d1c5dd201d9a0f7f0 SHA256 5e9ff1cf6fb1dc93c0d547a97212fa48760776a024c9c6007d2b0603399344ff
-EBUILD gnome-games-3.2.1.ebuild 4995 RMD160 e7c05066e065c655979a141849232a27c6dcf417 SHA1 43ff7e3df41f64660b318b255f01ba7c6c89ed4c SHA256 e4c9624b91702caa38dcedc777c4b3e5c95f3aec941573b5e4566a58ac1d8079
-MISC ChangeLog 42901 RMD160 78779e281958f912fe9b4c1068604e6a98af1902 SHA1 fcb84bc43fa03dd3dcdec8b104b6b93fc551b1b5 SHA256 f7993d0dfde8e01d71b243dd4bc5cdf46bc511b9768f9f810fb7970eece3af66
+EBUILD gnome-games-2.28.2.ebuild 4835 RMD160 5481910f0364dc9dcf495e5327eb9c1f05b02f15 SHA1 2586240e1e7a61209a10186571db5d493773f735 SHA256 8803a0c1771f2579d222c93b2b817e949e6f1d48cb3de589ef6e57ee4366d6ee
+EBUILD gnome-games-2.30.2-r1.ebuild 4511 RMD160 d3742acef31f0d0ecdec7e8ece9ca2445e24e90c SHA1 41bb4c0d3a1869dd619f97550ff8d3082721007f SHA256 1a5ccb18633844277d841c690d38641d3e4336c930defedb8a53c2d75b73633c
+EBUILD gnome-games-2.30.2-r2.ebuild 4564 RMD160 6d53223687dfbbc5752e589250b54bc9ea53078f SHA1 e411b3bec6adda36ebc32940f4a258ece4b88642 SHA256 33aebeeb7ecad88d21e231608c017dadd925283bdb963f20cae4fffd29ee5252
+EBUILD gnome-games-3.2.1-r1.ebuild 5195 RMD160 440191b4dcc3585cf7517d663326c7bba3f9f51e SHA1 bd7b36fd9c487151ddb934ae8a7e70611d3660ff SHA256 0cb50d00a1853c8a72a0c1c3d6b721c5565b3560149f99e1f0806ea3342258d7
+EBUILD gnome-games-3.2.1.ebuild 4949 RMD160 cd08070ec41637dc6ad6429e7ffa67d901580990 SHA1 c7e1f49af5066717e26fbf69c2699324e015f457 SHA256 1a3de8779ef7639c058621dc106890c7c9dae6092d356aeadd203e19d644823f
+MISC ChangeLog 43505 RMD160 f6e7861d6ef3726449522daad881fd33a50940ce SHA1 14267871ed6e0f9073fdc0acc71320b9ca0a08e7 SHA256 2036dd448fe7cb7899027dd819046d1c09425e94c359c11d5b2fcb45d4434259
MISC metadata.xml 836 RMD160 6d78f876600f8e11989df8f818de2adeb377bf6c SHA1 2ef9bad41e6d98b60a44d851c062c5fe06ecac23 SHA256 b233cfdcd3311a14130163329fa9047c65a852526db63dd6c5002b0bcc6d490d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iF4EAREIAAYFAk63WLMACgkQdjK8w9WeBnDFuAD8Cis9thTSDrO14HmEOgEKO6W4
-Vpahpxx07xfjpE6uZ58A/ihnxi5VLrUoueFnupakmAnwt8saF+UjhOyA+afQInma
-=rOaz
+iF4EAREIAAYFAk8E4RYACgkQdjK8w9WeBnCn+AD9GGMy2qzVm7M+42yHqk0uVkMx
+4Ngn5+9CJvDZnZ4xMh8A/3KU7/lYgzGrMu7ePYMRQgTYvmsq8kfijxedwnwwUDR9
+=YOYC
-----END PGP SIGNATURE-----
diff --git a/gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch b/gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch
new file mode 100644
index 000000000000..020d9fac5c90
--- /dev/null
+++ b/gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch
@@ -0,0 +1,33 @@
+From 8ab5a3a28281e6b1b649d9ef93628b3433ddd887 Mon Sep 17 00:00:00 2001
+From: "John (J5) Palmieri" <johnp@redhat.com>
+Date: Mon, 2 Jan 2012 13:39:05 -0500
+Subject: [PATCH] fix type check so gnome-sudoku works with pygobject >= 3.0.3
+
+gnome-sudoku was using if type(grid) == str to check if it needed
+to convert the game board to a list. Unicode fixes in the latest
+pygobject returns unicode strings for any string stored in a
+TreeStore. The fix was to correctly check for any string using
+isinstance(grid, basestring)
+
+Note this will not work in python3 so needs to be looked at when
+porting
+---
+ gnome-sudoku/src/lib/sudoku.py | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/gnome-sudoku/src/lib/sudoku.py b/gnome-sudoku/src/lib/sudoku.py
+index a345593..7d28608 100644
+--- a/gnome-sudoku/src/lib/sudoku.py
++++ b/gnome-sudoku/src/lib/sudoku.py
+@@ -130,7 +130,7 @@ class SudokuGrid(object):
+ for n, col in enumerate([[(x, y) for y in range(self.group_size)] for x in range(self.group_size)]):
+ self.col_coords[n] = col
+ if grid:
+- if type(grid) == str:
++ if isinstance(grid, basestring):
+ g = re.split("\s+", grid)
+ side = int(math.sqrt(len(g)))
+ grid = []
+--
+1.7.8.2
+
diff --git a/gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch b/gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch
new file mode 100644
index 000000000000..84b3bba59d33
--- /dev/null
+++ b/gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch
@@ -0,0 +1,29 @@
+From a91b3962d121f4042e7029e30a5c1423dfb0c130 Mon Sep 17 00:00:00 2001
+From: Edward Sheldrake <ejsheldrake@gmail.com>
+Date: Sat, 8 Oct 2011 14:42:32 +0100
+Subject: [PATCH] sudoku: fix borders
+
+Fixes python traceback printed to terminal that ends with:
+TypeError: 'Color' object does not support indexing
+
+Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=658519
+---
+ gnome-sudoku/src/lib/gsudoku.py | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
+index 79a0e21..b222f95 100644
+--- a/gnome-sudoku/src/lib/gsudoku.py
++++ b/gnome-sudoku/src/lib/gsudoku.py
+@@ -56,7 +56,7 @@ class SudokuNumberGrid (Gtk.AspectFrame):
+ def set_bg_color (self, color):
+ try:
+ if type(color) == str:
+- color = Gdk.color_parse(color)[1]
++ color = Gdk.color_parse(color)
+ color = Gdk.RGBA(color.red/65535.0, color.green/65535.0, color.blue/65535.0)
+ else:
+ color = Gdk.RGBA(*color)
+--
+1.7.8.1
+
diff --git a/gnome-extra/gnome-games/gnome-games-2.28.2.ebuild b/gnome-extra/gnome-games/gnome-games-2.28.2.ebuild
index 3deb4013a463..58441b4fd716 100644
--- a/gnome-extra/gnome-games/gnome-games-2.28.2.ebuild
+++ b/gnome-extra/gnome-games/gnome-games-2.28.2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.28.2.ebuild,v 1.10 2011/04/25 21:17:50 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.28.2.ebuild,v 1.11 2012/01/04 23:30:09 tetromino Exp $
EAPI="3"
GCONF_DEBUG="no"
@@ -122,8 +122,7 @@ src_prepare() {
gnome2_src_prepare
# disable pyc compiling
- mv py-compile py-compile.orig
- ln -s $(type -P true) py-compile
+ echo > py-compile
# Fix implicit declaration of yylex.
epatch "${FILESDIR}/${PN}-2.26.3-implicit-declaration.patch"
diff --git a/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild b/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild
index c108468c8c26..c6102acef359 100644
--- a/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild
+++ b/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild,v 1.14 2011/04/25 21:17:50 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild,v 1.15 2012/01/04 23:30:09 tetromino Exp $
EAPI="3"
GCONF_DEBUG="no"
@@ -120,8 +120,7 @@ src_prepare() {
gnome2_src_prepare
# disable pyc compiling
- mv py-compile py-compile.orig
- ln -s $(type -P true) py-compile
+ echo > py-compile
}
src_test() {
diff --git a/gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild b/gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild
index ef879e35faa0..2d988a44758d 100644
--- a/gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild
+++ b/gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild,v 1.1 2011/11/06 05:50:58 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.30.2-r2.ebuild,v 1.2 2012/01/04 23:30:09 tetromino Exp $
EAPI="3"
GCONF_DEBUG="no"
@@ -122,8 +122,7 @@ src_prepare() {
python_convert_shebangs -r 2 gnome-sudoku/src
# disable pyc compiling
- mv py-compile py-compile.orig
- ln -s $(type -P true) py-compile
+ echo > py-compile
}
src_test() {
diff --git a/gnome-extra/gnome-games/gnome-games-3.2.1-r1.ebuild b/gnome-extra/gnome-games/gnome-games-3.2.1-r1.ebuild
new file mode 100644
index 000000000000..ed849d412d08
--- /dev/null
+++ b/gnome-extra/gnome-games/gnome-games-3.2.1-r1.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.2.1-r1.ebuild,v 1.1 2012/01/04 23:30:09 tetromino Exp $
+
+EAPI="3"
+GNOME_TARBALL_SUFFIX="xz"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+WANT_AUTOMAKE="1.11"
+PYTHON_DEPEND="2:2.4"
+PYTHON_USE_WITH="xml"
+
+# make sure games is inherited first so that the gnome2
+# functions will be called if they are not overridden
+inherit autotools games eutils gnome2 python virtualx
+
+DESCRIPTION="Collection of games for the GNOME desktop"
+HOMEPAGE="http://live.gnome.org/GnomeGames/"
+
+LICENSE="GPL-2 GPL-3 FDL-1.1"
+SLOT="0"
+# TODO: file KEYWORDREQ bug once it's determined that seed is usable
+KEYWORDS="~amd64 ~x86"
+IUSE="artworkextra +aisleriot +clutter +introspection glchess seed +sudoku test"
+
+COMMON_DEPEND="
+ >=dev-libs/dbus-glib-0.75
+ >=dev-libs/glib-2.25.7
+ >=dev-libs/libxml2-2.4.0
+ >=gnome-base/gconf-2.31.1
+ >=gnome-base/librsvg-2.32
+ >=x11-libs/cairo-1
+ >=x11-libs/gtk+-2.91.7:3[introspection?]
+
+ media-libs/libcanberra[gtk3]
+ x11-libs/libSM
+
+ artworkextra? ( >=gnome-extra/gnome-games-extra-data-3.0.0 )
+ clutter? (
+ >=dev-libs/gobject-introspection-0.6.3
+ >=x11-libs/gtk+-2.90:3[introspection]
+ >=gnome-base/gconf-2.31.1[introspection]
+ >=media-libs/clutter-gtk-0.91.6:1.0[introspection]
+ seed? ( >=dev-libs/seed-2.91.90 ) )
+ introspection? (
+ >=dev-libs/gobject-introspection-0.6.3
+ media-libs/clutter:1.0[introspection] )
+ glchess? (
+ dev-db/sqlite:3
+ >=gnome-base/librsvg-2.32
+ virtual/opengl
+ x11-libs/libX11 )"
+RDEPEND="${COMMON_DEPEND}
+ sudoku? (
+ || ( dev-python/pygobject:3 >=dev-python/pygobject-2.28.3:2[introspection] )
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ >=x11-libs/gtk+-3.0.0:3[introspection] )
+
+ !<gnome-extra/gnome-games-extra-data-3.0.0"
+DEPEND="${COMMON_DEPEND}
+ glchess? ( >=dev-lang/vala-0.13.0:0.14 )
+ >=dev-util/pkgconfig-0.15
+ >=dev-util/intltool-0.40.4
+ >=sys-devel/gettext-0.10.40
+ >=gnome-base/gnome-common-2.12.0
+ >=app-text/scrollkeeper-0.3.8
+ >=app-text/gnome-doc-utils-0.10
+ test? ( >=dev-libs/check-0.9.4 )"
+
+# For compatibility with older versions of the gnome-games package
+PDEPEND="aisleriot? ( games-board/aisleriot )"
+
+# Others are installed below; multiples in this package.
+DOCS="AUTHORS HACKING MAINTAINERS TODO"
+
+_omitgame() {
+ G2CONF="${G2CONF},${1}"
+}
+
+pkg_setup() {
+ # create the games user / group
+ games_pkg_setup
+
+ python_set_active_version 2
+ python_pkg_setup
+
+ G2CONF="${G2CONF}
+ --disable-schemas-compile
+ --disable-static
+ --enable-sound
+ $(use_enable introspection)"
+
+ # Should be after $(use_enable introspection), but before --enable-omitgames
+ use clutter && G2CONF="${G2CONF} --enable-introspection"
+
+ use glchess && G2CONF="${G2CONF} VALAC=$(type -p valac-0.14)"
+
+ # Staging games are needed for swell-foop and lightsoff
+ G2CONF="${G2CONF}
+ --enable-staging
+ --with-scores-group=${GAMES_GROUP}
+ --with-platform=gnome
+ --with-smclient
+ --with-gtk=3.0
+ --enable-omitgames=none" # This line should be last for _omitgame
+
+ # FIXME: Use REQUIRED_USE once games.eclass is ported to EAPI 4
+ if ! use clutter; then
+ ewarn "USE='-clutter' => quadrapassel, swell-foop, lightsoff, gnibbles won't be installed"
+ _omitgame quadrapassel
+ _omitgame gnibbles
+ _omitgame swell-foop
+ _omitgame lightsoff
+ use seed && ewarn "USE='seed' has no effect with USE='-clutter'"
+ elif ! use seed; then
+ ewarn "USE='-seed' => swell-foop, lightsoff won't be installed"
+ _omitgame swell-foop
+ _omitgame lightsoff
+ fi
+
+ if ! use glchess; then
+ _omitgame glchess
+ fi
+
+ if ! use sudoku; then
+ _omitgame gnome-sudoku
+ fi
+}
+
+src_prepare() {
+ use sudoku && python_convert_shebangs -r 2 gnome-sudoku/src
+
+ # TODO: File upstream bug for this
+ epatch "${FILESDIR}/${PN}-2.91.90-fix-conditional-ac-prog-cxx.patch"
+
+ # Without this, --enable-staging enables all those games unconditionally
+ epatch "${FILESDIR}/${PN}-fix-staging-games.patch"
+
+ # gnome-sudoku patch, will be in next release
+ epatch "${FILESDIR}/${P}-sudoku-borders.patch"
+
+ # patch from upstream git master fixing sudoku with pygobject-3.0.3, #397501
+ epatch "${FILESDIR}/${P}-pygobject-3.0.3.patch"
+
+ eautoreconf
+
+ # disable pyc compiling
+ echo > py-compile
+
+ gnome2_src_prepare
+}
+
+src_test() {
+ Xemake check || die "tests failed"
+}
+
+src_install() {
+ gnome2_src_install
+
+ # Documentation install for each of the games
+ for game in \
+ $(find . -maxdepth 1 -type d ! -name po ! -name libgames-support); do
+ docinto ${game}
+ for doc in AUTHORS ChangeLog NEWS README TODO; do
+ [ -s ${game}/${doc} ] && dodoc ${game}/${doc}
+ done
+ done
+}
+
+pkg_preinst() {
+ gnome2_pkg_preinst
+ # Avoid overwriting previous .scores files
+ local basefile
+ for scorefile in "${ED}"/var/lib/games/*.scores; do
+ basefile=$(basename $scorefile)
+ if [ -s "${EROOT}/var/lib/games/${basefile}" ]; then
+ cp "${EROOT}/var/lib/games/${basefile}" \
+ "${ED}/var/lib/games/${basefile}"
+ fi
+ done
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_pkg_postinst
+ python_need_rebuild
+ use sudoku && python_mod_optimize gnome_sudoku
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+ python_mod_cleanup gnome_sudoku
+}
diff --git a/gnome-extra/gnome-games/gnome-games-3.2.1.ebuild b/gnome-extra/gnome-games/gnome-games-3.2.1.ebuild
index ddc4fbfc4ad7..bc2cefaaebe6 100644
--- a/gnome-extra/gnome-games/gnome-games-3.2.1.ebuild
+++ b/gnome-extra/gnome-games/gnome-games-3.2.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.2.1.ebuild,v 1.1 2011/11/07 04:03:58 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.2.1.ebuild,v 1.2 2012/01/04 23:30:09 tetromino Exp $
EAPI="3"
GNOME_TARBALL_SUFFIX="xz"
@@ -128,8 +128,6 @@ pkg_setup() {
}
src_prepare() {
- gnome2_src_prepare
-
use sudoku && python_convert_shebangs -r 2 gnome-sudoku/src
# TODO: File upstream bug for this
@@ -141,8 +139,9 @@ src_prepare() {
eautoreconf
# disable pyc compiling
- mv py-compile py-compile.orig
- ln -s $(type -P true) py-compile
+ echo > py-compile
+
+ gnome2_src_prepare
}
src_test() {