dev-python/elasticsearch-py: fix to code re IUSE doc, fixes the gentoo bug
authorIan Delaney <idella4@gentoo.org>
Mon, 26 Oct 2015 03:45:57 +0000 (11:45 +0800)
committerIan Delaney <idella4@gentoo.org>
Mon, 26 Oct 2015 03:47:04 +0000 (11:47 +0800)
ack to  Andrew Wilcox for submission of the patch. Closes the bug

Gentoo bug: #564108

Package-Manager: portage-2.2.23

dev-python/elasticsearch-py/elasticsearch-py-1.8.0.ebuild

index 73ae13bfff6ac4ed0d11c8bcc8310b7edf029a17..482bc302e46bfab604ec1b38e12badf64b69d670 100644 (file)
@@ -80,12 +80,14 @@ python_test() {
 
 python_compile_all() {
        cd docs || die
-       emake man $(usex doc html "")
+       use doc && emake man html
 }
 
 python_install_all() {
-       use doc && HTML_DOCS=( docs/_build/html/. )
+       if use doc; then
+               export HTML_DOCS=( docs/_build/html/. )
+               doman docs/_build/man/*
+       fi
        use examples && local EXAMPLES=( example/. )
-       doman docs/_build/man/*
        distutils-r1_python_install_all
 }