diff --git a/dev-cpp/eigen/eigen-3.4.9999.ebuild b/dev-cpp/eigen/eigen-3.4.9999.ebuild index c507e8b7d33d5..e3be80f5eab25 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 ef31ff4a4ba33..4fe62bd5626d4 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