1 |
commit: e7f7ce9c09c4c11e9d1a136fcfb42b2e06c7bd73 |
2 |
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 26 14:16:54 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 26 14:18:10 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f7ce9c |
7 |
|
8 |
dev-python/elasticsearch-py: follow up edit to doc, man page install |
9 |
|
10 |
depend on sphinx unconditionaly, drop un-neededsphinx_rtd_theme, |
11 |
rename the generated man pages to elasticsearch-py.1 for man pages, |
12 |
patch by proxy maintainer |
13 |
|
14 |
Gentoo bug: #564108 |
15 |
|
16 |
Package-Manager: portage-2.2.23 |
17 |
|
18 |
.../elasticsearch-py/elasticsearch-py-1.8.0.ebuild | 17 ++++++++++------- |
19 |
1 file changed, 10 insertions(+), 7 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild b/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild |
22 |
index 482bc30..2f6b7a5 100644 |
23 |
--- a/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild |
24 |
+++ b/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild |
25 |
@@ -24,9 +24,7 @@ RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}] |
26 |
<dev-python/urllib3-2.0[${PYTHON_USEDEP}]" |
27 |
|
28 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
29 |
- doc? ( |
30 |
dev-python/sphinx[${PYTHON_USEDEP}] |
31 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) |
32 |
test? ( ${RDEPEND} |
33 |
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
34 |
<dev-python/requests-3.0.0[${PYTHON_USEDEP}] |
35 |
@@ -37,6 +35,13 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
36 |
dev-python/nosexcover[${PYTHON_USEDEP}] |
37 |
|| ( virtual/jre:1.8 virtual/jre:1.7 ) )" |
38 |
|
39 |
+python_prepare_all() { |
40 |
+ # rename manpage to elasticsearch-py |
41 |
+ sed -i "s@('index', 'elasticsearch'@('index', 'elasticsearch-py'@g" docs/conf.py |
42 |
+ |
43 |
+ distutils-r1_python_prepare_all |
44 |
+} |
45 |
+ |
46 |
python_test() { |
47 |
ES="${WORKDIR}/elasticsearch-${ES_VERSION}" |
48 |
ES_PORT="25124" |
49 |
@@ -80,14 +85,12 @@ python_test() { |
50 |
|
51 |
python_compile_all() { |
52 |
cd docs || die |
53 |
- use doc && emake man html |
54 |
+ emake man $(usex doc html "") |
55 |
} |
56 |
|
57 |
python_install_all() { |
58 |
- if use doc; then |
59 |
- export HTML_DOCS=( docs/_build/html/. ) |
60 |
- doman docs/_build/man/* |
61 |
- fi |
62 |
+ use doc && HTML_DOCS=( docs/_build/html/. ) |
63 |
use examples && local EXAMPLES=( example/. ) |
64 |
+ doman docs/_build/man/* |
65 |
distutils-r1_python_install_all |
66 |
} |