diff options
Diffstat (limited to 'sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild')
-rw-r--r-- | sci-libs/ceres-solver/ceres-solver-2.0.0.ebuild | 10 |
1 files changed, 3 insertions, 7 deletions
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 } |