---- 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
--- /dev/null
+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
-# 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"
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"