summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-30 21:27:48 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-30 21:27:48 +0000
commite9a1cbb8f5616b8b5d1e0cdca061d43f835d9efa (patch)
treec9eb33112721be6f752823e48fc4f6b2bce7e3b4 /dev-python/py-freebsd
parentDelete older ebuild. (diff)
downloadgentoo-2-e9a1cbb8f5616b8b5d1e0cdca061d43f835d9efa.tar.gz
gentoo-2-e9a1cbb8f5616b8b5d1e0cdca061d43f835d9efa.tar.bz2
gentoo-2-e9a1cbb8f5616b8b5d1e0cdca061d43f835d9efa.zip
Fix dependencies. Set SUPPORT_PYTHON_ABIS.
(Portage version: 2.2.0_alpha10_p22/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/py-freebsd')
-rw-r--r--dev-python/py-freebsd/ChangeLog6
-rw-r--r--dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild41
2 files changed, 30 insertions, 17 deletions
diff --git a/dev-python/py-freebsd/ChangeLog b/dev-python/py-freebsd/ChangeLog
index 52eea8bc5437..4dd240aab358 100644
--- a/dev-python/py-freebsd/ChangeLog
+++ b/dev-python/py-freebsd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/py-freebsd
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/py-freebsd/ChangeLog,v 1.5 2010/12/30 21:11:02 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/py-freebsd/ChangeLog,v 1.6 2010/12/30 21:27:48 arfrever Exp $
+
+ 30 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ py-freebsd-0.9.3-r1.ebuild:
+ Fix dependencies. Set SUPPORT_PYTHON_ABIS.
30 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-py-freebsd-0.9.3.ebuild:
diff --git a/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild b/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild
index 7c5856798f93..f3b7edb44f0f 100644
--- a/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild
+++ b/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild
@@ -1,8 +1,13 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild,v 1.2 2010/02/08 08:44:13 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild,v 1.3 2010/12/30 21:27:48 arfrever Exp $
-inherit eutils distutils
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit distutils eutils
DESCRIPTION="Python interface to FreeBSD-specific system libraries"
HOMEPAGE="http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/py-freebsd/"
@@ -14,24 +19,28 @@ SLOT="0"
KEYWORDS="~sparc-fbsd ~x86-fbsd"
IUSE=""
-RDEPEND="sys-freebsd/freebsd-lib
- dev-lang/python"
-DEPEND="${RDEPEND}"
+DEPEND="sys-freebsd/freebsd-lib"
+RDEPEND="${DEPEND}"
+
+PYTHON_MODNAME="freebsd_compat02.py"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
+ distutils_src_prepare
epatch "${FILESDIR}/fbsd7-netstat.patch"
epatch "${FILESDIR}/process-fix.patch"
}
src_test() {
- mkdir "${T}/tests"
- "${python}" setup.py install --home="${T}/tests"
-
- export PYTHONPATH="${T}/tests/$(get_libdir)/python"
- "${python}" "${S}/tests/test_kqueue.py" || die "test_kqueue failed"
- "${python}" "${S}/tests/test_sysctl.py" || die "test_sysctl failed"
-
- rm -rf "${T}/tests"
+ testing() {
+ local exit_status="0" test
+ for test in test_kqueue.py test_sysctl.py; do
+ if ! PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tests/${test}; then
+ eerror "${test} failed with $(python_get_implementation) $(python_get_version)"
+ exit_status="1"
+ fi
+ done
+
+ return "${exit_status}"
+ }
+ python_execute_function testing
}