summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-12-08 17:16:13 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-12-08 17:16:13 +0000
commit01955f0ed4baf6266c4a4d23e51375b68d6bca21 (patch)
treea0255996fd5bee5ddb5bb1452d4fa592b5abc2f6 /sci-physics/cernlib
parentMarking pybugz-0.8.0 ppc64 for bug 289863 (diff)
downloadgentoo-2-01955f0ed4baf6266c4a4d23e51375b68d6bca21.tar.gz
gentoo-2-01955f0ed4baf6266c4a4d23e51375b68d6bca21.tar.bz2
gentoo-2-01955f0ed4baf6266c4a4d23e51375b68d6bca21.zip
Respect user's compiler commands, thanks to jer, bug #296058
(Portage version: 2.2_rc55/cvs/Linux x86_64)
Diffstat (limited to 'sci-physics/cernlib')
-rw-r--r--sci-physics/cernlib/ChangeLog6
-rw-r--r--sci-physics/cernlib/cernlib-2006-r3.ebuild5
2 files changed, 9 insertions, 2 deletions
diff --git a/sci-physics/cernlib/ChangeLog b/sci-physics/cernlib/ChangeLog
index bfcfe789612b..764518e1552a 100644
--- a/sci-physics/cernlib/ChangeLog
+++ b/sci-physics/cernlib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-physics/cernlib
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib/ChangeLog,v 1.19 2009/12/04 19:35:03 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib/ChangeLog,v 1.20 2009/12/08 17:16:13 bicatali Exp $
+
+ 08 Dec 2009; Sébastien Fabbro <bicatali@gentoo.org>
+ cernlib-2006-r3.ebuild:
+ Respect user's compiler commands, thanks to jer, bug #296058
04 Dec 2009; Sébastien Fabbro <bicatali@gentoo.org>
cernlib-2006-r3.ebuild:
diff --git a/sci-physics/cernlib/cernlib-2006-r3.ebuild b/sci-physics/cernlib/cernlib-2006-r3.ebuild
index c018149943dd..1cdd1bd003d4 100644
--- a/sci-physics/cernlib/cernlib-2006-r3.ebuild
+++ b/sci-physics/cernlib/cernlib-2006-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib/cernlib-2006-r3.ebuild,v 1.5 2009/12/04 19:35:03 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib/cernlib-2006-r3.ebuild,v 1.6 2009/12/08 17:16:13 bicatali Exp $
EAPI=2
inherit eutils toolchain-funcs
@@ -68,6 +68,9 @@ src_prepare() {
sed -i \
-e 's/-O3/-O2/g' \
-e "s/-O2/${CFLAGS}/g" \
+ -e "s|\(CcCmd[[:space:]]*\)gcc|\1$(tc-getCC)|g" \
+ -e "s|\(CplusplusCmd[[:space:]]*\)g++|\1$(tc-getCXX)|g" \
+ -e "s|\(FortranCmd[[:space:]]*\)gfortran|\1$(tc-getFC)|g" \
src/config/linux.cf \
|| die "sed linux.cf failed"
sed -i \