From d9cf87e1b4adc489c3ff548787979fa8abbcf87a Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 14 May 2022 23:30:20 +0200 Subject: [PATCH] =?UTF-8?q?sci-chemistry/tinker:=20[QA]=20tc-has-openmp=20?= =?UTF-8?q?=E2=86=92=20tc-check-openmp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Seifert --- sci-chemistry/tinker/tinker-8.2.1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sci-chemistry/tinker/tinker-8.2.1.ebuild b/sci-chemistry/tinker/tinker-8.2.1.ebuild index bef87a09bfaa0..a54f1ecb210d0 100644 --- a/sci-chemistry/tinker/tinker-8.2.1.ebuild +++ b/sci-chemistry/tinker/tinker-8.2.1.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=6 @@ -31,10 +31,15 @@ RESTRICT="mirror" S="${WORKDIR}"/${PN}/source +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp +} + pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp + fortran-2_pkg_setup java-pkg-opt-2_pkg_setup - tc-has-openmp || die "Please use an openmp capable compiler like gcc[openmp]" } src_prepare() {