commit:     d6ba5ddd7e3bd93c103af9f03a81d9a8cc0b9714
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 24 19:48:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 19:48:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ba5ddd

sci-libs/superlu: add 7.0.1

Closes: https://bugs.gentoo.org/943867
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/superlu/Manifest             |  1 +
 sci-libs/superlu/superlu-7.0.1.ebuild | 55 +++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/sci-libs/superlu/Manifest b/sci-libs/superlu/Manifest
index b70359d59397..1c484cffb04b 100644
--- a/sci-libs/superlu/Manifest
+++ b/sci-libs/superlu/Manifest
@@ -1,3 +1,4 @@
 DIST superlu-5.3.0.tar.gz 2483070 BLAKE2B 
2e877c12b698fae6649d3146d4a22a8c701df813d1fa037b7707081229de09e102660e75dd32138264ad9e01e5b3e820012106cd2b0d46cc2a1c37dc5eaafec2
 SHA512 
1461b52bc18a8b0345beb70fdd46e07df497a13be840bcc061158ea1d0e61c8745806d1ad21cb2723db80f5ed762c3741f9c0ded2b2013df46da0e8bb6b77b83
+DIST superlu-7.0.1.tar.gz 2512312 BLAKE2B 
b8d593f243905bfae38051012846e092ec7a3a5b190571e32c52dce1d1ea3f86ef09d05840681278cc66df1f6aa3fbd411e231e7032f7db06ec5111113334f2e
 SHA512 
1825cf6ac37b68043ade790d182628233b82692cf3b84a2f217e0db34383995d0281ac73d7fe0392f24c43a540d4ea869fc5b46984709107d39888a37b70938d
 DIST superlu_4.3.new.tar.gz 2875951 BLAKE2B 
4208edb7df0babc0bb7e21077c6e0a00a10766a2d01b2da47f05ecdb232ca3309a2bce00f2cd1b709a8c01b7de2276e4f7d63856ace2e93c3598f1cdcdc12712
 SHA512 
57799051c5cd394e4cb1b89481a4706ee0a21159f06941bab4a39dfe30f4b6ccdf67042c6ec2c479a12deee0ed26c3707069a5b53281fb26b6c752ca77102aad
 DIST superlu_4.3.tar.gz 2876631 BLAKE2B 
0a563e6730394f8e69fe13f1418f9f046bd37c848c51063e93a24a209e50a67f91b725eb3978fd6c4d28e51615806d6c0b6a2539cbc0d7fd11b5e4f0a9360148
 SHA512 
5c13da47b79160be14719f62ccdf5d59142a172e25a988fa340eaeb001a64d7f45ba39e675cb7aa3571bec52cb3a7cda0bb7a708c9608184ba6251edb7990e8c

diff --git a/sci-libs/superlu/superlu-7.0.1.ebuild 
b/sci-libs/superlu/superlu-7.0.1.ebuild
new file mode 100644
index 000000000000..ee7ea7f24b20
--- /dev/null
+++ b/sci-libs/superlu/superlu-7.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_STANDARD=77
+
+inherit cmake fortran-2
+
+DESCRIPTION="Sparse LU factorization library"
+HOMEPAGE="https://portal.nersc.gov/project/sparse/superlu/";
+SRC_URI="https://github.com/xiaoyeli/superlu/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc 
~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       virtual/pkgconfig
+       test? ( app-shells/tcsh )
+"
+RDEPEND="virtual/blas"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-5.2.2-no-internal-blas.patch
+)
+
+src_prepare() {
+       cmake_src_prepare
+       # respect user's CFLAGS
+       sed -i -e 's/O3//' CMakeLists.txt || die
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_INCLUDEDIR="include/superlu"
+               -DBUILD_SHARED_LIBS=ON
+               -Denable_internal_blaslib=OFF
+               -Denable_tests=$(usex test)
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       use doc && dodoc -r DOC/html
+       if use examples; then
+               docinto examples
+               dodoc -r EXAMPLE FORTRAN
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}

Reply via email to