diff options
Diffstat (limited to 'sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild')
-rw-r--r-- | sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild b/sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild new file mode 100644 index 000000000000..dda1212a776f --- /dev/null +++ b/sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="Library for dense linear algebra over word-size finite fields" +HOMEPAGE="https://linbox-team.github.io/fflas-ffpack/" +SRC_URI="https://github.com/linbox-team/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="openmp" + +# Our autotools patch hacks in PKG_CHECK_MODULES calls. +BDEPEND="virtual/pkgconfig" +DEPEND="virtual/cblas + virtual/blas + virtual/lapack + dev-libs/gmp[cxx(+)] + =sci-libs/givaro-4.2*" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2.5.0-blaslapack.patch" + "${FILESDIR}/${PN}-2.4.3-no-test-echelon.patch" +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + tc-export PKG_CONFIG + + econf \ + --enable-precompilation \ + $(use_enable openmp) +} + +src_install() { + default + find "${ED}" -type f -name '*.la' -delete || die +} |