From 0771aa27d30f102abe2c5733a138ffe570da4d15 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Feb 2024 23:34:33 +0000 Subject: gentoo auto-resync : 10:02:2024 - 23:34:33 --- sci-libs/fflas-ffpack/Manifest | 3 + sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild | 55 ++++++++++++++++ .../files/fflas-ffpack-2.5.0-blaslapack.patch | 75 ++++++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 sci-libs/fflas-ffpack/fflas-ffpack-2.5.0.ebuild create mode 100644 sci-libs/fflas-ffpack/files/fflas-ffpack-2.5.0-blaslapack.patch (limited to 'sci-libs/fflas-ffpack') diff --git a/sci-libs/fflas-ffpack/Manifest b/sci-libs/fflas-ffpack/Manifest index 96d2ddb28804..ccc7fbc7b04c 100644 --- a/sci-libs/fflas-ffpack/Manifest +++ b/sci-libs/fflas-ffpack/Manifest @@ -4,6 +4,9 @@ AUX fflas-ffpack-2.4.3-fix-pc-libdir.patch 586 BLAKE2B 030fab1e53b4584816ccd8961 AUX fflas-ffpack-2.4.3-no-fabi-version.patch 1170 BLAKE2B 90e9c080291251d4a5231c3857385791a5c24c00ee2327192fd1c5dcb1a169ad97fa50d21124f054737dd6a1dd1c5c10377865b5b144b31eed728dedc89ea001 SHA512 8d6b3c9bd6637f1c3bf43ce722e96bd9e48b0e271cec1fb4ae72ab2e99ac7b436626385dd2e39781959248506c19474ac062c8ced2c63db80553150f8e7a0287 AUX fflas-ffpack-2.4.3-no-test-echelon.patch 1374 BLAKE2B f62631e7e4e358584a826fb5ec3e9f36b892b5f0636c965677c55a97901ffefe3ad47dea79c46d65bb3090668e335d4f7cfc04cd12bc2b72f1c3c7db45833108 SHA512 9c9ee6e7df7d04fcc5ffc84cd3a2dae08e960540371671cc79c4eb99606bc1fd150a6e0ad96f16a51904ff83fabe69bdc9bfc6e9603855fe21acea535fc31dc1 AUX fflas-ffpack-2.4.3-no-test-fgesv.patch 1268 BLAKE2B 51c0cf74dac9b296a944e918475807e97a2cf71f066cda9c067b63b344e260b9fbb9ea2851db7ac2170e2b239c0778be0c9a99e0efbbbb9215df921197208784 SHA512 9a57cba58a6bab69092c4d335d92994651bb51d2f4e867d4f0396813e14f492d720232779615299b5203603bb76553ec8a4881ffb9677c349f22c0ef3975df0d +AUX fflas-ffpack-2.5.0-blaslapack.patch 2009 BLAKE2B d6a6e8cbc3b57578efae7638f3a3bd62b233047f83f1c40ea5b5aab08b7f0f372cec1c7f769ca03c21270c9d7380622131d166d6fcef921941fc320c88cbb81f SHA512 cb584bd58a712bd28b95a99ee489fd0fcd1e349559d96498372674e6b86f6e699bcbc7a1db806a53bd6aff4358899754f0fead8b8b9d1414256f9dce15c6e81d DIST fflas-ffpack-2.4.3.tar.gz 1059033 BLAKE2B e416429bb426a81cf9c25d54c83380ff9a9d658c711da06e6359d968843d4d9d26cf8389379f9ad4a5cbcee93e0afc9fe0497bb7a8f190e0c72c0b1f7b67de18 SHA512 c7620ba5a92e4114a581a6bea32267f9d5a9f0eb7e23fc0a7a97ce4b8124bb7b29f89ff2ad6ad270d97c76489625b57a354e581905b74ee57b35f4ca3e196a44 +DIST fflas-ffpack-2.5.0.tar.gz 1098354 BLAKE2B 34b0cd218e83a71c6540b1768c8231246a0dc360eb7e2353a923b5870d228e702291de14b0dc3e7c5055727fbd62e2bc1bd1d2ac432dd99df978a1edb513bfc0 SHA512 6753022f27d354160f5eb436c713002f61d24e9a942f2463e36bf324b19ec096f34dd9cacb8529ba566f245f88fa303dcfb448a40d0c39d340f7c337cd1788a4 EBUILD fflas-ffpack-2.4.3-r3.ebuild 2228 BLAKE2B fbb0b1ad23f85a77ed93175a1c8d8d9426a2c931e6fe935a33117291a77d0d20c2773e7d286f944796f222c5234ddb60be21d6aa61c20f9d97995e18fe05fd09 SHA512 6a0eb0437c2cdbcc064c71487edf8d7a8ea3c79e8eca641c428b2412d9480300ab736414b9cb2d870239d17b4edfaaa17d60afabadb412b255995c658e9115f5 +EBUILD fflas-ffpack-2.5.0.ebuild 1172 BLAKE2B eb93081fce63399c2f477b8232d5c2a7620de993b870f85d2e889f8e603e4e1a8fcdba86f4d8df9df5d1e9673621e7722b5284c20c34ed3b1d32e9d50b99d158 SHA512 d39232686a5dd71b6b19e5f8706bba8f6cf0e18342d0ef98431739fc1744801511a58d2a3f6bfaf72b7517bf7e3da626920f37f96c12b6f7fe69770c562a00c6 MISC metadata.xml 1492 BLAKE2B 46a6b13fb1bae6f2aa43a9d7a96c7882d4d7de4b885a4ac92f320f72ce3076ad820c4c5f75c0f2d60334801d2764c20524ea26c1cc6c9975be13e00906708927 SHA512 fc6d90e2945f67a32594f601df69952baec0821d1e529a03c8dc332723848ca531f747efe7c30ea00885c4c4a081cdb81c0ea05085e7ca3acd7db304bb4f468b 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 +} diff --git a/sci-libs/fflas-ffpack/files/fflas-ffpack-2.5.0-blaslapack.patch b/sci-libs/fflas-ffpack/files/fflas-ffpack-2.5.0-blaslapack.patch new file mode 100644 index 000000000000..609aa034438d --- /dev/null +++ b/sci-libs/fflas-ffpack/files/fflas-ffpack-2.5.0-blaslapack.patch @@ -0,0 +1,75 @@ +From 8e350d3f47a1785eb4eea83dee43c596d6399459 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Sat, 10 Feb 2024 07:30:37 -0500 +Subject: [PATCH] configure.ac,fflas-ffpack-config.in: use pkg-config to check + for blas + +Patching configure.ac for this is ugly, but in this case it is +actually the simplest way to get sane behavior out of the blas/lapack +check. +--- + configure.ac | 29 ++++++++++++++++++----------- + fflas-ffpack-config.in | 4 ++-- + 2 files changed, 20 insertions(+), 13 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 5390bcf..2f5fc46 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -133,17 +133,24 @@ FF_CHECK_GIVARO_USABILITY() + + AS_ECHO([---------------------------------------]) + +-BLAS_FOUND=false +- +-FF_CHECK_BLAS_CFLAGS +-FF_CHECK_BLAS_LIBS +-FF_CHECK_MKL +-FF_CHECK_USER_BLAS +-FF_CHECK_USER_LAPACK +- +-FF_OPENBLAS_NUM_THREADS +- +-# FF_CHECK_CUDA ++PKG_PROG_PKG_CONFIG ++ ++PKG_CHECK_MODULES([BLAS], [cblas blas],[ ++ AC_DEFINE(HAVE_BLAS,1,[Define if BLAS is installed]) ++ AC_DEFINE(HAVE_CBLAS,1,[Define if C interface to BLAS is installed]) ++ HAVE_BLAS=yes ++ BLAS_PATH="" ++ CBLAS_LIBS="${BLAS_LIBS}" ++ AC_SUBST(BLAS_LIBS) ++ AC_SUBST(CBLAS_LIBS) ++ AC_SUBST(BLAS_CFLAGS) ++ AC_SUBST(BLAS_PATH)]) ++ ++PKG_CHECK_MODULES([LAPACK], [lapack],[ ++ AC_DEFINE(HAVE_LAPACK,1,[Define if LAPACK is installed]) ++ AC_SUBST(LAPACK_LIBS)]) ++ ++AM_CONDITIONAL(FFLASFFPACK_HAVE_LAPACK, test "x$HAVE_LAPACK" == "x1") + + AS_ECHO([---------------------------------------]) + +diff --git a/fflas-ffpack-config.in b/fflas-ffpack-config.in +index 3e2f53f..e227ce0 100644 +--- a/fflas-ffpack-config.in ++++ b/fflas-ffpack-config.in +@@ -106,11 +106,11 @@ while test $# -gt 0; do + ;; + + --libs) +- echo @PARLIBS@ @PRECOMPILE_LIBS@ @BLAS_LIBS@ @GIVARO_LIBS@ ++ echo @PARLIBS@ @PRECOMPILE_LIBS@ @LAPACK_LIBS@ @BLAS_LIBS@ @GIVARO_LIBS@ + ;; + + --blas-libs) +- echo @BLAS_LIBS@ ++ echo @LAPACK_LIBS@ @BLAS_LIBS@ + ;; + + *) +-- +2.43.0 + -- cgit v1.2.3