commit: aead15d9902d5e93d53ee0bcf1775fe0215395b8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 25 12:25:20 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 12:35:17 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aead15d9
dev-python/service_identity: Use distutils_enable_sphinx
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../service_identity-18.1.0.ebuild | 24 ++--------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/dev-python/service_identity/service_identity-18.1.0.ebuild
b/dev-python/service_identity/service_identity-18.1.0.ebuild
index e582acd01e6..73195bd293e 100644
--- a/dev-python/service_identity/service_identity-18.1.0.ebuild
+++ b/dev-python/service_identity/service_identity-18.1.0.ebuild
@@ -15,7 +15,6 @@ S=${WORKDIR}/${P/_/-}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390
~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc"
# TODO: upstream made pyopenssl optional
RDEPEND="
@@ -24,26 +23,7 @@ RDEPEND="
>=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
dev-python/attrs[${PYTHON_USEDEP}]"
BDEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )"
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+distutils_enable_sphinx docs
distutils_enable_tests pytest
-
-python_check_deps() {
- use doc || return 0
-
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
-}
-
-python_prepare_all() {
- # Prevent un-needed download during build
- sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die
- distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
- if use doc; then
- emake -C docs html
- HTML_DOCS=( docs/_build/html/. )
- fi
-}