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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Aug 26 11:36:28 2013 UTC (7 years ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old versions.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)

1 # Copyright 1999-2012 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.22.0.ebuild,v 1.3 2012/08/27 15:20:01 floppym Exp $
4
5 EAPI="3"
6 SUPPORT_PYTHON_ABIS="1"
7 PYTHON_TESTS_FAILURES_TOLERANT_ABIS="3.* *-jython"
8
9 inherit distutils
10
11 DESCRIPTION="Abstract Syntax Tree New Generation 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="~amd64 ~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.53.0"
22 DEPEND="${RDEPEND}
23 dev-python/setuptools
24 test? ( >=dev-python/egenix-mx-base-3.0.0 )"
25
26 S="${WORKDIR}/logilab-${P}"
27
28 PYTHON_MODNAME="logilab/astng"
29
30 src_test() {
31 testing() {
32 local tpath="${T}/test-${PYTHON_ABI}"
33 local spath="${tpath}$(python_get_sitedir)"
34
35 mkdir -p "${spath}/logilab" || return 1
36 cp -r "$(python_get_sitedir)/logilab/common" "${spath}/logilab" || return 1
37
38 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation_and_version)"
39
40 # pytest uses tests placed relatively to the current directory.
41 pushd "${spath}/logilab/astng" > /dev/null || return 1
42 PYTHONPATH="${spath}" pytest -v || return 1
43 popd > /dev/null || return 1
44 }
45 python_execute_function testing
46 }
47
48 src_install() {
49 distutils_src_install
50
51 deletion_of_unneeded_files() {
52 # Avoid collision with dev-python/logilab-common.
53 rm -f "${ED}$(python_get_sitedir)/logilab/__init__.py" || return 1
54
55 # Don't install tests.
56 rm -fr "${ED}$(python_get_sitedir)/logilab/astng/test" || return 1
57 }
58 python_execute_function -q deletion_of_unneeded_files
59 }

  ViewVC Help
Powered by ViewVC 1.1.20