sci-libs/fftw: Don't check for openmp toolchain when installing a binpkg.
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 22 Jul 2016 00:18:51 +0000 (02:18 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 22 Jul 2016 00:21:56 +0000 (02:21 +0200)
Package-Manager: portage-2.3.0
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sci-libs/fftw/fftw-3.3.4.ebuild
sci-libs/fftw/fftw-9999.ebuild

index c0e4b6f4a207d34721f4aeb18ad0fafaf08ffbd5..a1e5ebf30b328a720538461eae693a650ff3826f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -33,8 +33,7 @@ DEPEND="${RDEPEND}
        test? ( dev-lang/perl )"
 
 pkg_setup() {
-       # XXX: this looks like it should be used with BUILD_TYPE!=binary
-       if use openmp; then
+       if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
                if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
                        ewarn "OpenMP is not available in your current selected gcc"
                        die "need openmp capable gcc"
index 1b2fc028af04fde2c08b6740d98b5619dc827e02..ec07ce4c95d3bd47a104f1b464e8b6d2733a5ad2 100644 (file)
@@ -38,9 +38,7 @@ MULTILIB_WRAPPED_HEADERS=(
 )
 
 pkg_setup() {
-       # XXX: this looks like it should be used with BUILD_TYPE!=binary
-
-       if use openmp; then
+       if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
                if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
                        ewarn "OpenMP is not available in your current selected gcc"
                        die "need openmp capable gcc"