commit:     ad9b7e9d61feb7d6a43b1070ec690a678fc219d2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  7 06:30:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  7 06:56:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad9b7e9d

dev-python/mpmath: change arch blacklist -> USE=test-full

This allows adding more arches easily.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/mpmath/metadata.xml               | 6 ++++++
 dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild | 7 +++----
 profiles/arch/hppa/package.use.mask          | 4 ++++
 profiles/arch/mips/package.use.mask          | 4 ++++
 4 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/dev-python/mpmath/metadata.xml b/dev-python/mpmath/metadata.xml
index 169f36d41536..df909d0c25b3 100644
--- a/dev-python/mpmath/metadata.xml
+++ b/dev-python/mpmath/metadata.xml
@@ -14,6 +14,12 @@
                <name>Python</name>
        </maintainer>
        <!-- no ALLARCHES: fragile to FP issues -->
+       <use>
+               <flag name="test-full">
+                       Run test suite in full via additional (large) test
+                       dependencies, like dev-python/matplotlib.
+               </flag>
+       </use>
        <upstream>
                <remote-id type="pypi">mpmath</remote-id>
                <remote-id type="github">mpmath/mpmath</remote-id>

diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild 
b/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild
index 0cbae9aa407d..fcd36992ed48 100644
--- a/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild
+++ b/dev-python/mpmath/mpmath-1.4.0_alpha5.ebuild
@@ -18,6 +18,7 @@ HOMEPAGE="
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="test-full"
 
 BDEPEND="
        dev-python/setuptools-scm[${PYTHON_USEDEP}]
@@ -31,10 +32,8 @@ BDEPEND="
                $(python_gen_cond_dep '
                        dev-python/gmpy2[${PYTHON_USEDEP}]
                ' 'python3*')
-               !mips? (
-                       !hppa? (
-                               dev-python/matplotlib[${PYTHON_USEDEP}]
-                       )
+               test-full? (
+                       dev-python/matplotlib[${PYTHON_USEDEP}]
                )
        )
 "

diff --git a/profiles/arch/hppa/package.use.mask 
b/profiles/arch/hppa/package.use.mask
index bf4a42108b4d..a1d4212c0ef0 100644
--- a/profiles/arch/hppa/package.use.mask
+++ b/profiles/arch/hppa/package.use.mask
@@ -4,6 +4,10 @@
 # NOTE: When masking a USE flag due to missing keywords, please file a keyword
 # request bug for the hppa arch.
 
+# Sam James <[email protected]> (2025-06-07)
+# Needs dev-python/matplotlib
+dev-python/mpmath test-full
+
 # Hans de Graaff <[email protected]> (2025-05-31)
 # Requires large parts of dev-ruby/rails to be keyworded.
 dev-ruby/minitest-hooks test

diff --git a/profiles/arch/mips/package.use.mask 
b/profiles/arch/mips/package.use.mask
index 9517963618ef..c45a525b23c7 100644
--- a/profiles/arch/mips/package.use.mask
+++ b/profiles/arch/mips/package.use.mask
@@ -1,6 +1,10 @@
 # Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# Sam James <[email protected]> (2025-06-07)
+# Needs dev-python/matplotlib
+dev-python/mpmath test-full
+
 # Hans de Graaff <[email protected]> (2025-05-31)
 # Requires large parts of dev-ruby/rails to be keyworded.
 dev-ruby/minitest-hooks test

Reply via email to