1 |
commit: 82401f696acd2193738aecf1dd3c6ced0c4d0e60 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 16:56:08 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=82401f69 |
7 |
|
8 |
dev-python/zope-event: Use dev-python/namespace-zope |
9 |
|
10 |
dev-python/zope-event/zope-event-4.2.0-r1.ebuild | 35 ++++++++++++++++++++++++ |
11 |
1 file changed, 35 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/zope-event/zope-event-4.2.0-r1.ebuild b/dev-python/zope-event/zope-event-4.2.0-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..fb4a47f9e82 |
16 |
--- /dev/null |
17 |
+++ b/dev-python/zope-event/zope-event-4.2.0-r1.ebuild |
18 |
@@ -0,0 +1,35 @@ |
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=( python2_7 python3_{4,5,6} pypy ) |
24 |
+ |
25 |
+inherit distutils-r1 |
26 |
+MY_PN=zope.event |
27 |
+ |
28 |
+MY_P=${MY_PN}-${PV} |
29 |
+DESCRIPTION="Event publishing / dispatch, used by Zope Component Architecture" |
30 |
+HOMEPAGE="https://github.com/zopefoundation/zope.event http://docs.zope.org/zope.event/" |
31 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="ZPL" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
+IUSE="test" |
37 |
+ |
38 |
+RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}]" |
39 |
+DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
40 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
41 |
+ |
42 |
+S=${WORKDIR}/${MY_P} |
43 |
+ |
44 |
+python_test() { |
45 |
+ nosetests || die |
46 |
+} |
47 |
+ |
48 |
+python_install_all() { |
49 |
+ distutils-r1_python_install_all |
50 |
+ |
51 |
+ # remove .pth files since dev-python/namespace-zope handles the ns |
52 |
+ find "${D}" -name '*.pth' -delete || die |
53 |
+} |