commit:     66ea5769b14423872f3466b2873721849ba52041
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 14 09:45:32 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 16 17:35:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66ea5769

dev-python/numpy: Add LAPACK index64 support

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/numpy/numpy-2.3.3.ebuild | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dev-python/numpy/numpy-2.3.3.ebuild 
b/dev-python/numpy/numpy-2.3.3.ebuild
index be424340c11e..9fbfb668b49e 100644
--- a/dev-python/numpy/numpy-2.3.3.ebuild
+++ b/dev-python/numpy/numpy-2.3.3.ebuild
@@ -23,7 +23,7 @@ SLOT="0/2"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
 # +lapack because the internal fallbacks are pretty slow. Building without blas
 # is barely supported anyway, see bug #914358.
-IUSE="big-endian +cpudetection +lapack"
+IUSE="big-endian +cpudetection index64 +lapack"
 
 # upstream-flag[:gentoo-flag]
 ARM_FLAGS=( neon{,-fp16} vfpv4 asimd{,hp,dp,fhm} sve )
@@ -41,8 +41,8 @@ IUSE+="
 
 RDEPEND="
        lapack? (
-               >=virtual/cblas-3.8
-               >=virtual/lapack-3.8
+               >=virtual/cblas-3.8[index64(-)?]
+               >=virtual/lapack-3.8[index64(-)?]
        )
 "
 BDEPEND="
@@ -216,8 +216,9 @@ python_configure_all() {
 
        DISTUTILS_ARGS=(
                -Dallow-noblas=$(usex !lapack true false)
-               -Dblas=$(usev lapack cblas)
-               -Dlapack=$(usev lapack lapack)
+               -Duse-ilp64=$(usex index64 true false)
+               -Dblas=$(usev lapack $(usex index64 cblas64 cblas))
+               -Dlapack=$(usev lapack $(usex index64 lapack64 lapack))
                -Dcpu-baseline="${cpu_baseline[*]}"
                -Dcpu-baseline-detect=disabled
                # '-XOP -FMA4' is upstream default, since these are deprecated

Reply via email to