From: Michał Górny Date: Mon, 25 Nov 2019 12:25:20 +0000 (+0100) Subject: dev-python/service_identity: Use distutils_enable_sphinx X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aead15d9902d5e93d53ee0bcf1775fe0215395b8;p=gentoo.git dev-python/service_identity: Use distutils_enable_sphinx Signed-off-by: Michał Górny --- 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 e582acd01e68..73195bd293e5 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 -}