diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-25 23:59:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-25 23:59:45 +0100 |
commit | 6243676c91946098c06d42bc87b5eb99aac40bf0 (patch) | |
tree | e6de308ba22148b4898b67b049c7f017ece8fea2 /sci-libs/beagle/beagle-3.0.3-r2.ebuild | |
parent | b987a550f067c3da93b0664cf1fdc8a624c0aa38 (diff) |
gentoo auto-resync : 25:04:2024 - 23:59:45
Diffstat (limited to 'sci-libs/beagle/beagle-3.0.3-r2.ebuild')
-rw-r--r-- | sci-libs/beagle/beagle-3.0.3-r2.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sci-libs/beagle/beagle-3.0.3-r2.ebuild b/sci-libs/beagle/beagle-3.0.3-r2.ebuild new file mode 100644 index 000000000000..72dde6ac1f03 --- /dev/null +++ b/sci-libs/beagle/beagle-3.0.3-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Open BEAGLE, a versatile EC/GA/GP framework" +HOMEPAGE="https://chgagne.github.io/beagle/" +SRC_URI="mirror://sourceforge/beagle/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples static-libs" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/doxygen )" + +PATCHES=( + "${FILESDIR}/${PN}-3.0.3-gcc43.patch" + "${FILESDIR}/${PN}-3.0.3-gcc47.patch" + "${FILESDIR}/${PN}-3.0.3-fix-c++14.patch" +) + +src_prepare() { + default + 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() { + econf \ + --enable-optimization \ + $(use_enable static-libs static) +} + +src_compile() { + default + use doc && emake doc +} + +src_install() { + use doc && local HTML_DOCS=( refman/. ) + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + default + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi +} |