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