summaryrefslogtreecommitdiff
blob: 9b7566b9326dbe5586daadf60320e6a9551eb94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2006 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.ebuild,v 1.2 2006/10/28 12:22:11 uberlord 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_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"
}