diff options
author | 2020-04-01 19:59:53 -0400 | |
---|---|---|
committer | 2020-04-03 12:03:48 -0400 | |
commit | 8db3670e7902795f2ae61d64b1930a946e5b2efc (patch) | |
tree | 9ed43f004d1f357b9d9579d24eaa8ba643dca05b /sci-libs/fflas-ffpack/fflas-ffpack-2.4.3.ebuild | |
parent | profiles/desc/cpu_flags_x86.desc: add avx512dq and avx512vl. (diff) | |
download | gentoo-8db3670e7902795f2ae61d64b1930a946e5b2efc.tar.gz gentoo-8db3670e7902795f2ae61d64b1930a946e5b2efc.tar.bz2 gentoo-8db3670e7902795f2ae61d64b1930a946e5b2efc.zip |
sci-libs/fflas-ffpack: new package for finite-field linear algebra.
This is a straightforward import of the latest fflas-ffpack-2.4.3.ebuild
that François Bissey has been maintaining in the sage-on-gentoo overlay,
with only a few minor changes:
* I added a "+" to the LICENSE to match the upstream LGPL-2.1+.
* I switched the openmp check to use tc-check-openmp() conditionally
on the MERGE_TYPE variable.
* Added BDEPEND="virtual/pkgconfig" since we patch in a call to
PKG_CHECK_MODULES.
I also removed a warning about build failures with USE=openmp. From what
I can tell, this stems from an older report (upstream Github issue 48)
using gcc-4.9.x that was never fully debugged. If the problems persist,
we can revisit that report, or just mask the flag.
Closes: https://bugs.gentoo.org/show_bug.cgi?id=715678
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-libs/fflas-ffpack/fflas-ffpack-2.4.3.ebuild')
-rw-r--r-- | sci-libs/fflas-ffpack/fflas-ffpack-2.4.3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sci-libs/fflas-ffpack/fflas-ffpack-2.4.3.ebuild b/sci-libs/fflas-ffpack/fflas-ffpack-2.4.3.ebuild new file mode 100644 index 000000000000..4115dc61acec --- /dev/null +++ b/sci-libs/fflas-ffpack/fflas-ffpack-2.4.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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/${PV}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="static-libs openmp cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_x86_avx512dq cpu_flags_x86_avx512vl" + +# 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.1*" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${PN}-2.3.2-blaslapack.patch" ) + +pkg_pretend() { + [[ "${MERGE_TYPE}" != "binary" ]] && use openmp && tc-check-openmp +} + +pkg_setup(){ + tc-export PKG_CONFIG +} + +src_prepare(){ + default + eautoreconf +} + +src_configure() { + econf \ + --enable-precompilation \ + $(use_enable openmp) \ + $(use_enable cpu_flags_x86_fma3 fma) \ + $(use_enable cpu_flags_x86_fma4 fma4) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_ssse3 ssse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) \ + $(use_enable cpu_flags_x86_sse4_2 sse42) \ + $(use_enable cpu_flags_x86_avx avx) \ + $(use_enable cpu_flags_x86_avx2 avx2) \ + $(use_enable cpu_flags_x86_avx512f avx512f) \ + $(use_enable cpu_flags_x86_avx512dq avx512dq) \ + $(use_enable cpu_flags_x86_avx512vl avx512vl) \ + $(use_enable static-libs static) +} + +src_install(){ + default + find "${ED}" -name '*.la' -delete || die +} |