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