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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 17 22:52:27 2011 UTC (9 years, 8 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Delete older ebuilds.

1 # Copyright 1999-2010 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.20.2.ebuild,v 1.1 2010/09/18 23:16:53 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
9
10 inherit distutils
11
12 DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages"
13 HOMEPAGE="http://www.logilab.org/projects/astng/ http://pypi.python.org/pypi/logilab-astng"
14 SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
19 IUSE="test"
20
21 # Version specified in __pkginfo__.py.
22 RDEPEND=">=dev-python/logilab-common-0.49.0"
23 DEPEND="${RDEPEND}
24 dev-python/setuptools
25 test? ( >=dev-python/egenix-mx-base-3.0.0 )"
26
27 S="${WORKDIR}/logilab-${P}"
28
29 PYTHON_MODNAME="logilab/astng"
30
31 src_test() {
32 testing() {
33 local tpath="${T}/test-${PYTHON_ABI}"
34 local spath="${tpath}$(python_get_sitedir)"
35
36 mkdir -p "${spath}/logilab" || return 1
37 cp -r "$(python_get_sitedir)/logilab/common" "${spath}/logilab" || return 1
38
39 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_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 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