commit: dd5518231a248a49b1f552563dbcc0258c55bf78
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 08:12:18 2022 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May 16 08:12:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd551823
sci-libs/coinor-csdp: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sci-libs/coinor-csdp/coinor-csdp-6.2.0.ebuild | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/sci-libs/coinor-csdp/coinor-csdp-6.2.0.ebuild
b/sci-libs/coinor-csdp/coinor-csdp-6.2.0.ebuild
index a00b0d8e16f1..89c14acd5dff 100644
--- a/sci-libs/coinor-csdp/coinor-csdp-6.2.0.ebuild
+++ b/sci-libs/coinor-csdp/coinor-csdp-6.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -60,10 +60,12 @@ static_to_shared() {
fi
}
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- use openmp && tc-check-openmp
- fi
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_prepare() {