commit:     e51354c023b4f38c93cd882ca9b902d3f5ea22ea
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 17 17:15:20 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 17 18:54:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e51354c0

sci-libs/mkl: Make static libraries optional

Closes: https://bugs.gentoo.org/890461
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sci-libs/mkl/mkl-2025.2.0.628.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sci-libs/mkl/mkl-2025.2.0.628.ebuild 
b/sci-libs/mkl/mkl-2025.2.0.628.ebuild
index cb572e5c51e1..44175dc8ca9c 100644
--- a/sci-libs/mkl/mkl-2025.2.0.628.ebuild
+++ b/sci-libs/mkl/mkl-2025.2.0.628.ebuild
@@ -20,6 +20,7 @@ S="${WORKDIR}"
 LICENSE="ISSL"
 SLOT="0"
 KEYWORDS="~amd64"
+IUSE="static-libs"
 RESTRICT="strip"
 
 # MKL uses Intel/LLVM OpenMP by default.
@@ -47,6 +48,11 @@ QA_SONAME="*"
 src_install() {
        local libdir=$(get_libdir)
        local libroot=opt/intel/oneapi/mkl/${PN_VER}/lib
+
+       if ! use static-libs; then
+               rm -v "${libroot}"/{*.a,pkgconfig/*-static-*.pc} || die
+       fi
+
        # Symlink pkgconfig and cmake files
        pushd "${libroot}/pkgconfig" >/dev/null || die
        for file in *.pc; do

Reply via email to