summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Villavicencio <the_paya@gentoo.org>2008-06-08 19:25:43 +0000
committerJavier Villavicencio <the_paya@gentoo.org>2008-06-08 19:25:43 +0000
commit0fbc4c156f2a60dc0edbf39a6554cc837a669a61 (patch)
treeb44e4c3bc0f22de2b8006938b5283e47dfb32692 /dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild
parentMask py-freebsd with 7.0 patches from 6.2 profile (diff)
downloadgentoo-2-0fbc4c156f2a60dc0edbf39a6554cc837a669a61.tar.gz
gentoo-2-0fbc4c156f2a60dc0edbf39a6554cc837a669a61.tar.bz2
gentoo-2-0fbc4c156f2a60dc0edbf39a6554cc837a669a61.zip
Updated patches for py-freebsd with 7.0 support.
(Portage version: 2.1.5.4)
Diffstat (limited to 'dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild')
-rw-r--r--dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild37
1 files changed, 37 insertions, 0 deletions
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
new file mode 100644
index 000000000000..263d062473e4
--- /dev/null
+++ b/dev-python/py-freebsd/py-freebsd-0.9.3-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2008 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.1 2008/06/08 19:25:43 the_paya Exp $
+
+inherit distutils
+
+DESCRIPTION="Python interface to FreeBSD-specific system libraries"
+HOMEPAGE="http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/py-freebsd/"
+SRC_URI="mirror://freebsd/ports/local-distfiles/perky/${P}.tar.gz
+ http://people.freebsd.org/~perky/distfiles/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND="sys-freebsd/freebsd-lib
+ dev-lang/python"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ 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"
+}