summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-06-01 10:24:46 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-06-01 10:24:46 +0000
commited7972910312985fdcde260f1d5c41b25fbeb1a1 (patch)
tree810695267f456b96b4701bfce14d14fbfa2b723d /sci-libs
parentfix #219673 (diff)
downloadgentoo-2-ed7972910312985fdcde260f1d5c41b25fbeb1a1.tar.gz
gentoo-2-ed7972910312985fdcde260f1d5c41b25fbeb1a1.tar.bz2
gentoo-2-ed7972910312985fdcde260f1d5c41b25fbeb1a1.zip
Added gcc-4.3 compatibility patch.
(Portage version: 2.1.5.2)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/minuit/ChangeLog6
-rw-r--r--sci-libs/minuit/files/minuit-5.16.00-gcc4.3.patch20
-rw-r--r--sci-libs/minuit/minuit-5.16.00.ebuild11
3 files changed, 35 insertions, 2 deletions
diff --git a/sci-libs/minuit/ChangeLog b/sci-libs/minuit/ChangeLog
index 9359a6f6362a..d7fed290ec9e 100644
--- a/sci-libs/minuit/ChangeLog
+++ b/sci-libs/minuit/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-libs/minuit
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v 1.5 2008/05/17 10:15:01 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/ChangeLog,v 1.6 2008/06/01 10:24:45 markusle Exp $
+
+ 01 Jun 2008; Markus Dittrich <markusle@gentoo.org>
+ +files/minuit-5.16.00-gcc4.3.patch, minuit-5.16.00.ebuild:
+ Added gcc-4.3 compatibility patch.
17 May 2008; Sébastien Fabbro <bicatali@gentoo.org>
minuit-5.16.00.ebuild:
diff --git a/sci-libs/minuit/files/minuit-5.16.00-gcc4.3.patch b/sci-libs/minuit/files/minuit-5.16.00-gcc4.3.patch
new file mode 100644
index 000000000000..e7b63574e248
--- /dev/null
+++ b/sci-libs/minuit/files/minuit-5.16.00-gcc4.3.patch
@@ -0,0 +1,20 @@
+diff -Naur Minuit2-5.16.00/src/MnUserTransformation.cxx Minuit2-5.16.00.new/src/MnUserTransformation.cxx
+--- Minuit2-5.16.00/src/MnUserTransformation.cxx 2006-07-05 12:04:25.000000000 -0400
++++ Minuit2-5.16.00.new/src/MnUserTransformation.cxx 2008-06-01 06:15:23.000000000 -0400
+@@ -10,6 +10,7 @@
+ #include "Minuit2/MnUserTransformation.h"
+ #include "Minuit2/MnUserCovariance.h"
+
++#include <cstdio>
+ #include <algorithm>
+
+ namespace ROOT {
+@@ -47,7 +48,7 @@
+ p[0] = 'p';
+ p[4] = '\0';
+ for(unsigned int i = 0; i < par.size(); i++) {
+- std::sprintf(p+1,"%i",i);
++ sprintf(p+1,"%i",i);
+ Add(p, par[i], err[i]);
+ }
+ }
diff --git a/sci-libs/minuit/minuit-5.16.00.ebuild b/sci-libs/minuit/minuit-5.16.00.ebuild
index 569b16a4e87c..5d7e5c328916 100644
--- a/sci-libs/minuit/minuit-5.16.00.ebuild
+++ b/sci-libs/minuit/minuit-5.16.00.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/minuit-5.16.00.ebuild,v 1.3 2008/05/17 10:15:01 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/minuit/minuit-5.16.00.ebuild,v 1.4 2008/06/01 10:24:45 markusle Exp $
+
+inherit eutils
MY_PN=Minuit2
@@ -20,6 +22,13 @@ RDEPEND=""
S="${WORKDIR}/${MY_PN}-${PV}"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc4.3.patch
+}
+
+
src_compile() {
econf || die "econf failed"
emake || die "emake failed"