summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-08 20:45:10 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-08 20:45:10 +0000
commit629b1b3ffea92d44983968a9867d0a989341d308 (patch)
tree3ea771571f110ef5cd30a9d6a1b989db80ddfe58 /dev-python/guppy
parentSet SUPPORT_PYTHON_ABIS. (diff)
downloadgentoo-2-629b1b3ffea92d44983968a9867d0a989341d308.tar.gz
gentoo-2-629b1b3ffea92d44983968a9867d0a989341d308.tar.bz2
gentoo-2-629b1b3ffea92d44983968a9867d0a989341d308.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14218-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/guppy')
-rw-r--r--dev-python/guppy/ChangeLog6
-rw-r--r--dev-python/guppy/guppy-0.1.9.ebuild29
2 files changed, 26 insertions, 9 deletions
diff --git a/dev-python/guppy/ChangeLog b/dev-python/guppy/ChangeLog
index 3372ae71bf20..1920c675451a 100644
--- a/dev-python/guppy/ChangeLog
+++ b/dev-python/guppy/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/guppy
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/guppy/ChangeLog,v 1.10 2009/09/07 19:45:37 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/guppy/ChangeLog,v 1.11 2009/09/08 20:45:10 arfrever Exp $
+
+ 08 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ guppy-0.1.9.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
*guppy-0.1.9 (07 Sep 2009)
diff --git a/dev-python/guppy/guppy-0.1.9.ebuild b/dev-python/guppy/guppy-0.1.9.ebuild
index 6b35a439726f..f9746a8abbdc 100644
--- a/dev-python/guppy/guppy-0.1.9.ebuild
+++ b/dev-python/guppy/guppy-0.1.9.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/guppy/guppy-0.1.9.ebuild,v 1.1 2009/09/07 19:45:37 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/guppy/guppy-0.1.9.ebuild,v 1.2 2009/09/08 20:45:10 arfrever Exp $
-NEED_PYTHON=2.3
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
inherit distutils
@@ -15,16 +16,28 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-DOCS="ANNOUNCE changelog"
+DEPEND=""
+RDEPEND=""
+RESTRICT_PYTHON_ABIS="3.*"
+
+DOCS="ANNOUNCE ChangeLog"
src_test() {
- "${python}" setup.py install --home="${T}/test" || die "test install failed"
- cd "${T}/test/lib/python"
- PYTHONPATH=. "${python}" guppy/heapy/test/test_all.py || die "test failed"
- rm -rf "${T}/test"
+ testing() {
+ cd "${S}"
+ "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --home="${T}/test-${PYTHON_ABI}" || die "Installation of tests failed with Python ${PYTHON_ABI}"
+ cd "${T}/test-${PYTHON_ABI}/lib/python"
+ PYTHONPATH="$(ls -d "${S}/build-${PYTHON_ABI}/"lib*):." "$(PYTHON)" guppy/heapy/test/test_all.py || return 1
+ }
+ python_execute_function testing
}
src_install() {
distutils_src_install
- dohtml doc/*
+ dohtml guppy/doc/*
+
+ delete_duplicated_documentation() {
+ find "${D}$(python_get_sitedir)" -name '*.html' -o -name '*.jpg' | xargs rm -f
+ }
+ python_execute_function -q delete_duplicated_documentation
}