commit: 25e5a98a39581c4c7c2b5c9f29b429baee0462b5 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Tue Sep 20 18:52:11 2016 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Tue Sep 20 21:05:59 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e5a98a
sci-biology/prank: Allow for compiling with GCC 6 Gentoo-bug: 594060 * EAPI=6 Package-Manager: portage-2.3.1 sci-biology/prank/files/prank-140603-fix-c++14.patch | 14 ++++++++++++++ sci-biology/prank/prank-140603.ebuild | 8 +++++--- 2 files changed, 19 insertions(+), 3 deletions(-) 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 index 00000000..5779207 --- /dev/null +++ b/sci-biology/prank/files/prank-140603-fix-c++14.patch @@ -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); + } + diff --git a/sci-biology/prank/prank-140603.ebuild b/sci-biology/prank/prank-140603.ebuild index a18b7ab..ca22fff 100644 --- a/sci-biology/prank/prank-140603.ebuild +++ b/sci-biology/prank/prank-140603.ebuild @@ -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() {
