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
This commit is contained in:
Ian Delaney
2015-10-26 22:16:54 +08:00
parent e3464c99d8
commit e7f7ce9c09

View File

@@ -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
}