summaryrefslogtreecommitdiff
path: root/dev-cpp/eigen
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2026-05-04 13:59:45 +0200
committerSam James <sam@gentoo.org>2026-05-29 07:14:33 +0100
commit51525dbb22987e18f1e326e22d5cd70be7943463 (patch)
tree221d1c2f573a9f98b53c8adff78d08969d74e30e /dev-cpp/eigen
parent8fe15a8644b057d72228826efc938c81392e1c0c (diff)
dev-cpp/eigen: drop openmp from test backends, add openmp check
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44994 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/eigen')
-rw-r--r--dev-cpp/eigen/eigen-3.4.9999.ebuild13
-rw-r--r--dev-cpp/eigen/eigen-9999.ebuild13
2 files changed, 22 insertions, 4 deletions
diff --git a/dev-cpp/eigen/eigen-3.4.9999.ebuild b/dev-cpp/eigen/eigen-3.4.9999.ebuild
index c507e8b7d33d..e3be80f5eab2 100644
--- a/dev-cpp/eigen/eigen-3.4.9999.ebuild
+++ b/dev-cpp/eigen/eigen-3.4.9999.ebuild
@@ -84,7 +84,6 @@ IUSE_TEST_BACKENDS=(
"fftw"
"klu"
"opengl"
- "openmp"
"pastix"
"sparsehash"
"spqr"
@@ -92,7 +91,7 @@ IUSE_TEST_BACKENDS=(
"umfpack"
)
-IUSE="${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector
+IUSE="${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax openmp test ${IUSE_TEST_BACKENDS[*]}" #zvector
REQUIRED_USE="
|| ( ${IUSE_TEST_BACKENDS[*]} )
@@ -200,7 +199,17 @@ cuda_set_CUDAHOSTCXX() {
export CUDAHOSTCXX
}
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+}
+
pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+
if use test && use cuda && use cuda-clang; then
llvm-r2_pkg_setup
fi
diff --git a/dev-cpp/eigen/eigen-9999.ebuild b/dev-cpp/eigen/eigen-9999.ebuild
index ef31ff4a4ba3..4fe62bd5626d 100644
--- a/dev-cpp/eigen/eigen-9999.ebuild
+++ b/dev-cpp/eigen/eigen-9999.ebuild
@@ -84,7 +84,6 @@ IUSE_TEST_BACKENDS=(
"fftw"
"klu"
"opengl"
- "openmp"
"pastix"
"sparsehash"
"spqr"
@@ -92,7 +91,7 @@ IUSE_TEST_BACKENDS=(
"umfpack"
)
-IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector
+IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax openmp test ${IUSE_TEST_BACKENDS[*]}" #zvector
REQUIRED_USE="
|| ( ${IUSE_TEST_BACKENDS[*]} )
@@ -197,7 +196,17 @@ cuda_set_CUDAHOSTCXX() {
export CUDAHOSTCXX
}
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+}
+
pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+
if use test && use cuda && use cuda-clang; then
llvm-r2_pkg_setup
fi