From db08774d96d5eb0b797cf0199625d7275587f428 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 14 May 2022 23:30:21 +0200 Subject: [PATCH] =?UTF-8?q?sci-libs/ceres-solver:=20[QA]=20tc-has-openmp?= =?UTF-8?q?=20=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-libs/ceres-solver/ceres-solver-1.14.0.ebuild | 10 +++------- sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild | 10 +++------- sci-libs/ceres-solver/ceres-solver-2.1.0.ebuild | 8 ++------ 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild b/sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild index 4bd35e1b7fc85..67f4108739618 100644 --- a/sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild +++ b/sci-libs/ceres-solver/ceres-solver-1.14.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 @@ -48,15 +48,11 @@ DEPEND="${RDEPEND}" DOCS=( README.md VERSION ) pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then - if [[ $(tc-getCXX) == *g++* ]] && ! tc-has-openmp; then - ewarn "OpenMP is not available in your current selected gcc" - die "need openmp capable gcc" - fi - fi + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp use doc && python-any-r1_pkg_setup } diff --git a/sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild b/sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild index 8ed07b8f792ec..66ffb261da7c5 100644 --- a/sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild +++ b/sci-libs/ceres-solver/ceres-solver-2.0.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 @@ -48,15 +48,11 @@ DOCS=( README.md VERSION ) PATCHES=( "${FILESDIR}/${P}-system-mathjax.patch" ) pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then - if [[ $(tc-getCXX) == *g++* ]] && ! tc-has-openmp; then - ewarn "OpenMP is not available in your current selected gcc" - die "need openmp capable gcc" - fi - fi + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp use doc && python-any-r1_pkg_setup } diff --git a/sci-libs/ceres-solver/ceres-solver-2.1.0.ebuild b/sci-libs/ceres-solver/ceres-solver-2.1.0.ebuild index 92fefb044a1af..fa2a76ca48ac7 100644 --- a/sci-libs/ceres-solver/ceres-solver-2.1.0.ebuild +++ b/sci-libs/ceres-solver/ceres-solver-2.1.0.ebuild @@ -48,15 +48,11 @@ PATCHES=( ) pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then - if [[ $(tc-getCXX) == *g++* ]] && ! tc-has-openmp; then - ewarn "OpenMP is not available in your current selected gcc" - die "need openmp capable gcc" - fi - fi + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp use doc && python-any-r1_pkg_setup }