summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/reduce/files/3.13.080428-LDFLAGS.patch4
-rw-r--r--sci-chemistry/reduce/files/reduce-3.16.111118-fix-c++14.patch14
-rw-r--r--sci-chemistry/reduce/reduce-3.16.111118.ebuild17
3 files changed, 24 insertions, 11 deletions
diff --git a/sci-chemistry/reduce/files/3.13.080428-LDFLAGS.patch b/sci-chemistry/reduce/files/3.13.080428-LDFLAGS.patch
index bcee1a9fe8f3..a615be088b24 100644
--- a/sci-chemistry/reduce/files/3.13.080428-LDFLAGS.patch
+++ b/sci-chemistry/reduce/files/3.13.080428-LDFLAGS.patch
@@ -1,5 +1,5 @@
---- reduce_src/Makefile 2009-08-09 10:11:29.000000000 +0200
-+++ reduce_src/Makefile.new 2009-08-09 10:13:31.000000000 +0200
+--- a/reduce_src/Makefile
++++ b/reduce_src/Makefile
@@ -34,7 +34,7 @@
all: reduce
diff --git a/sci-chemistry/reduce/files/reduce-3.16.111118-fix-c++14.patch b/sci-chemistry/reduce/files/reduce-3.16.111118-fix-c++14.patch
new file mode 100644
index 000000000000..5a45b7cef49c
--- /dev/null
+++ b/sci-chemistry/reduce/files/reduce-3.16.111118-fix-c++14.patch
@@ -0,0 +1,14 @@
+Fix building with C++14, which errors out due to an erroneous std::cerr.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594202
+
+--- a/reduce_src/GraphToHoldScores.cpp
++++ b/reduce_src/GraphToHoldScores.cpp
+@@ -1150,7 +1150,7 @@
+ }
+ }
+ std::cerr << "CRITICAL ERROR IN whichVertex(" << vertex_index << ") called on edge [" <<
+- std::cerr << vertex_indices_[ 0 ] << ", " << vertex_indices_[ 1 ] << "]" << std::endl;
++ vertex_indices_[ 0 ] << ", " << vertex_indices_[ 1 ] << "]" << std::endl;
+ assert(false);
+ exit(1);
+ return 0; // to avoid warnings
diff --git a/sci-chemistry/reduce/reduce-3.16.111118.ebuild b/sci-chemistry/reduce/reduce-3.16.111118.ebuild
index 6871341758b8..aba49a926d30 100644
--- a/sci-chemistry/reduce/reduce-3.16.111118.ebuild
+++ b/sci-chemistry/reduce/reduce-3.16.111118.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=4
+EAPI=6
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
MY_P="${PN}.${PV}.src"
@@ -22,12 +22,11 @@ DEPEND="${RDEPEND}
app-arch/unzip"
S="${WORKDIR}/"
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/3.13.080428-LDFLAGS.patch \
- "${FILESDIR}"/3.14.080821-CFLAGS.patch
-}
+PATCHES=(
+ "${FILESDIR}"/3.13.080428-LDFLAGS.patch
+ "${FILESDIR}"/3.14.080821-CFLAGS.patch
+ "${FILESDIR}"/${PN}-3.16.111118-fix-c++14.patch
+)
src_compile() {
DICT_DIR="/usr/share/reduce"