Gentoo Archives: gentoo-commits

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