commit: 33bc20d7a69e4cc3a10e9d136848d460732b38bd
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 17 17:20:21 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 17 18:54:08 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33bc20d7
sci-libs/mkl: Make examples & benchmarks optional
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sci-libs/mkl/mkl-2025.2.0.628.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sci-libs/mkl/mkl-2025.2.0.628.ebuild
b/sci-libs/mkl/mkl-2025.2.0.628.ebuild
index 44175dc8ca9c..c98f530c7d22 100644
--- a/sci-libs/mkl/mkl-2025.2.0.628.ebuild
+++ b/sci-libs/mkl/mkl-2025.2.0.628.ebuild
@@ -20,7 +20,7 @@ S="${WORKDIR}"
LICENSE="ISSL"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="static-libs"
+IUSE="examples static-libs"
RESTRICT="strip"
# MKL uses Intel/LLVM OpenMP by default.
@@ -52,6 +52,9 @@ src_install() {
if ! use static-libs; then
rm -v "${libroot}"/{*.a,pkgconfig/*-static-*.pc} || die
fi
+ if ! use examples; then
+ rm -rv
"opt/intel/oneapi/mkl/${PN_VER}"/share/{mkl/benchmarks,doc/mkl/examples} || die
+ fi
# Symlink pkgconfig and cmake files
pushd "${libroot}/pkgconfig" >/dev/null || die