1 |
commit: 2fb75581c291cd4366e033f1dfb768a13846808c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 16:56:40 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 7 18:43:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fb75581 |
7 |
|
8 |
dev-python/zope-interface: Use dev-python/namespace-zope |
9 |
|
10 |
.../zope-interface/zope-interface-4.4.0-r1.ebuild | 46 ++++++++++++++++++++++ |
11 |
1 file changed, 46 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/zope-interface/zope-interface-4.4.0-r1.ebuild b/dev-python/zope-interface/zope-interface-4.4.0-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..2c219319fbd |
16 |
--- /dev/null |
17 |
+++ b/dev-python/zope-interface/zope-interface-4.4.0-r1.ebuild |
18 |
@@ -0,0 +1,46 @@ |
19 |
+# Copyright 1999-2017 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+ |
24 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
25 |
+ |
26 |
+inherit distutils-r1 flag-o-matic |
27 |
+ |
28 |
+MY_PN=${PN/-/.} |
29 |
+MY_P=${MY_PN}-${PV} |
30 |
+ |
31 |
+DESCRIPTION="Interfaces for Python" |
32 |
+HOMEPAGE="https://pypi.python.org/pypi/zope.interface https://github.com/zopefoundation/zope.interface" |
33 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="ZPL" |
36 |
+SLOT="0" |
37 |
+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" |
38 |
+IUSE="test" |
39 |
+ |
40 |
+RDEPEND="dev-python/namespace-zope[${PYTHON_USEDEP}]" |
41 |
+DEPEND=">=dev-python/setuptools-33.1.1[${PYTHON_USEDEP}] |
42 |
+ test? ( dev-python/zope-event[${PYTHON_USEDEP}] )" |
43 |
+ |
44 |
+S=${WORKDIR}/${MY_P} |
45 |
+ |
46 |
+python_compile() { |
47 |
+ if ! python_is_python3; then |
48 |
+ local CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" |
49 |
+ append-flags -fno-strict-aliasing |
50 |
+ fi |
51 |
+ |
52 |
+ distutils-r1_python_compile |
53 |
+} |
54 |
+ |
55 |
+python_test() { |
56 |
+ esetup.py test |
57 |
+} |
58 |
+ |
59 |
+python_install_all() { |
60 |
+ distutils-r1_python_install_all |
61 |
+ |
62 |
+ # remove .pth files since dev-python/namespace-zope handles the ns |
63 |
+ find "${D}" -name '*.pth' -delete || die |
64 |
+} |