summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-17 10:54:35 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-17 10:54:35 +0000
commita7ca196da6e0d5811de72236041e031f67389435 (patch)
tree41830d2eaefa82b14d66dc60b9883814ea433cbf /dev-python
parentcleanup (diff)
downloadgentoo-2-a7ca196da6e0d5811de72236041e031f67389435.tar.gz
gentoo-2-a7ca196da6e0d5811de72236041e031f67389435.tar.bz2
gentoo-2-a7ca196da6e0d5811de72236041e031f67389435.zip
Update dependency on dev-python/sphinx. Fix tests.
(Portage version: 14278-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pycairo/ChangeLog6
-rw-r--r--dev-python/pycairo/pycairo-1.8.8.ebuild9
2 files changed, 11 insertions, 4 deletions
diff --git a/dev-python/pycairo/ChangeLog b/dev-python/pycairo/ChangeLog
index d47cc6a400ab..ad3b4cfd5f57 100644
--- a/dev-python/pycairo/ChangeLog
+++ b/dev-python/pycairo/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pycairo
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.74 2009/09/16 05:09:23 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.75 2009/09/17 10:54:35 arfrever Exp $
+
+ 17 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pycairo-1.8.8.ebuild:
+ Update dependency on dev-python/sphinx. Fix tests.
16 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
pycairo-1.8.8.ebuild, +files/pycairo-1.8.8-pkgconfig_dir.patch:
diff --git a/dev-python/pycairo/pycairo-1.8.8.ebuild b/dev-python/pycairo/pycairo-1.8.8.ebuild
index 0d0d3f46ea11..c7516bc46f88 100644
--- a/dev-python/pycairo/pycairo-1.8.8.ebuild
+++ b/dev-python/pycairo/pycairo-1.8.8.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/pycairo/pycairo-1.8.8.ebuild,v 1.4 2009/09/16 05:09:23 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/pycairo-1.8.8.ebuild,v 1.5 2009/09/17 10:54:35 arfrever Exp $
EAPI="2"
@@ -21,7 +21,7 @@ IUSE="doc examples svg"
RDEPEND=">=x11-libs/cairo-1.8.8[svg=]"
DEPEND="${RDEPEND}
dev-util/pkgconfig
- doc? ( dev-python/sphinx )"
+ doc? ( >=dev-python/sphinx-0.6 )"
RESTRICT_PYTHON_ABIS="2.4 2.5 3*"
@@ -54,7 +54,7 @@ src_compile() {
src_test() {
testing() {
pushd test > /dev/null
- PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test.py || return 1
+ PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" -c "import examples_test; examples_test.test_examples(); examples_test.test_snippets_png()" || return 1
popd > /dev/null
}
python_execute_function testing
@@ -68,6 +68,9 @@ src_install() {
fi
if use examples; then
+ # Delete files created by tests.
+ find examples{,/cairo_snippets/snippets} -maxdepth 1 -name "*.png" | xargs rm -f
+
insinto /usr/share/doc/${PF}/examples
doins -r examples/*
rm "${D}"/usr/share/doc/${PF}/examples/Makefile*