sci-biology/prank: Allow for compiling with GCC 6
authorDavid Seifert <soap@gentoo.org>
Tue, 20 Sep 2016 18:52:11 +0000 (20:52 +0200)
committerDavid Seifert <soap@gentoo.org>
Tue, 20 Sep 2016 21:05:59 +0000 (23:05 +0200)
Gentoo-bug: 594060
* EAPI=6

Package-Manager: portage-2.3.1

sci-biology/prank/files/prank-140603-fix-c++14.patch [new file with mode: 0644]
sci-biology/prank/prank-140603.ebuild

diff --git a/sci-biology/prank/files/prank-140603-fix-c++14.patch b/sci-biology/prank/files/prank-140603-fix-c++14.patch
new file mode 100644 (file)
index 0000000..5779207
--- /dev/null
@@ -0,0 +1,14 @@
+Fix building with C++14, which errors out due to changing operator void* -> operator bool.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594060
+
+--- a/hmmodel.cpp
++++ b/hmmodel.cpp
+@@ -1499,7 +1499,7 @@
+     }
+     else
+     {
+-        cout<<"HMModel::alignmentModel: impossible 'as'"<<cout;
++        cout<<"HMModel::alignmentModel: impossible 'as'"<<bool(cout);
+         exit(-1);
+     }
+ 
index a18b7ab9d553e07161e619599399b270dfa916ad..ca22fff7e491b6d14dbd29e5938229badfd3a0a0 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 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 multilib toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Probabilistic Alignment Kit"
 HOMEPAGE="http://wasabiapp.org/software/prank/"
@@ -16,12 +16,14 @@ IUSE=""
 KEYWORDS="~amd64 ~x86"
 
 S="${WORKDIR}/${PN}-msa/src"
+PATCHES=( "${FILESDIR}/${PN}-140603-fix-c++14.patch" )
 
 src_prepare() {
        sed \
                -e "s/\$(LINK)/& \$(LDFLAGS)/" \
                -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \
                -i Makefile || die
+       default
 }
 
 src_compile() {