diff options
Diffstat (limited to 'dev-python/pymongo/pymongo-2.9.3.ebuild')
-rw-r--r-- | dev-python/pymongo/pymongo-2.9.3.ebuild | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/dev-python/pymongo/pymongo-2.9.3.ebuild b/dev-python/pymongo/pymongo-2.9.3.ebuild index 867a26b9ee7c..6cd270984e96 100644 --- a/dev-python/pymongo/pymongo-2.9.3.ebuild +++ b/dev-python/pymongo/pymongo-2.9.3.ebuild @@ -23,7 +23,7 @@ RDEPEND=" DEPEND=" ${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] ) test? ( dev-python/nose[${PYTHON_USEDEP}] >=dev-db/mongodb-2.6.0 @@ -48,13 +48,22 @@ pkg_setup() { reqcheck pkg_setup } -python_compile_all() { +python_compile_docs() { if use doc; then + python_setup 'python2*' mkdir html || die sphinx-build doc html || die fi } +python_install_docs() { + if use doc; then + python_setup 'python2*' + local HTML_DOCS=( html/. ) + einstalldocs + fi +} + python_test() { # Yes, we need TCP/IP for that... local DB_IP=127.0.0.1 @@ -114,8 +123,12 @@ python_test() { rm -rf "${dbpath}" || die } -python_install_all() { - use doc && local HTML_DOCS=( html/. ) +src_compile() { + distutils-r1_src_compile + python_compile_docs +} - distutils-r1_python_install_all +src_install() { + distutils-r1_src_install + python_install_docs } |