blob: c529adbf456cf9e2de84c6c136b62ac186f68116 (
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
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.24.3.ebuild,v 1.1 2013/06/19 10:30:11 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy{1_9,2_0} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="http://www.logilab.org/project/logilab-astng http://pypi.python.org/pypi/logilab-astng"
SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
IUSE="test"
# Version specified in __pkginfo__.py.
RDEPEND=">=dev-python/logilab-common-0.59.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( >=dev-python/egenix-mx-base-3.0.0[$(python_gen_usedep 'python2*')] )"
S="${WORKDIR}/logilab-${P}"
# a wit; pypy reports astng modules differently, could NOT source an astng bug issue tracker
PATCHES=( "${FILESDIR}"/pypy-test.patch )
python_test() {
distutils_install_for_testing
# Make sure that the tests use correct modules.
cd "${TEST_DIR}"/lib || die
unset PYTHONPATH
if [[ "${EPYTHON}" == 'python3.3' ]]; then
einfo "python3.3 has a problem with test suite"
else
pytest || die "Tests fail with ${EPYTHON}"
fi
}
python_install() {
distutils-r1_python_install
rm "${D}$(python_get_sitedir)/logilab/__init__.py" || die
}
|