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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 24 20:35:14 2007 UTC (13 years, 2 months ago) by dev-zero
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fixed $ROOT abuse (bug #167271), cleanup, dropped old versions
(Portage version: 2.1.3_rc5)

1 # Copyright 1999-2006 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.16.0.ebuild,v 1.2 2006/08/02 03:26:24 tgall Exp $
4
5 inherit distutils eutils
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 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
14 LICENSE="GPL-2"
15 DEPEND=">=dev-lang/python-2.1
16 >=dev-python/logilab-common-0.13-r1"
17
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22 # 0.16.0 introduces a (most likely intentionally) failing test, revert it
23 # to the (passing) 0.15.0 version.
24 epatch "${FILESDIR}/${P}-revert-test.patch"
25 }
26
27 src_install() {
28 distutils_src_install
29 python_version
30 # we need to remove this file because it collides with the one
31 # from logilab-common (which we depend on).
32 rm "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/logilab/__init__.py"
33 }
34
35 src_test() {
36 # The tests will not work properly from the source dir, so do a
37 # temporary install.
38
39 python_version
40 local spath="usr/$(get_libdir)/python${PYVER}/site-packages/"
41 # This is a hack to make tests work without installing to the live
42 # filesystem. We copy part of the logilab site-packages to a temporary
43 # dir, install there, and run from there.
44 mkdir -p "${T}/test/${spath}/logilab"
45 cp -r "${ROOT}${spath}/logilab/common" "${T}/test/${spath}/logilab" \
46 || die "copying logilab-common failed!"
47
48 "${python}" setup.py install --root="${T}/test" || die "test copy failed"
49 # dir needs to be this or the tests fail
50 cd "${T}/test/${spath}/logilab/astng/test"
51 PYTHONPATH="${T}/test/${spath}" "${python}" runtests.py \
52 || die "tests failed"
53 cd "${S}"
54 rm -rf "${T}/test"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20