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