From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D48631382C5 for ; Thu, 28 May 2020 17:09:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1960E0802; Thu, 28 May 2020 17:09:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BAF90E0802 for ; Thu, 28 May 2020 17:09:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5BDB634F0A4 for ; Thu, 28 May 2020 17:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9649726E for ; Thu, 28 May 2020 17:09:42 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1590685741.4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/mdds/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/mdds/mdds-1.6.0.ebuild dev-util/mdds/mdds-9999.ebuild X-VCS-Directories: dev-util/mdds/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4 X-VCS-Branch: master Date: Thu, 28 May 2020 17:09:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 375d8338-3895-45e1-86e0-d03b3e03714d X-Archives-Hash: 1715d7b774d5982e9cbaf6509eb64522 commit: 4bbf1ff07337fe4845c69be95b8b7a0b8cd04ab4 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu May 28 16:29:22 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu May 28 17:09:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbf1ff0 dev-util/mdds: Add IUSE=openmp Reported-by: Sebastian Hamann ares-macrotechnology.com> Closes: https://bugs.gentoo.org/725394 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-util/mdds/mdds-1.6.0.ebuild | 19 ++++++++++++++++--- 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 7fa68c62a5e..a8ee00cd56b 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 1bede682c2d..64e78d4d68f 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[@]}" }