From 50a0ba02a508197e0fbe2a7cc18f45fb91d998b0 Mon Sep 17 00:00:00 2001 From: Kacper Kowalik Date: Wed, 2 Jun 2010 13:14:01 +0000 Subject: Use tc-has-openmp rather than built_with_use (Portage version: 2.2_rc67/cvs/Linux x86_64) --- sci-libs/minuit/ChangeLog | 5 ++++- sci-libs/minuit/minuit-5.27.02.ebuild | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sci-libs') diff --git a/sci-libs/minuit/ChangeLog b/sci-libs/minuit/ChangeLog index 32a1919f190b..a2c6151205a7 100644 --- a/sci-libs/minuit/ChangeLog +++ b/sci-libs/minuit/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sci-libs/minuit # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v 1.12 2010/06/02 09:51:02 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v 1.13 2010/06/02 13:14:01 xarthisius Exp $ + + 02 Jun 2010; Kacper Kowalik minuit-5.27.02.ebuild: + Use tc-has-openmp rather than built_with_use 02 Jun 2010; Kacper Kowalik minuit-5.27.02.ebuild, +files/minuit-5.27.02-asneeded.patch: diff --git a/sci-libs/minuit/minuit-5.27.02.ebuild b/sci-libs/minuit/minuit-5.27.02.ebuild index 2b362aab4d04..6b77fb7bdc3c 100644 --- a/sci-libs/minuit/minuit-5.27.02.ebuild +++ b/sci-libs/minuit/minuit-5.27.02.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/minuit-5.27.02.ebuild,v 1.2 2010/06/02 09:51:02 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/minuit-5.27.02.ebuild,v 1.3 2010/06/02 13:14:01 xarthisius Exp $ EAPI=2 inherit autotools eutils toolchain-funcs @@ -24,8 +24,7 @@ RDEPEND="" S="${WORKDIR}/${MY_PN}-${PV}" pkg_setup() { - if use openmp && [[ $(tc-getCXX)$ == *g++* ]] && \ - ! built_with_use sys-devel/gcc openmp; then + if use openmp && ! tc-has-openmp; then ewarn "You are using gcc built without openmp" ewarn "Switch CXX to an OpenMP capable compiler" die "Need openmp" -- cgit v1.2.3-65-gdbad