blob: 6bca06f504680ead15a9af60d3901c4f0ee526ed (
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
35
36
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.21.0.ebuild,v 1.2 2007/07/11 06:19:47 mr_bones_ Exp $
inherit distutils
DESCRIPTION="Several modules providing low level functionality shared among some python projects developed by logilab."
HOMEPAGE="http://www.logilab.org/projects/common/"
SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="test"
DEPEND="|| ( >=dev-python/optik-1.4 >=dev-lang/python-2.3 )
test? ( dev-python/egenix-mx-base )"
PYTHON_MODNAME="logilab"
src_test() {
# The tests will not work properly from the source dir, so do a
# temporary install:
local spath="test/lib/python"
"${python}" setup.py install --home="${T}/test" || die "test copy failed"
# dir needs to be this or the tests fail
cd "${T}/${spath}/logilab/common/test"
# These tests will fail:
rm unittest_db.py
has userpriv ${FEATURES} || rm unittest_fileutils.py
PYTHONPATH="${T}/${spath}" "${python}" runtests.py || die "tests failed"
cd "${S}"
rm -rf "${T}/test"
}
|