diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-05-28 18:29:22 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-05-28 19:09:01 +0200 |
commit | 4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4 (patch) | |
tree | 15a324efd0fe2a4c2d91d30179e8da1d36d04e7e /dev-util/mdds | |
parent | app-text/libnumbertext: Drop 1.0.5 (r0) (diff) | |
download | gentoo-4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4.tar.gz gentoo-4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4.tar.bz2 gentoo-4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4.zip |
dev-util/mdds: Add IUSE=openmp
Reported-by: Sebastian Hamann <gentoo-bugs@ares-macrotechnology.com>
Closes: https://bugs.gentoo.org/725394
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-util/mdds')
-rw-r--r-- | dev-util/mdds/mdds-1.6.0.ebuild | 19 | ||||
-rw-r--r-- | dev-util/mdds/mdds-9999.ebuild | 16 |
2 files changed, 30 insertions, 5 deletions
diff --git a/dev-util/mdds/mdds-1.6.0.ebuild b/dev-util/mdds/mdds-1.6.0.ebuild index 7fa68c62a5ee..a8ee00cd56bf 100644 --- a/dev-util/mdds/mdds-1.6.0.ebuild +++ b/dev-util/mdds/mdds-1.6.0.ebuild @@ -16,8 +16,8 @@ DESCRIPTION="A collection of multi-dimensional data structure and indexing algor HOMEPAGE="https://gitlab.com/mdds/mdds" LICENSE="MIT" -SLOT="1/1.5" -IUSE="doc valgrind test" +SLOT="1/1.5" # Check API version on version bumps! +IUSE="doc openmp valgrind test" RESTRICT="!test? ( test )" BDEPEND=" @@ -32,9 +32,16 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-1.5.0-buildsystem.patch" ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + src_prepare() { default - eautoreconf } @@ -43,6 +50,12 @@ src_configure() { $(use_enable doc docs) $(use_enable valgrind memory_tests) ) + if use openmp && tc-has-openmp; then + myeconfargs+=( --enable-openmp ) + else + myeconfargs+=( --disable-openmp ) + fi + econf "${myeconfargs[@]}" } diff --git a/dev-util/mdds/mdds-9999.ebuild b/dev-util/mdds/mdds-9999.ebuild index 1bede682c2d9..64e78d4d68f9 100644 --- a/dev-util/mdds/mdds-9999.ebuild +++ b/dev-util/mdds/mdds-9999.ebuild @@ -17,7 +17,7 @@ HOMEPAGE="https://gitlab.com/mdds/mdds" LICENSE="MIT" SLOT="1/${PV%.*}" # Check API version on version bumps! -IUSE="doc valgrind test" +IUSE="doc openmp valgrind test" RESTRICT="!test? ( test )" BDEPEND=" @@ -32,9 +32,16 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-1.5.0-buildsystem.patch" ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + src_prepare() { default - eautoreconf } @@ -43,6 +50,11 @@ src_configure() { $(use_enable doc docs) $(use_enable valgrind memory_tests) ) + if use openmp && tc-has-openmp; then + myeconfargs+=( --enable-openmp ) + else + myeconfargs+=( --disable-openmp ) + fi econf "${myeconfargs[@]}" } |