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 A11CB158090 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 34ABBE0969; Sat, 14 May 2022 21:30:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 1C7CEE0968 for ; Sat, 14 May 2022 21:30:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 4FE35341BA2 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 D203F4D4 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: <1652563825.d256fef3b17af38873642d5178a2582204cca728.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/lis/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/lis/lis-1.6.5.ebuild X-VCS-Directories: sci-libs/lis/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: d256fef3b17af38873642d5178a2582204cca728 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: c0c0bc65-54dd-4a17-867b-1b852bbbcd48 X-Archives-Hash: 52896c626ac179b38c6814aee64cd446 commit: d256fef3b17af38873642d5178a2582204cca728 Author: David Seifert gentoo org> AuthorDate: Sat May 14 21:30:25 2022 +0000 Commit: David Seifert gentoo org> CommitDate: Sat May 14 21:30:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d256fef3 sci-libs/lis: [QA] tc-has-openmp → tc-check-openmp Signed-off-by: David Seifert gentoo.org> sci-libs/lis/lis-1.6.5.ebuild | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/sci-libs/lis/lis-1.6.5.ebuild b/sci-libs/lis/lis-1.6.5.ebuild index 75c41a7dd9e8..27d638831af1 100644 --- a/sci-libs/lis/lis-1.6.5.ebuild +++ b/sci-libs/lis/lis-1.6.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -19,21 +19,12 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${PN}-1.6.2-autotools.patch ) -pkg_setup() { - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then - if ! tc-has-openmp; then - ewarn "OpenMP is not available in your current selected compiler" - - if tc-is-clang; then - ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp," - ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\"" - fi - - die "need openmp capable compiler" - fi - FORTRAN_NEED_OPENMP=1 - fi +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp && FORTRAN_NEED_OPENMP=1 use fortran && fortran-2_pkg_setup }