From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E466E158090 for ; Sat, 14 May 2022 21:30:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49F07E0967; Sat, 14 May 2022 21:30:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FF02E0967 for ; Sat, 14 May 2022 21:30:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 509EC341BA3 for ; Sat, 14 May 2022 21:30:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 870144B2 for ; Sat, 14 May 2022 21:30:37 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1652563821.db08774d96d5eb0b797cf0199625d7275587f428.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/ceres-solver/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild sci-libs/ceres-solver/ceres-solver-2.1.0.ebuild X-VCS-Directories: sci-libs/ceres-solver/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: db08774d96d5eb0b797cf0199625d7275587f428 X-VCS-Branch: master Date: Sat, 14 May 2022 21:30:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5eaa6ddc-4038-44f4-874a-1388c3d1f510 X-Archives-Hash: cfe53066976a0cfb2dabfea26b4faa6d commit: db08774d96d5eb0b797cf0199625d7275587f428 Author: David Seifert gentoo org> AuthorDate: Sat May 14 21:30:21 2022 +0000 Commit: David Seifert gentoo 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 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 }