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/logilab-common: ChangeLog logilab-common-0.43.0.ebuild
Date: Fri, 24 Jul 2009 21:48:46
Message-Id: E1MUSd9-0000eU-8E@stork.gentoo.org
1 arfrever 09/07/24 21:48:43
2
3 Modified: ChangeLog
4 Added: logilab-common-0.43.0.ebuild
5 Log:
6 Version bump. Don't check FEATURES (bug #278955).
7 (Portage version: 13850-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.43 dev-python/logilab-common/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.43&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?rev=1.43&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/ChangeLog?r1=1.42&r2=1.43
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v
19 retrieving revision 1.42
20 retrieving revision 1.43
21 diff -u -r1.42 -r1.43
22 --- ChangeLog 4 Jun 2009 13:01:39 -0000 1.42
23 +++ ChangeLog 24 Jul 2009 21:48:43 -0000 1.43
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/logilab-common
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.42 2009/06/04 13:01:39 idl0r Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.43 2009/07/24 21:48:43 arfrever Exp $
29 +
30 +*logilab-common-0.43.0 (24 Jul 2009)
31 +
32 + 24 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +logilab-common-0.43.0.ebuild:
34 + Version bump. Don't check FEATURES (bug #278955).
35
36 *logilab-common-0.41.0 (04 Jun 2009)
37
38
39
40
41 1.1 dev-python/logilab-common/logilab-common-0.43.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.43.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/logilab-common/logilab-common-0.43.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: logilab-common-0.43.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/logilab-common/logilab-common-0.43.0.ebuild,v 1.1 2009/07/24 21:48:43 arfrever Exp $
51
52 EAPI="2"
53
54 inherit distutils eutils python
55
56 DESCRIPTION="useful miscellaneous modules used by Logilab projects"
57 HOMEPAGE="http://www.logilab.org/projects/common/"
58 SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
63 IUSE="test"
64
65 DEPEND="test? ( dev-python/egenix-mx-base )"
66 RDEPEND=""
67
68 PYTHON_MODNAME="logilab"
69 # Extra documentation (html/pdf) needs some love
70
71 src_prepare() {
72 distutils_src_prepare
73
74 epatch "${FILESDIR}/${PN}-0.41.0-remove-broken-tests.patch"
75 }
76
77 src_test() {
78 python_version
79
80 # Install temporarily.
81 local tpath="${T}/test"
82 local lpath="${tpath}/lib/python"
83
84 # setuptools would fail if the directory doesn't exist.
85 mkdir -p "${lpath}" || die
86
87 # We also have to add ${lpath} to PYTHONPATH else the installation would
88 # fail.
89 PYTHONPATH="${lpath}" ${python} setup.py install --home="${tpath}" || \
90 die "test copy failed"
91
92 # Get a rid of precompiled files to ensure we run our _modified_ tests
93 find ${lpath} -type f -name '*.pyc' -exec rm {} ';'
94
95 # Remove a botched tests.
96 # To support test w/o setuptools.
97 if [[ -d "${lpath}/${PN/-//}" ]]; then
98 pushd "${lpath}/${PN/-//}" >/dev/null || die
99 else
100 pushd "${lpath}/${P/-/_}-py${PYVER}.egg/${PN/-//}" >/dev/null || die
101 fi
102
103 # Bug 223079
104 if [[ "${EUID}" -eq 0 ]]; then
105 rm test/unittest_fileutils.py || die
106 fi
107
108 popd >/dev/null || die
109
110 # It picks up the tests relative to the current dir, so cd in. Do
111 # not cd in too far though (to logilab/common for example) or some
112 # relative/absolute module location tests fail.
113 pushd "${lpath}" >/dev/null || die
114 PYTHONPATH="${lpath}" ${python} "${tpath}/bin/pytest" -v || die "tests failed"
115 popd >/dev/null || die
116 }
117
118 src_install() {
119 distutils_src_install
120
121 doman doc/pytest.1 || die "doman failed"
122
123 # Remove unittests since they're just needed during build-time
124 rm -rf "${D}/$(python_get_sitedir)/${PN/-//}/test" || die
125 }