sci-libs/fftw: Use 'tc-check-openmp' for checking OpenMP support

Package-Manager: portage-2.3.2
This commit is contained in:
David Seifert
2016-11-22 20:33:05 +01:00
parent 5f8823e5c6
commit 5765d5ecff
2 changed files with 10 additions and 20 deletions

View File

@@ -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

View File

@@ -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