1 |
commit: 080ef43db558fc9d829a377b4e579cf208e33195 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 9 18:55:16 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 18:55:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=080ef43d |
7 |
|
8 |
dev-python/zope-component: EAPI 8, PEP517, tests, no namespace |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../zope-component/zope-component-4.4.1-r1.ebuild | 60 ++++++++++++++++++++++ |
13 |
1 file changed, 60 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/zope-component/zope-component-4.4.1-r1.ebuild b/dev-python/zope-component/zope-component-4.4.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..60d792a5516d |
18 |
--- /dev/null |
19 |
+++ b/dev-python/zope-component/zope-component-4.4.1-r1.ebuild |
20 |
@@ -0,0 +1,60 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PN=zope.component |
32 |
+MY_P=${MY_PN}-${PV} |
33 |
+DESCRIPTION="Zope Component Architecture" |
34 |
+HOMEPAGE=" |
35 |
+ https://pypi.org/project/zope.component/ |
36 |
+ https://github.com/zopefoundation/zope.component/ |
37 |
+ https://docs.zope.org/zope.component/ |
38 |
+" |
39 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
40 |
+S=${WORKDIR}/${MY_P} |
41 |
+ |
42 |
+LICENSE="ZPL" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ dev-python/zope-event[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/zope-interface-4.1.0[${PYTHON_USEDEP}] |
49 |
+" |
50 |
+BDEPEND=" |
51 |
+ test? ( |
52 |
+ dev-python/zope-configuration[${PYTHON_USEDEP}] |
53 |
+ dev-python/zope-i18nmessageid[${PYTHON_USEDEP}] |
54 |
+ dev-python/zope-testing[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+distutils_enable_tests unittest |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ # strip rdep specific to namespaces |
62 |
+ sed -i -e "/'setuptools'/d" setup.py || die |
63 |
+ distutils-r1_src_prepare |
64 |
+} |
65 |
+ |
66 |
+python_compile() { |
67 |
+ distutils-r1_python_compile |
68 |
+ find "${BUILD_DIR}" -name '*.pth' -delete || die |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die |
73 |
+ # this is needed to keep the tests working while |
74 |
+ # dev-python/namespace-zope is still installed |
75 |
+ cat > zope/__init__.py <<-EOF || die |
76 |
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__) |
77 |
+ EOF |
78 |
+ eunittest |
79 |
+ rm zope/__init__.py || die |
80 |
+} |