commit:     31d448213464d10a3ad427dc3a59bfc2ebb2db78
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 12 15:34:26 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 28 18:19:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31d44821

virtual/lapacke: Add flexiblas support

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

 virtual/lapacke/lapacke-3.8-r2.ebuild | 20 ++++++++++++++------
 virtual/lapacke/metadata.xml          |  1 +
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/virtual/lapacke/lapacke-3.8-r2.ebuild 
b/virtual/lapacke/lapacke-3.8-r2.ebuild
index 6a00bf1da3a0..dd2eeae1e140 100644
--- a/virtual/lapacke/lapacke-3.8-r2.ebuild
+++ b/virtual/lapacke/lapacke-3.8-r2.ebuild
@@ -6,12 +6,20 @@ EAPI="8"
 DESCRIPTION="Virtual for LAPACK C implementation"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="eselect-ldso index64"
+IUSE="eselect-ldso flexiblas index64"
+REQUIRED_USE="?? ( eselect-ldso flexiblas )"
 
 RDEPEND="
-       >=sci-libs/lapack-3.8.0[lapacke,eselect-ldso?,index64(-)?]
-       eselect-ldso? ( || (
-               >=sci-libs/lapack-3.8.0[lapacke,eselect-ldso]
-               >=sci-libs/openblas-0.3.10[eselect-ldso]
-       ) )
+       flexiblas? (
+               sci-libs/flexiblas[system-blas(-),index64(-)?]
+       )
+       !flexiblas? (
+               
>=sci-libs/lapack-3.8.0[lapacke,eselect-ldso?,-flexiblas(-),index64(-)?]
+               eselect-ldso? (
+                       || (
+                               >=sci-libs/lapack-3.8.0[lapacke,eselect-ldso]
+                               >=sci-libs/openblas-0.3.10[eselect-ldso]
+                       )
+               )
+       )
 "

diff --git a/virtual/lapacke/metadata.xml b/virtual/lapacke/metadata.xml
index 2b87d529e9ba..660774543d29 100644
--- a/virtual/lapacke/metadata.xml
+++ b/virtual/lapacke/metadata.xml
@@ -7,6 +7,7 @@
        </maintainer>
        <use>
                <flag name="eselect-ldso">Enable runtime library switching by 
eselect and ld.so.</flag>
+               <flag name="flexiblas">Use <pkg>sci-libs/flexiblas</pkg> as the 
provider.</flag>
                <flag name="index64">Provide an ILP64 library in addition to 
LP64</flag>
        </use>
        <stabilize-allarches/>

Reply via email to