summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-30 13:32:04 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-30 13:32:04 +0000
commit6735eae8cac462d5120a52ccd0c54a088406ed88 (patch)
treeec6a2a0bce46d04d9892082c3a97d207ac8f6e02 /dev-python/pyzor
parentVersion bump. Remove intermediate version. (diff)
downloadgentoo-2-6735eae8cac462d5120a52ccd0c54a088406ed88.tar.gz
gentoo-2-6735eae8cac462d5120a52ccd0c54a088406ed88.tar.bz2
gentoo-2-6735eae8cac462d5120a52ccd0c54a088406ed88.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14746-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyzor')
-rw-r--r--dev-python/pyzor/ChangeLog6
-rw-r--r--dev-python/pyzor/pyzor-0.5.0-r1.ebuild27
2 files changed, 23 insertions, 10 deletions
diff --git a/dev-python/pyzor/ChangeLog b/dev-python/pyzor/ChangeLog
index 010e6dcd7135..b3ed641a1919 100644
--- a/dev-python/pyzor/ChangeLog
+++ b/dev-python/pyzor/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pyzor
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.52 2009/10/17 09:46:59 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.53 2009/10/30 13:32:04 arfrever Exp $
+
+ 30 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pyzor-0.5.0-r1.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
*pyzor-0.5.0-r1 (17 Oct 2009)
diff --git a/dev-python/pyzor/pyzor-0.5.0-r1.ebuild b/dev-python/pyzor/pyzor-0.5.0-r1.ebuild
index 0bdecdf37afe..12769192a677 100644
--- a/dev-python/pyzor/pyzor-0.5.0-r1.ebuild
+++ b/dev-python/pyzor/pyzor-0.5.0-r1.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/pyzor/pyzor-0.5.0-r1.ebuild,v 1.1 2009/10/17 09:46:59 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild,v 1.2 2009/10/30 13:32:04 arfrever Exp $
EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils
@@ -17,6 +18,9 @@ IUSE="pyzord"
DEPEND="pyzord? ( dev-lang/python[gdbm] )"
RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
+DOCS="THANKS UPGRADING"
src_prepare() {
epatch "${FILESDIR}/pyzord_getopt.patch"
@@ -28,26 +32,31 @@ src_prepare() {
unittests.py || die "sed in unittest.py failed"
}
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" unittests.py
+ }
+ python_execute_function testing
+}
+
src_install () {
- DOCS="INSTALL THANKS UPGRADING"
distutils_src_install
+
dohtml docs/usage.html
- rm -rf "${D}/usr/share/doc/pyzor"
+ rm -rf "${D}usr/share/doc/pyzor"
if use pyzord; then
dodir /usr/sbin
- mv "${D}/usr/bin/pyzord" "${D}/usr/sbin/"
+ mv "${D}usr/bin/pyzord" "${D}usr/sbin/"
else
- rm "${D}/usr/bin/pyzord"
+ rm "${D}usr/bin/pyzord"
fi
}
pkg_postinst() {
+ distutils_pkg_postinst
+
if use pyzord; then
ewarn "/usr/bin/pyzord has been moved to /usr/sbin"
fi
}
-
-src_test() {
- PYTHONPATH=build/lib/ "${python}" unittests.py || die "tests failed"
-}