From c7987ffe157fe95c602f40cbd0ef3cd3e8e54357 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 25 Nov 2019 13:24:57 +0100 Subject: [PATCH] dev-python/gmpy: Use distutils_enable_sphinx MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/gmpy/gmpy-2.0.8-r1.ebuild | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/dev-python/gmpy/gmpy-2.0.8-r1.ebuild b/dev-python/gmpy/gmpy-2.0.8-r1.ebuild index 49b20e3409bd..206a2329c1f9 100644 --- a/dev-python/gmpy/gmpy-2.0.8-r1.ebuild +++ b/dev-python/gmpy/gmpy-2.0.8-r1.ebuild @@ -18,7 +18,7 @@ S="${WORKDIR}"/${MY_P} LICENSE="LGPL-3+" SLOT="2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="doc mpir" +IUSE="mpir" RDEPEND=" >=dev-libs/mpc-1.0.2:= @@ -27,18 +27,14 @@ RDEPEND=" mpir? ( sci-libs/mpir:= )" DEPEND="${RDEPEND}" BDEPEND=" - app-arch/unzip - doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )" + app-arch/unzip" PATCHES=( "${FILESDIR}"/${P}-fix-mpir-types.patch "${FILESDIR}"/gmpy-2.0.8-test-exit-status.patch ) -python_check_deps() { - use doc || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} +distutils_enable_sphinx docs python_prepare_all() { distutils-r1_python_prepare_all @@ -60,13 +56,6 @@ python_compile() { distutils-r1_python_compile } -python_compile_all() { - if use doc; then - emake -C docs html - HTML_DOCS=( docs/_build/html/. ) - fi -} - python_test() { cd test || die "${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}" -- 2.26.2