public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/flann/
Date: Fri, 21 Apr 2017 21:34:09 +0000 (UTC)	[thread overview]
Message-ID: <1492810440.da0ccdb61002b260e0c2a8acf67b1646fc072ab0.soap@gentoo> (raw)

commit:     da0ccdb61002b260e0c2a8acf67b1646fc072ab0
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 21 21:33:13 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Apr 21 21:34:00 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da0ccdb6

sci-libs/flann: Force C++11

Bug: https://bugs.gentoo.org/show_bug.cgi?id=614552
Package-Manager: Portage-2.3.5, Repoman-2.3.2

 sci-libs/flann/flann-1.9.1.ebuild | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/sci-libs/flann/flann-1.9.1.ebuild b/sci-libs/flann/flann-1.9.1.ebuild
index a625b8cdeed..cc7583379a9 100644
--- a/sci-libs/flann/flann-1.9.1.ebuild
+++ b/sci-libs/flann/flann-1.9.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit cmake-utils cuda toolchain-funcs
+inherit cmake-utils cuda flag-o-matic toolchain-funcs
 
 DESCRIPTION="Fast approximate nearest neighbor searches in high dimensional spaces"
 HOMEPAGE="http://www.cs.ubc.ca/research/flann/"
@@ -29,13 +29,12 @@ DEPEND="${RDEPEND}
 # readd dependencies for test suite,
 # requires multiple ruby dependencies
 
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-	if use openmp; then
-		if [[ $(tc-getCC) == *gcc ]] && ! 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
 }
 
 src_prepare() {
@@ -56,6 +55,8 @@ src_prepare() {
 }
 
 src_configure() {
+	append-cxxflags -std=c++11
+
 	# python bindings are split
 	# off into dev-python/pyflann
 	local mycmakeargs=(


             reply	other threads:[~2017-04-21 21:34 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-21 21:34 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-10 22:43 [gentoo-commits] repo/gentoo:master commit in: sci-libs/flann/ Sam James
2025-03-10  8:23 Sam James
2025-01-06  1:00 Sam James
2024-04-23 20:37 Sam James
2022-12-19 14:47 Andreas Sturmlechner
2022-12-18 11:29 Sam James
2022-12-18 11:01 Sam James
2022-02-18  3:07 Sam James
2021-12-26  3:08 Sam James
2021-11-07 15:41 Andreas Sturmlechner
2020-05-23 10:53 Andreas Sturmlechner
2020-05-23 10:53 Andreas Sturmlechner
2019-05-20 17:22 Aaron Bauman
2019-05-19 21:42 Andreas Sturmlechner
2019-05-19 21:19 Andreas Sturmlechner
2019-05-13  1:41 Thomas Deutschmann
2019-02-17 12:39 Andreas Sturmlechner
2018-07-09  1:29 Thomas Deutschmann
2018-06-24 13:09 Jason Zaman
2018-06-06 14:55 Andreas Sturmlechner
2018-06-06 14:55 Andreas Sturmlechner
2018-02-06 18:05 Amy Liffey
2017-01-15 18:58 Andreas Hüttel
2016-09-15 21:26 David Seifert
2016-01-07 19:25 Justin Lecher
2016-01-07 19:25 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1492810440.da0ccdb61002b260e0c2a8acf67b1646fc072ab0.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox