/[gentoo-x86]/dev-python/astng/astng-0.24.3.ebuild
Gentoo

Contents of /dev-python/astng/astng-0.24.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue Jul 28 08:13:01 2015 UTC (5 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +2 -2 lines
Mark ia64/sparc stable #532490.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.24.3.ebuild,v 1.14 2015/05/17 20:03:20 pacho Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
8
9 inherit distutils-r1
10
11 DESCRIPTION="Abstract Syntax Tree for logilab packages"
12 HOMEPAGE="http://www.logilab.org/project/logilab-astng http://pypi.python.org/pypi/logilab-astng"
13 SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos"
18 IUSE="test"
19
20 # Version specified in __pkginfo__.py.
21 RDEPEND=">=dev-python/logilab-common-0.59.0[${PYTHON_USEDEP}]"
22 DEPEND="${RDEPEND}
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 test? ( >=dev-python/egenix-mx-base-3.0.0[$(python_gen_usedep 'python2*')] )"
25
26 S="${WORKDIR}/logilab-${P}"
27 RESTRICT="test" # erroneous failures
28
29 # a wit; pypy reports astng modules differently
30 PATCHES=( "${FILESDIR}"/pypy-test.patch )
31
32 python_test() {
33 distutils_install_for_testing
34 # test target needs unpacked test directories, doesn't like binary egg
35 esetup.py install_lib --install-dir="${TEST_DIR}"/lib
36 #https://bitbucket.org/logilab/astroid/issue/1/test-suite-fails-in-0243-under-py32-pypy
37 # Make sure that the tests use correct modules.
38 cd "${TEST_DIR}"/lib || die
39 pytest -v || die "Tests fail with ${EPYTHON}"
40 }
41
42 python_install() {
43 distutils-r1_python_install
44
45 rm "${D}$(python_get_sitedir)/logilab/__init__.py" || die
46 }

  ViewVC Help
Powered by ViewVC 1.1.20