Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/astng: ChangeLog astng-0.19.0.ebuild
Date: Fri, 19 Jun 2009 13:08:20
Message-Id: E1MHdpJ-0006GO-8e@stork.gentoo.org
1 idl0r 09/06/19 13:08:17
2
3 Modified: ChangeLog
4 Added: astng-0.19.0.ebuild
5 Log:
6 Version bump to 0.19.0. Fix src_test. Cleanup.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.22 dev-python/astng/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/astng/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/astng/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/astng/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 28 Feb 2008 20:37:47 -0000 1.21
23 +++ ChangeLog 19 Jun 2009 13:08:17 -0000 1.22
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-python/astng
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.21 2008/02/28 20:37:47 dev-zero Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.22 2009/06/19 13:08:17 idl0r Exp $
30 +
31 +*astng-0.19.0 (19 Jun 2009)
32 +
33 + 19 Jun 2009; Christian Ruppert <idl0r@g.o> +astng-0.19.0.ebuild:
34 + Version bump to 0.19.0. Fix src_test. Cleanup.
35
36 *astng-0.17.2 (28 Feb 2008)
37
38
39
40
41 1.1 dev-python/astng/astng-0.19.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/astng/astng-0.19.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/astng/astng-0.19.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: astng-0.19.0.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.19.0.ebuild,v 1.1 2009/06/19 13:08:17 idl0r Exp $
51
52 inherit python distutils
53
54 DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages"
55 HOMEPAGE="http://www.logilab.org/projects/astng/"
56 SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
61 IUSE="test"
62
63 RDEPEND=">=dev-python/logilab-common-0.39.0"
64 DEPEND="${RDEPEND}
65 test? ( >=dev-python/egenix-mx-base-3.0.0 )"
66
67 PYTHON_MODNAME="logilab"
68
69 S="${WORKDIR}/logilab-${P}"
70
71 src_test() {
72 local sdir="${T}/test/$(python_get_sitedir)"
73
74 # This is a hack to make tests work without installing to the live
75 # filesystem. We copy part of the logilab site-packages to a temporary
76 # dir, install there, and run from there.
77 mkdir -p "${sdir}/logilab" || die
78 cp -r "$(python_get_sitedir)/logilab/common" "${sdir}/logilab" \
79 || die "copying logilab-common failed!"
80
81 ${python} setup.py install --root="${T}/test" || die "test copy failed"
82
83 # Pytest picks up tests relative to the current dir, so cd in.
84 pushd "${sdir}/logilab/astng" >/dev/null || die
85 PYTHONPATH="${sdir}" pytest -v || die "tests failed"
86 popd >/dev/null
87 }
88
89 src_install() {
90 local sdir="${D}/$(python_get_sitedir)/logilab"
91
92 distutils_src_install
93
94 # we need to remove this file because it collides with the one
95 # from logilab-common (which we depend on).
96 # Bug 111970 and bug 223025
97 rm "${sdir}/__init__.py" || die
98
99 # Remove unittests since they're just needed during build-time
100 rm -rf "${sdir}/astng/test" || die
101 }