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

sci-mathematics/gretl: [QA] use tc-check-openmp correctly

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

 sci-mathematics/gretl/gretl-2021d.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sci-mathematics/gretl/gretl-2021d.ebuild 
b/sci-mathematics/gretl/gretl-2021d.ebuild
index dcc6aca2cfbe..957d8f5cb180 100644
--- a/sci-mathematics/gretl/gretl-2021d.ebuild
+++ b/sci-mathematics/gretl/gretl-2021d.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
@@ -54,9 +54,11 @@ PATCHES=(
 DOCS=( README ChangeLog CompatLog )
 
 pkg_pretend() {
-       if [[ ${MERGE_TYPE} != binary ]]; then
-               use openmp && tc-check-openmp
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_configure() {

Reply via email to