commit:     c6dd38afb3233ac6c69b91a078b3dbdbe3c94606
Author:     Chris Mayo <aklhfex <AT> gmail <DOT> com>
AuthorDate: Tue Nov  7 19:27:12 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 17:29:42 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6dd38af

app-text/pdfminer: remove python_compile_all()

The path to the documentation subdirectory is passed to 
distutils_enable_sphinx, use that.

Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33716
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/pdfminer/pdfminer-20221105.ebuild | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/app-text/pdfminer/pdfminer-20221105.ebuild 
b/app-text/pdfminer/pdfminer-20221105.ebuild
index fd7b84ae99af..fa3139418efc 100644
--- a/app-text/pdfminer/pdfminer-20221105.ebuild
+++ b/app-text/pdfminer/pdfminer-20221105.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_COMPAT=( python3_{10..12} )
 inherit distutils-r1
 
 MY_P="${PN}.six-${PV}"
@@ -22,7 +22,7 @@ IUSE="doc examples"
 RDEPEND=">=dev-python/charset-normalizer-2.0.0[${PYTHON_USEDEP}]
        >=dev-python/cryptography-36.0.0[${PYTHON_USEDEP}]"
 
-distutils_enable_sphinx docs "dev-python/sphinx-argparse"
+distutils_enable_sphinx docs/source "dev-python/sphinx-argparse"
 distutils_enable_tests pytest
 
 python_prepare_all() {
@@ -30,14 +30,6 @@ python_prepare_all() {
        distutils-r1_python_prepare_all
 }
 
-python_compile_all() {
-       # Non-standard doc generation
-       if use doc; then
-               PYTHONPATH="${PYTHONPATH}:${BUILD_DIR}/install" sphinx-build 
docs/source "${WORKDIR}"/_docs
-               HTML_DOCS=( "${WORKDIR}"/_docs/. )
-       fi
-}
-
 python_install_all() {
        use examples && dodoc -r samples
        distutils-r1_python_install_all

Reply via email to