dev-cpp/muParser: add missing openmp check

Closes: https://bugs.gentoo.org/875257
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
This commit is contained in:
Matthias Maier
2023-01-22 20:19:02 -06:00
parent f191cdee2c
commit 1fee59e8f3
2 changed files with 18 additions and 2 deletions
+9 -1
View File
@@ -3,7 +3,7 @@
EAPI=8
inherit cmake
inherit cmake toolchain-funcs
# The upstream tag is v2.3.3-1 instead of v2.3.3
suffix="-1"
@@ -21,6 +21,14 @@ RESTRICT="!test? ( test )"
S="${S}${suffix}"
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_configure() {
local mycmakeargs=(
-DENABLE_OPENMP=$(usex openmp)
+9 -1
View File
@@ -3,7 +3,7 @@
EAPI=8
inherit cmake
inherit cmake toolchain-funcs
DESCRIPTION="Library for parsing mathematical expressions"
HOMEPAGE="https://beltoforion.de/en/muparser/"
@@ -16,6 +16,14 @@ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-li
IUSE="doc openmp test"
RESTRICT="!test? ( test )"
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_configure() {
local mycmakeargs=(
-DENABLE_OPENMP=$(usex openmp)