public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/ceres-solver/
Date: Sat, 14 May 2022 21:30:37 +0000 (UTC)	[thread overview]
Message-ID: <1652563821.db08774d96d5eb0b797cf0199625d7275587f428.soap@gentoo> (raw)

commit:     db08774d96d5eb0b797cf0199625d7275587f428
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 21:30:21 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 14 21:30:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db08774d

sci-libs/ceres-solver: [QA] tc-has-openmp → tc-check-openmp

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

 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 4bd35e1b7fc8..67f410873961 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 8ed07b8f792e..66ffb261da7c 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 92fefb044a1a..fa2a76ca48ac 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
 }
 


             reply	other threads:[~2022-05-14 21:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-14 21:30 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-29 11:47 [gentoo-commits] repo/gentoo:master commit in: sci-libs/ceres-solver/ Sam James
2024-03-18 15:26 Andrew Ammerlaan
2024-03-10 15:51 Andrew Ammerlaan
2023-08-16 20:17 Michael Orlitzky
2023-02-23 13:41 Andrew Ammerlaan
2022-12-19 14:47 Andreas Sturmlechner
2022-09-26 15:05 Jakov Smolić
2022-08-19  8:14 Andreas Sturmlechner
2022-05-05  0:11 Sam James
2021-11-03 20:38 Jakov Smolić
2021-06-05 13:03 Andrew Ammerlaan
2021-06-05 13:03 Andrew Ammerlaan
2020-05-01 20:32 Andreas Sturmlechner
2020-04-20 10:16 Agostino Sarubbo
2020-04-09 21:37 Andreas Sturmlechner
2020-04-09 21:37 Andreas Sturmlechner
2020-03-22  0:32 Andreas Sturmlechner
2020-03-19 13:23 Andreas Sturmlechner
2020-03-19 13:23 Andreas Sturmlechner
2020-02-10 13:26 Michał Górny
2019-05-20 11:03 Mikle Kolyada
2017-01-22 10:21 Justin Lecher
2016-10-29 23:15 Mike Gilbert
2016-04-07 23:13 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1652563821.db08774d96d5eb0b797cf0199625d7275587f428.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox