diff options
author | David Seifert <soap@gentoo.org> | 2022-05-16 10:12:18 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-05-16 10:12:18 +0200 |
commit | dd5518231a248a49b1f552563dbcc0258c55bf78 (patch) | |
tree | 1fabb7f5b91c51078a86e54bc8c1787ace4b0836 /sci-libs/coinor-csdp | |
parent | sci-electronics/ngspice: [QA] use tc-check-openmp correctly (diff) | |
download | gentoo-dd5518231a248a49b1f552563dbcc0258c55bf78.tar.gz gentoo-dd5518231a248a49b1f552563dbcc0258c55bf78.tar.bz2 gentoo-dd5518231a248a49b1f552563dbcc0258c55bf78.zip |
sci-libs/coinor-csdp: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-libs/coinor-csdp')
-rw-r--r-- | sci-libs/coinor-csdp/coinor-csdp-6.2.0.ebuild | 10 |
1 files 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() { |