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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Sep 5 13:02:03 2009 UTC (11 years ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 idl0r 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 patrick 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.19.0.ebuild,v 1.2 2009/08/25 14:51:27 arfrever Exp $
4 idl0r 1.1
5 arfrever 1.2 EAPI="2"
6     SUPPORT_PYTHON_ABIS="1"
7    
8     inherit distutils
9 idl0r 1.1
10     DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages"
11     HOMEPAGE="http://www.logilab.org/projects/astng/"
12     SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16     KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
17     IUSE="test"
18    
19     RDEPEND=">=dev-python/logilab-common-0.39.0"
20     DEPEND="${RDEPEND}
21     test? ( >=dev-python/egenix-mx-base-3.0.0 )"
22    
23 arfrever 1.2 RESTRICT_PYTHON_ABIS="3*"
24    
25 idl0r 1.1 PYTHON_MODNAME="logilab"
26    
27     S="${WORKDIR}/logilab-${P}"
28    
29     src_test() {
30 arfrever 1.2 testing() {
31     local sdir="${T}/test/$(python_get_sitedir)"
32 idl0r 1.1
33 arfrever 1.2 # This is a hack to make tests work without installing to the live
34     # filesystem. We copy part of the logilab site-packages to a temporary
35     # dir, install there, and run from there.
36     mkdir -p "${sdir}/logilab" || die
37     cp -r "$(python_get_sitedir)/logilab/common" "${sdir}/logilab" || die "copying logilab-common failed!"
38    
39     "$(PYTHON)" setup.py install --root="${T}/test" || die "test copy failed"
40    
41     # Pytest picks up tests relative to the current dir, so cd in.
42     pushd "${sdir}/logilab/astng" > /dev/null || die
43     PYTHONPATH="${sdir}" pytest -v || die "tests failed"
44     popd > /dev/null
45     }
46     python_execute_function testing
47 idl0r 1.1 }
48    
49     src_install() {
50     distutils_src_install
51    
52 arfrever 1.2 deletion_of_unneeded_files() {
53     local sdir="${D}/$(python_get_sitedir)/logilab"
54 idl0r 1.1
55 arfrever 1.2 # we need to remove this file because it collides with the one
56     # from logilab-common (which we depend on).
57     # Bug 111970 and bug 223025
58     rm "${sdir}/__init__.py" || die
59    
60     # Remove unittests since they're just needed during build-time
61     rm -rf "${sdir}/astng/test" || die
62     }
63     python_execute_function --action-message 'Deletion of unneeded files with Python ${PYTHON_ABI}' deletion_of_unneeded_files
64 idl0r 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20