1 |
commit: 5fae0670903bc4b1541e6cb7e8e3375989eca6ce |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 1 22:13:48 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 04:06:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fae0670 |
7 |
|
8 |
dev-python/sphinxcontrib-asyncio: fix namespace conflict, remove inexistent tests |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
.../sphinxcontrib-asyncio-0.2.0-r1.ebuild | 39 ++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r1.ebuild b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..fe969fc8bba |
18 |
--- /dev/null |
19 |
+++ b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r1.ebuild |
20 |
@@ -0,0 +1,39 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
27 |
+inherit distutils-r1 |
28 |
+ |
29 |
+DESCRIPTION="sphinx extension to support coroutines in markup" |
30 |
+HOMEPAGE="https://github.com/aio-libs/sphinxcontrib-asyncio" |
31 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="Apache-2.0" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
36 |
+IUSE="doc" |
37 |
+ |
38 |
+DEPEND=" |
39 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
40 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
41 |
+" |
42 |
+RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}] |
43 |
+ dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]" |
44 |
+ |
45 |
+python_compile_all() { |
46 |
+ use doc && emake -C docs html |
47 |
+} |
48 |
+ |
49 |
+python_install_all() { |
50 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
51 |
+ distutils-r1_python_install_all |
52 |
+ # clean up pth files bug #623852 |
53 |
+ find "${ED}" -name '*.pth' -delete || die |
54 |
+ # collision bug #625872 |
55 |
+ _namespace_cleanup() { |
56 |
+ rm "${D%/}"$(python_get_sitedir)/sphinxcontrib/__init__.py || die |
57 |
+ } |
58 |
+ python_foreach_impl _namespace_cleanup |
59 |
+} |