commit:     245c3a3bb2b6bcd1e8a047f5a13d0d9fd3c7ce19
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 08:12:14 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May 16 08:12:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=245c3a3b

sci-chemistry/openbabel: [QA] use tc-check-openmp correctly

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-chemistry/openbabel/openbabel-3.1.1_p20210225.ebuild | 6 +++++-
 sci-chemistry/openbabel/openbabel-9999.ebuild            | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/sci-chemistry/openbabel/openbabel-3.1.1_p20210225.ebuild 
b/sci-chemistry/openbabel/openbabel-3.1.1_p20210225.ebuild
index 97dfa6e9a236..61a6ad498b66 100644
--- a/sci-chemistry/openbabel/openbabel-3.1.1_p20210225.ebuild
+++ b/sci-chemistry/openbabel/openbabel-3.1.1_p20210225.ebuild
@@ -80,8 +80,12 @@ RDEPEND="
        )
 "
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 prepare_python_bindings() {

diff --git a/sci-chemistry/openbabel/openbabel-9999.ebuild 
b/sci-chemistry/openbabel/openbabel-9999.ebuild
index 2c73801d2362..956b061aed0f 100644
--- a/sci-chemistry/openbabel/openbabel-9999.ebuild
+++ b/sci-chemistry/openbabel/openbabel-9999.ebuild
@@ -80,8 +80,12 @@ RDEPEND="
        )
 "
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 prepare_python_bindings() {

Reply via email to