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

(-)pytest.orig/pytest-2.2.4.ebuild (-3 / +9 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/pytest-2.2.3.ebuild,v 1.2 2012/05/12 20:13:22 aballier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/pytest-2.2.3.ebuild,v 1.2 2012/05/12 20:13:22 aballier Exp $
4
4
5
EAPI="3"
5
EAPI="4"
6
SUPPORT_PYTHON_ABIS="1"
6
SUPPORT_PYTHON_ABIS="1"
7
7
8
inherit distutils
8
inherit distutils
Lines 14-25 Link Here
14
LICENSE="MIT"
14
LICENSE="MIT"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos"
16
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos"
17
IUSE=""
17
IUSE="doc"
18
18
19
RDEPEND=">=dev-python/py-1.4.7"
19
RDEPEND=">=dev-python/py-1.4.7"
20
DEPEND="${RDEPEND}
20
DEPEND="${RDEPEND}
21
	app-arch/unzip
21
	app-arch/unzip
22
	dev-python/setuptools"
22
	dev-python/setuptools
23
	doc? ( dev-python/sphinx )"
23
24
24
DOCS="CHANGELOG README.txt"
25
DOCS="CHANGELOG README.txt"
25
PYTHON_MODNAME="pytest.py _pytest"
26
PYTHON_MODNAME="pytest.py _pytest"
Lines 31-36 Link Here
31
	sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
32
	sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
32
}
33
}
33
34
35
src_compile() {
36
	use doc && emake -C doc html
37
}
38
34
src_test() {
39
src_test() {
35
	testing() {
40
	testing() {
36
		PYTHONPATH="${S}/build-${PYTHON_ABI}/lib" "$(PYTHON)" "build-${PYTHON_ABI}/lib/pytest.py"
41
		PYTHONPATH="${S}/build-${PYTHON_ABI}/lib" "$(PYTHON)" "build-${PYTHON_ABI}/lib/pytest.py"
Lines 44-47 Link Here
44
49
45
	# Bug 380275: Test suite pre-compiles modules
50
	# Bug 380275: Test suite pre-compiles modules
46
	python_clean_installation_image -q
51
	python_clean_installation_image -q
52
	use doc && dohtml -r doc/_build/html/
47
}
53
}

Return to bug 422523