commit:     121e6a1633b2dbde9d83485f7bb39a682ebac641
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 23:02:27 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 23:02:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=121e6a16

dev-python/scipy: fix USE=doc

Closes: https://bugs.gentoo.org/862567
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/scipy/scipy-1.9.0-r1.ebuild |  8 ++++++++
 dev-python/scipy/scipy-1.9.9999.ebuild | 10 +++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/dev-python/scipy/scipy-1.9.0-r1.ebuild 
b/dev-python/scipy/scipy-1.9.0-r1.ebuild
index c6b76d728e36..47dd4358d2c0 100644
--- a/dev-python/scipy/scipy-1.9.0-r1.ebuild
+++ b/dev-python/scipy/scipy-1.9.0-r1.ebuild
@@ -81,6 +81,14 @@ EPYTEST_DESELECT=(
 
 distutils_enable_tests pytest
 
+src_unpack() {
+       default
+
+       if use doc; then
+               unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
+       fi
+}
+
 python_test() {
        cd "${T}" || die
 

diff --git a/dev-python/scipy/scipy-1.9.9999.ebuild 
b/dev-python/scipy/scipy-1.9.9999.ebuild
index 888ff2073ebb..47dd4358d2c0 100644
--- a/dev-python/scipy/scipy-1.9.9999.ebuild
+++ b/dev-python/scipy/scipy-1.9.9999.ebuild
@@ -38,7 +38,7 @@ else
        S="${WORKDIR}"/${MY_P}
 
        if [[ ${PV} != *rc* ]] ; then
-               KEYWORDS="~amd64 -hppa"
+               KEYWORDS="~amd64 -hppa ~ppc64 ~riscv"
        fi
 fi
 
@@ -81,6 +81,14 @@ EPYTEST_DESELECT=(
 
 distutils_enable_tests pytest
 
+src_unpack() {
+       default
+
+       if use doc; then
+               unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
+       fi
+}
+
 python_test() {
        cd "${T}" || die
 

Reply via email to