commit:     e7f7ce9c09c4c11e9d1a136fcfb42b2e06c7bd73
Author:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 26 14:16:54 2015 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon Oct 26 14:18:10 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f7ce9c

dev-python/elasticsearch-py: follow up edit to doc, man page install

depend on sphinx unconditionaly, drop un-neededsphinx_rtd_theme,
rename the generated man pages to elasticsearch-py.1 for man pages,
patch by proxy maintainer

Gentoo bug: #564108

Package-Manager: portage-2.2.23

 .../elasticsearch-py/elasticsearch-py-1.8.0.ebuild      | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild 
b/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild
index 482bc30..2f6b7a5 100644
--- a/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild
+++ b/dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild
@@ -24,9 +24,7 @@ RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}]
                <dev-python/urllib3-2.0[${PYTHON_USEDEP}]"
 
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? (
                dev-python/sphinx[${PYTHON_USEDEP}]
-               dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
        test? ( ${RDEPEND}
                >=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
                <dev-python/requests-3.0.0[${PYTHON_USEDEP}]
@@ -37,6 +35,13 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
                dev-python/nosexcover[${PYTHON_USEDEP}]
                || ( virtual/jre:1.8 virtual/jre:1.7 ) )"
 
+python_prepare_all() {
+       # rename manpage to elasticsearch-py
+       sed -i "s@('index', 'elasticsearch'@('index', 'elasticsearch-py'@g" 
docs/conf.py 
+        
+       distutils-r1_python_prepare_all
+}
+
 python_test() {
        ES="${WORKDIR}/elasticsearch-${ES_VERSION}"
        ES_PORT="25124"
@@ -80,14 +85,12 @@ python_test() {
 
 python_compile_all() {
        cd docs || die
-       use doc && emake man html
+       emake man $(usex doc html "")
 }
 
 python_install_all() {
-       if use doc; then
-               export HTML_DOCS=( docs/_build/html/. )
-               doman docs/_build/man/*
-       fi
+       use doc && HTML_DOCS=( docs/_build/html/. )
        use examples && local EXAMPLES=( example/. )
+       doman docs/_build/man/*
        distutils-r1_python_install_all
 }

Reply via email to