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/pylint: ChangeLog pylint-0.18.0.ebuild
Date: Mon, 31 Oct 2011 03:58:51
Message-Id: E1MfyL2-00056N-6t@stork.gentoo.org
1 arfrever 09/08/25 15:53:36
2
3 Modified: ChangeLog pylint-0.18.0.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS.
6 (Portage version: 14155-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.49 dev-python/pylint/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/ChangeLog?rev=1.49&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/ChangeLog?rev=1.49&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/ChangeLog?r1=1.48&r2=1.49
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v
18 retrieving revision 1.48
19 retrieving revision 1.49
20 diff -u -r1.48 -r1.49
21 --- ChangeLog 19 Jun 2009 14:40:07 -0000 1.48
22 +++ ChangeLog 25 Aug 2009 15:53:35 -0000 1.49
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-python/pylint
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.48 2009/06/19 14:40:07 idl0r Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.49 2009/08/25 15:53:35 arfrever Exp $
28 +
29 + 25 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
30 + pylint-0.18.0.ebuild:
31 + Set SUPPORT_PYTHON_ABIS.
32
33 *pylint-0.18.0 (19 Jun 2009)
34
35
36
37
38 1.3 dev-python/pylint/pylint-0.18.0.ebuild
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild?rev=1.3&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild?rev=1.3&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild?r1=1.2&r2=1.3
43
44 Index: pylint-0.18.0.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild,v
47 retrieving revision 1.2
48 retrieving revision 1.3
49 diff -u -r1.2 -r1.3
50 --- pylint-0.18.0.ebuild 23 Jun 2009 15:18:53 -0000 1.2
51 +++ pylint-0.18.0.ebuild 25 Aug 2009 15:53:35 -0000 1.3
52 @@ -1,8 +1,9 @@
53 # Copyright 1999-2009 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild,v 1.2 2009/06/23 15:18:53 mr_bones_ Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild,v 1.3 2009/08/25 15:53:35 arfrever Exp $
57
58 EAPI="2"
59 +SUPPORT_PYTHON_ABIS="1"
60
61 inherit eutils distutils python
62
63 @@ -20,33 +21,36 @@
64 RDEPEND="${DEPEND}
65 dev-lang/python[tk?]"
66
67 -src_test() {
68 - python_version
69 -
70 - local lpath="${T}/test/lib/python"
71 - local tpath=""
72 +RESTRICT_PYTHON_ABIS="3*"
73
74 - # Create testdir and copy pylint into it for testing purpose.
75 - mkdir -p "${lpath}/logilab" || die
76 - PYTHONPATH="${lpath}" ${python} setup.py install --home="${T}/test" \
77 - || die "test copy failed"
78 -
79 - # To support test w/o setuptools.
80 - if [[ -d "${lpath}/${PN}" ]]; then
81 - tpath="${lpath}/${PN}"
82 - else
83 - tpath="${lpath}/${P}-py${PYVER}.egg/${PN}"
84 - fi
85 -
86 - # Copy pylint unittest and logilab-{common,astng} into our temporary test
87 - # dir.
88 - cp -r test/ ${tpath} || die "copy tests failed"
89 - cp -r "$(python_get_sitedir)/logilab/"{common,astng} "${lpath}/logilab" \
90 - || die "copying logilab-{common,astng} failed!"
91 -
92 - pushd "${tpath}" >/dev/null || die
93 - PYTHONPATH="${lpath}" pytest -v || die "tests failed"
94 - popd >/dev/null || die
95 +src_test() {
96 + testing() {
97 + local lpath="${T}/test/lib/python"
98 + local tpath=""
99 +
100 + rm -fr "${lpath}"
101 +
102 + # Create testdir and copy pylint into it for testing purpose.
103 + mkdir -p "${lpath}/logilab" || die
104 + PYTHONPATH="${lpath}" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --home="${T}/test" || die "test copy failed"
105 +
106 + # To support test w/o setuptools.
107 + if [[ -d "${lpath}/${PN}" ]]; then
108 + tpath="${lpath}/${PN}"
109 + else
110 + tpath="${lpath}/${P}-py${PYTHON_ABI}.egg/${PN}"
111 + fi
112 +
113 + # Copy pylint unittest and logilab-{common,astng} into our temporary test
114 + # dir.
115 + cp -r test/ ${tpath} || die "copy tests failed"
116 + cp -r "$(python_get_sitedir)/logilab/"{common,astng} "${lpath}/logilab" || die "copying logilab-{common,astng} failed!"
117 +
118 + pushd "${tpath}" >/dev/null || die
119 + PYTHONPATH="${lpath}" pytest -v || die "tests failed"
120 + popd >/dev/null || die
121 + }
122 + python_execute_function testing
123 }
124
125 src_install() {