blob: 582af256777ba17da548a9f5e3c1dcfb6e95d730 (
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
31
32
33
34
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/testoob/testoob-1.12.ebuild,v 1.1 2006/09/12 09:04:20 lucass Exp $
inherit distutils eutils
DESCRIPTION="Advanced Python testing framework"
HOMEPAGE="http://testoob.sourceforge.net/"
SRC_URI="mirror://sourceforge/testoob/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~sparc x86"
IUSE="pdf threads"
DEPEND="virtual/python"
RDEPEND="${DEPEND}
dev-python/4suite
pdf? ( dev-python/reportlab )
threads? ( dev-python/twisted )"
DOCS="docs/*"
src_unpack() {
unpack ${A}
cd "${S}"
sed -e '1iimport warnings' -i tests/helpers.py
}
src_test() {
distutils_python_version
PATH="src/testoob:${PATH}" PYTHONPATH="src" \
"${python}" tests/alltests.py || die "alltests.py failed"
}
|