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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C5C141395E2 for ; Tue, 22 Nov 2016 19:35:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4FD44E0DA1; Tue, 22 Nov 2016 19:35:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 390CFE0DA1 for ; Tue, 22 Nov 2016 19:35:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 65CB2341134 for ; Tue, 22 Nov 2016 19:35:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC5754A7 for ; Tue, 22 Nov 2016 19:35:15 +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: <1479843239.5765d5ecff0fe767a6434d4e555965a65b5a87e3.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/fftw/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/fftw/fftw-2.1.5-r9.ebuild sci-libs/fftw/fftw-3.3.5-r2.ebuild X-VCS-Directories: sci-libs/fftw/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 5765d5ecff0fe767a6434d4e555965a65b5a87e3 X-VCS-Branch: master Date: Tue, 22 Nov 2016 19:35:15 +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-Archives-Salt: 2058a5dd-d17c-441d-8a62-002caf5d6239 X-Archives-Hash: 594aa1d97c0634447d65964a5de937dd commit: 5765d5ecff0fe767a6434d4e555965a65b5a87e3 Author: David Seifert gentoo org> AuthorDate: Tue Nov 22 19:33:05 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Tue Nov 22 19:33:59 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5765d5ec sci-libs/fftw: Use 'tc-check-openmp' for checking OpenMP support Package-Manager: portage-2.3.2 sci-libs/fftw/fftw-2.1.5-r9.ebuild | 15 +++++---------- sci-libs/fftw/fftw-3.3.5-r2.ebuild | 15 +++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/sci-libs/fftw/fftw-2.1.5-r9.ebuild b/sci-libs/fftw/fftw-2.1.5-r9.ebuild index bc142c7..496c5e5 100644 --- a/sci-libs/fftw/fftw-2.1.5-r9.ebuild +++ b/sci-libs/fftw/fftw-2.1.5-r9.ebuild @@ -29,18 +29,13 @@ PATCHES=( "${FILESDIR}"/${P}-texinfo5.1.patch ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + 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 + tc-check-openmp FORTRAN_NEED_OPENMP=1 fi diff --git a/sci-libs/fftw/fftw-3.3.5-r2.ebuild b/sci-libs/fftw/fftw-3.3.5-r2.ebuild index e577bdc..c9f3b9a 100644 --- a/sci-libs/fftw/fftw-3.3.5-r2.ebuild +++ b/sci-libs/fftw/fftw-3.3.5-r2.ebuild @@ -28,18 +28,13 @@ RDEPEND=" DEPEND="${RDEPEND} test? ( dev-lang/perl )" +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + 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 + tc-check-openmp FORTRAN_NEED_OPENMP=1 fi