From c6a718d53dd720ee8c681e7a5f87e7d340c379dc Mon Sep 17 00:00:00 2001 From: David Seifert Date: Mon, 16 May 2022 10:12:28 +0200 Subject: sci-visualization/paraview: [QA] use tc-check-openmp correctly Closes: https://github.com/gentoo/gentoo/pull/25500 Signed-off-by: David Seifert --- sci-visualization/paraview/paraview-5.9.0.ebuild | 8 ++++++-- sci-visualization/paraview/paraview-5.9.1.ebuild | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'sci-visualization/paraview') diff --git a/sci-visualization/paraview/paraview-5.9.0.ebuild b/sci-visualization/paraview/paraview-5.9.0.ebuild index ce3f2c9d4d44..f3ceac1728a1 100644 --- a/sci-visualization/paraview/paraview-5.9.0.ebuild +++ b/sci-visualization/paraview/paraview-5.9.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=7 @@ -108,8 +108,12 @@ PATCHES=( "${FILESDIR}"/${PN}-5.9.0-gcc11-include.patch ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { - [[ ${MERGE_TYPE} != "binary" ]] && use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp use python && python-single-r1_pkg_setup PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV} } diff --git a/sci-visualization/paraview/paraview-5.9.1.ebuild b/sci-visualization/paraview/paraview-5.9.1.ebuild index ce3f2c9d4d44..f3ceac1728a1 100644 --- a/sci-visualization/paraview/paraview-5.9.1.ebuild +++ b/sci-visualization/paraview/paraview-5.9.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=7 @@ -108,8 +108,12 @@ PATCHES=( "${FILESDIR}"/${PN}-5.9.0-gcc11-include.patch ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { - [[ ${MERGE_TYPE} != "binary" ]] && use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp use python && python-single-r1_pkg_setup PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV} } -- cgit v1.2.3-65-gdbad