Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 515022
Collapse All | Expand All

(-)pysize-0.2-r1.ebuild (-2 / +15 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
PYTHON_COMPAT=( python{2_6,2_7} )
7
PYTHON_COMPAT=( python2_7 pypy )
8
8
9
inherit distutils-r1
9
inherit distutils-r1
10
10
Lines 19-25 Link Here
19
19
20
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21
21
22
DEPEND="
22
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
23
	gtk? ( dev-python/pygtk:2 )
23
	gtk? ( dev-python/pygtk:2 )
24
	ncurses? ( sys-libs/ncurses )"
24
	ncurses? ( sys-libs/ncurses )"
25
RDEPEND="${DEPEND}"
25
RDEPEND="${DEPEND}"
Lines 28-33 Link Here
28
	"${FILESDIR}"/psyco-${PV}-automagic.patch
28
	"${FILESDIR}"/psyco-${PV}-automagic.patch
29
	"${FILESDIR}"/${PV}-setuptools-automagic.patch
29
	"${FILESDIR}"/${PV}-setuptools-automagic.patch
30
	)
30
	)
31
DISTUTILS_NO_PARALLEL_BUILD=1
31
32
32
python_prepare_all() {
33
python_prepare_all() {
33
	if ! use gtk; then
34
	if ! use gtk; then
Lines 54-56 Link Here
54
55
55
	distutils-r1_python_prepare_all
56
	distutils-r1_python_prepare_all
56
}
57
}
58
59
src_test() {
60
	# Tests shatter otherwise
61
	local DISTUTILS_NO_PARALLEL_BUILD=1
62
	distutils-r1_src_test
63
}
64
65
python_test() {
66
	pushd tests > /dev/null
67
	PYTHONPATH=.:../ "${PYTHON}" pysize_tests.py || die "tests failed under ${EPYTHON}"
68
	popd  > /dev/null
69
}

Return to bug 515022