commit: 36e59ad6e56c8fa91ce92d72ae8d61d71b04437b Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Thu Apr 25 20:00:21 2024 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Apr 25 20:00:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36e59ad6
sci-libs/beagle: EAPI=8, cleanup, fix C++17 Closes: https://bugs.gentoo.org/898274 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> ...eagle-3.0.3-r1.ebuild => beagle-3.0.3-r2.ebuild} | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/sci-libs/beagle/beagle-3.0.3-r1.ebuild b/sci-libs/beagle/beagle-3.0.3-r2.ebuild similarity index 76% rename from sci-libs/beagle/beagle-3.0.3-r1.ebuild rename to sci-libs/beagle/beagle-3.0.3-r2.ebuild index 1061e0012dc8..72dde6ac1f03 100644 --- a/sci-libs/beagle/beagle-3.0.3-r1.ebuild +++ b/sci-libs/beagle/beagle-3.0.3-r2.ebuild @@ -1,23 +1,20 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework" -SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz" HOMEPAGE="https://chgagne.github.io/beagle/" +SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz" -SLOT="0" LICENSE="LGPL-2.1" +SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples static-libs" -RDEPEND=" - sys-libs/zlib - !app-misc/beagle - !dev-libs/libbeagle" -DEPEND="${RDEPEND} - doc? ( app-text/doxygen )" +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/doxygen )" PATCHES=( "${FILESDIR}/${PN}-3.0.3-gcc43.patch" @@ -27,8 +24,10 @@ PATCHES=( src_prepare() { default - sed -e "s:@LIBS@:@LIBS@ -lpthread:" \ - -i PACC/Threading/Makefile.in || die + sed -e "s:@LIBS@:& -lpthread:" -i PACC/Threading/Makefile.in || die + + # fix build with C++17, bug #898274 + sed -e "s/register //" -i PACC/Util/{MTRand.hpp,Tokenizer.cpp} || die } src_configure() {
