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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Aug 26 11:36:28 2013 UTC (6 years, 11 months ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.24.0.ebuild,v 1.2 2012/08/27 15:20:01 floppym Exp $
4
5 EAPI="4"
6 SUPPORT_PYTHON_ABIS="1"
7 PYTHON_TESTS_RESTRICTED_ABIS="3.* *-jython *-pypy-*"
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 PYTHON_MODNAME="logilab/astng"
28 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
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 install --root="${tpath}" ||
39 die "Installation for tests failed with $(python_get_implementation_and_version)"
40
41 # pytest uses tests placed relatively to the current directory.
42 pushd "${spath}/logilab/astng" > /dev/null || return 1
43 PYTHONPATH="${spath}" pytest -v || return 1
44 popd > /dev/null || return 1
45 }
46 python_execute_function -s testing
47 }
48
49 src_install() {
50 distutils_src_install
51
52 deletion_of_unneeded_files() {
53 # Avoid collision with dev-python/logilab-common.
54 rm -f "${ED}$(python_get_sitedir)/logilab/__init__.py" || return 1
55
56 # Don't install tests.
57 rm -fr "${ED}$(python_get_sitedir)/logilab/astng/test" || return 1
58 }
59 python_execute_function -q deletion_of_unneeded_files
60 }

  ViewVC Help
Powered by ViewVC 1.1.20