1 |
commit: 6e79dd243b28bf2d1c19f71e30c17240f2491d67 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 16:55:11 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 7 18:43:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e79dd24 |
7 |
|
8 |
dev-python/zope-component: Use dev-python/namespace-zope |
9 |
|
10 |
.../zope-component/zope-component-4.3.0-r1.ebuild | 39 ++++++++++++++++++++++ |
11 |
1 file changed, 39 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/zope-component/zope-component-4.3.0-r1.ebuild b/dev-python/zope-component/zope-component-4.3.0-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..797aa183c93 |
16 |
--- /dev/null |
17 |
+++ b/dev-python/zope-component/zope-component-4.3.0-r1.ebuild |
18 |
@@ -0,0 +1,39 @@ |
19 |
+# Copyright 1999-2017 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6}) |
24 |
+ |
25 |
+inherit distutils-r1 |
26 |
+MY_PN=zope.component |
27 |
+MY_P=${MY_PN}-${PV} |
28 |
+ |
29 |
+DESCRIPTION="Zope Component Architecture" |
30 |
+HOMEPAGE="https://github.com/zopefoundation/zope.component http://docs.zope.org/zope.component/" |
31 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="ZPL" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~arm ~x86" |
36 |
+IUSE="test" |
37 |
+RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}] |
38 |
+ dev-python/zope-event[${PYTHON_USEDEP}] |
39 |
+ >=dev-python/zope-interface-4.1.0[${PYTHON_USEDEP}]" |
40 |
+DEPEND="test? ( ${RDEPEND} |
41 |
+ dev-python/nose[${PYTHON_USEDEP}] ) |
42 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
43 |
+ |
44 |
+S=${WORKDIR}/${MY_P} |
45 |
+ |
46 |
+RESTRICT="test" |
47 |
+ |
48 |
+python_test() { |
49 |
+ nosetests || die |
50 |
+} |
51 |
+ |
52 |
+python_install_all() { |
53 |
+ distutils-r1_python_install_all |
54 |
+ |
55 |
+ # remove .pth files since dev-python/namespace-zope handles the ns |
56 |
+ find "${D}" -name '*.pth' -delete || die |
57 |
+} |