sci-physics/thepeg: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Sun, 15 Oct 2017 05:03:09 +0000 (01:03 -0400)
committerGuilherme Amadio <amadio@gentoo.org>
Mon, 16 Oct 2017 09:44:54 +0000 (11:44 +0200)
Bug: https://bugs.gentoo.org/599564
Package-Manager: Portage-2.3.10, Repoman-2.3.3

sci-physics/thepeg/files/thepeg-2.0.4-gcc6.patch [new file with mode: 0644]
sci-physics/thepeg/thepeg-2.0.4.ebuild

diff --git a/sci-physics/thepeg/files/thepeg-2.0.4-gcc6.patch b/sci-physics/thepeg/files/thepeg-2.0.4-gcc6.patch
new file mode 100644 (file)
index 0000000..ed3bdac
--- /dev/null
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/599564
+
+--- a/Utilities/UnitIO.h
++++ b/Utilities/UnitIO.h
+@@ -25,6 +25,9 @@
+ namespace ThePEG {
++using std::isnan;
++using std::isinf;
++
+ /**
+  * The OUnit< class is used to
+  * facilitate output of unitful numbers to a
index 84e48567e16a6e46da34ffbfe15b273d12e9762f..6cea3900306d3e2dea408d462197b30c9959aa50 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -37,7 +37,10 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${MY_P}"
 
-PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.8.3-java.patch
+       "${FILESDIR}"/${PN}-2.0.4-gcc6.patch
+)
 
 src_prepare() {
        find -name 'Makefile.am' -exec \