summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-07-27 20:41:43 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-07-27 20:41:43 +0000
commit1c1f2f457f16547046b580018837304b609698dc (patch)
tree9909670f4f0c4a8b24dfea494e4ad3e73bf1a93a /dev-python/pygobject
parentVersion bump (diff)
downloadgentoo-2-1c1f2f457f16547046b580018837304b609698dc.tar.gz
gentoo-2-1c1f2f457f16547046b580018837304b609698dc.tar.bz2
gentoo-2-1c1f2f457f16547046b580018837304b609698dc.zip
Fix tests.
(Portage version: 13851-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pygobject')
-rw-r--r--dev-python/pygobject/ChangeLog6
-rw-r--r--dev-python/pygobject/files/pygobject-2.18.0-make_check.patch33
-rw-r--r--dev-python/pygobject/pygobject-2.18.0.ebuild5
3 files changed, 38 insertions, 6 deletions
diff --git a/dev-python/pygobject/ChangeLog b/dev-python/pygobject/ChangeLog
index c33263220ca5..508207ce1745 100644
--- a/dev-python/pygobject/ChangeLog
+++ b/dev-python/pygobject/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pygobject
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.68 2009/07/24 14:41:47 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.69 2009/07/27 20:41:43 arfrever Exp $
+
+ 27 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pygobject-2.18.0.ebuild, files/pygobject-2.18.0-make_check.patch:
+ Fix tests.
24 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
pygobject-2.18.0.ebuild, +files/pygobject-2.18.0-make_check.patch:
diff --git a/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch b/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch
index 14ef14b05483..f351092b2f80 100644
--- a/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch
+++ b/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch
@@ -1,6 +1,5 @@
-diff -ur pygobject-2.18.0.orig/tests/Makefile.am pygobject-2.18.0/tests/Makefile.am
---- pygobject-2.18.0.orig/tests/Makefile.am 2009-05-14 00:56:45.000000000 +0300
-+++ pygobject-2.18.0/tests/Makefile.am 2009-07-24 18:35:13.000000000 +0300
+--- tests/Makefile.am
++++ tests/Makefile.am
@@ -11,7 +11,7 @@
test-thread.h \
test-unknown.h
@@ -28,3 +27,31 @@ diff -ur pygobject-2.18.0.orig/tests/Makefile.am pygobject-2.18.0/tests/Makefile
-.la.so:
- $(LN_S) .libs/$@ $@ || true
+ rm -f .libs/testhelper.so
+--- tests/runtests.py
++++ tests/runtests.py
+@@ -6,6 +6,9 @@
+
+ import common
+
++# Some tests fail with translated messages.
++os.environ["LC_ALL"] = "C"
++
+ program = None
+ if len(sys.argv) == 3:
+ buildDir = sys.argv[1]
+--- tests/test_gio.py
++++ tests/test_gio.py
+@@ -386,9 +386,10 @@
+
+ def testQueryWritableNamespaces(self):
+ infolist = self.file.query_writable_namespaces()
+- for info in infolist:
+- if info.name == "xattr":
+- self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING)
++ if infolist:
++ for info in infolist:
++ if info.name == "xattr":
++ self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING)
+
+ def testSetAttribute(self):
+ self._f.write("testing attributes")
diff --git a/dev-python/pygobject/pygobject-2.18.0.ebuild b/dev-python/pygobject/pygobject-2.18.0.ebuild
index 9609946604eb..cc5a6475fe6b 100644
--- a/dev-python/pygobject/pygobject-2.18.0.ebuild
+++ b/dev-python/pygobject/pygobject-2.18.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-2.18.0.ebuild,v 1.4 2009/07/24 14:41:47 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-2.18.0.ebuild,v 1.5 2009/07/27 20:41:43 arfrever Exp $
inherit autotools gnome2 python virtualx
@@ -10,7 +10,7 @@ HOMEPAGE="http://www.pygtk.org/"
LICENSE="LGPL-2.1"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="doc examples libffi"
+IUSE="doc examples libffi test"
RDEPEND=">=dev-lang/python-2.4.4-r5
>=dev-libs/glib-2.16
@@ -18,6 +18,7 @@ RDEPEND=">=dev-lang/python-2.4.4-r5
libffi? ( virtual/libffi )"
DEPEND="${RDEPEND}
doc? ( dev-libs/libxslt >=app-text/docbook-xsl-stylesheets-1.70.1 )
+ test? ( media-fonts/font-cursor-misc media-fonts/font-misc-misc )
>=dev-util/pkgconfig-0.12.0"
DOCS="AUTHORS ChangeLog* NEWS README"