commit: 604b345462a36923de0c410e4734cf2508e1e070
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 08:12:07 2022 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May 16 08:12:07 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=604b3454
dev-cpp/kokkos: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap <AT> gentoo.org>
dev-cpp/kokkos/kokkos-3.1.01-r1.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dev-cpp/kokkos/kokkos-3.1.01-r1.ebuild
b/dev-cpp/kokkos/kokkos-3.1.01-r1.ebuild
index bc59929572fe..eaa8cf4e4ec1 100644
--- a/dev-cpp/kokkos/kokkos-3.1.01-r1.ebuild
+++ b/dev-cpp/kokkos/kokkos-3.1.01-r1.ebuild
@@ -18,6 +18,10 @@ RESTRICT="!test? ( test )"
DEPEND="sys-apps/hwloc:="
RDEPEND="${DEPEND}"
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}