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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Wed Nov 29 23:58:28 2006 UTC (13 years, 10 months ago) by marienz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, remove old versions.
(Portage version: 2.1.2_rc2-r2)
 (Signed Manifest commit)

1 marienz 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 marienz 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.15.1.ebuild,v 1.2 2006/04/01 14:42:16 agriffis Exp $
4 marienz 1.1
5     inherit distutils
6    
7     DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages"
8     SRC_URI="ftp://ftp.logilab.org/pub/astng/${P}.tar.gz"
9     HOMEPAGE="http://www.logilab.org/projects/astng/"
10    
11     IUSE=""
12     SLOT="0"
13 agriffis 1.2 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
14 marienz 1.1 LICENSE="GPL-2"
15     DEPEND=">=dev-lang/python-2.1
16     >=dev-python/logilab-common-0.13-r1"
17    
18    
19     src_install() {
20     distutils_src_install
21     python_version
22     # we need to remove this file because it collides with the one
23     # from logilab-common (which we depend on).
24     rm "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/logilab/__init__.py"
25     }
26    
27     src_test() {
28     # The tests will not work properly from the source dir, so do a
29     # temporary install.
30    
31     python_version
32     local spath="usr/$(get_libdir)/python${PYVER}/site-packages/"
33     # 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 "${T}/test/${spath}/logilab"
37     cp -r "${ROOT}${spath}/logilab/common" "${T}/test/${spath}/logilab" \
38     || die "copying logilab-common failed!"
39    
40     "${python}" setup.py install --root="${T}/test" || die "test copy failed"
41     # dir needs to be this or the tests fail
42     cd "${T}/test/${spath}/logilab/astng/test"
43     PYTHONPATH="${T}/test/${spath}" "${python}" runtests.py \
44     || die "tests failed"
45     cd "${S}"
46     rm -rf "${T}/test"
47     }

  ViewVC Help
Powered by ViewVC 1.1.20