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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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.3.ebuild,v 1.1 2006/11/29 23:58:18 marienz 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/logilab-${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 S="${WORKDIR}/logilab-${P}"
19
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24
25 # Skip a failing test.
26 epatch "${FILESDIR}/${PN}-0.16.1-skip-gobject-test.patch"
27 }
28
29 src_install() {
30 distutils_src_install
31 python_version
32 # we need to remove this file because it collides with the one
33 # from logilab-common (which we depend on).
34 rm "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/logilab/__init__.py"
35 }
36
37 src_test() {
38 # The tests will not work properly from the source dir, so do a
39 # temporary install.
40
41 python_version
42 local spath="usr/$(get_libdir)/python${PYVER}/site-packages/"
43 # This is a hack to make tests work without installing to the live
44 # filesystem. We copy part of the logilab site-packages to a temporary
45 # dir, install there, and run from there.
46 mkdir -p "${T}/test/${spath}/logilab"
47 cp -r "${ROOT}${spath}/logilab/common" "${T}/test/${spath}/logilab" \
48 || die "copying logilab-common failed!"
49
50 "${python}" setup.py install --root="${T}/test" || die "test copy failed"
51 # dir needs to be this or the tests fail
52 cd "${T}/test/${spath}/logilab/astng/test"
53 PYTHONPATH="${T}/test/${spath}" "${python}" runtests.py \
54 || die "tests failed"
55 cd "${S}"
56 rm -rf "${T}/test"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20