Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/superlu/
Date: Mon, 04 Oct 2021 19:33:31
Message-Id: 1633375998.f86064edba7fd88e5f9b6fa6aec9e52aaf5b0639.jsmolic@gentoo
1 commit: f86064edba7fd88e5f9b6fa6aec9e52aaf5b0639
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 4 19:14:17 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 19:33:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f86064ed
7
8 sci-libs/superlu: add 5.3.0
9
10 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
11
12 sci-libs/superlu/Manifest | 1 +
13 sci-libs/superlu/superlu-5.3.0.ebuild | 55 +++++++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/sci-libs/superlu/Manifest b/sci-libs/superlu/Manifest
17 index 3f0630c28ea..53cf5f7f2fb 100644
18 --- a/sci-libs/superlu/Manifest
19 +++ b/sci-libs/superlu/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST superlu-5.3.0.tar.gz 2483070 BLAKE2B 2e877c12b698fae6649d3146d4a22a8c701df813d1fa037b7707081229de09e102660e75dd32138264ad9e01e5b3e820012106cd2b0d46cc2a1c37dc5eaafec2 SHA512 1461b52bc18a8b0345beb70fdd46e07df497a13be840bcc061158ea1d0e61c8745806d1ad21cb2723db80f5ed762c3741f9c0ded2b2013df46da0e8bb6b77b83
22 DIST superlu_4.3.tar.gz 2876631 BLAKE2B 0a563e6730394f8e69fe13f1418f9f046bd37c848c51063e93a24a209e50a67f91b725eb3978fd6c4d28e51615806d6c0b6a2539cbc0d7fd11b5e4f0a9360148 SHA512 5c13da47b79160be14719f62ccdf5d59142a172e25a988fa340eaeb001a64d7f45ba39e675cb7aa3571bec52cb3a7cda0bb7a708c9608184ba6251edb7990e8c
23 DIST superlu_5.2.2.tar.gz 2481538 BLAKE2B db9d6437c8012f1aeeb3313212298a77e4ef04405c6ec853ceeef8b80426ea80d8b9fc30a0ca2dd7288131a0e21c43e17cafafaa7fb615d6d825b54f4beb84a2 SHA512 091928a3df3433b337ebdacdb28de341d6d29d655965de6ffd656a6de18cf11171555bfd3af73082af62b1cead6835b4c11e4ba524a32db7f7d28db47c9d490c
24
25 diff --git a/sci-libs/superlu/superlu-5.3.0.ebuild b/sci-libs/superlu/superlu-5.3.0.ebuild
26 new file mode 100644
27 index 00000000000..e9e68e0bab5
28 --- /dev/null
29 +++ b/sci-libs/superlu/superlu-5.3.0.ebuild
30 @@ -0,0 +1,55 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +FORTRAN_STANDARD=77
37 +
38 +inherit cmake fortran-2
39 +
40 +DESCRIPTION="Sparse LU factorization library"
41 +HOMEPAGE="https://crd-legacy.lbl.gov/~xiaoye/SuperLU/"
42 +SRC_URI="https://github.com/xiaoyeli/superlu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0/$(ver_cut 1)"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="doc examples test"
48 +RESTRICT="!test? ( test )"
49 +
50 +BDEPEND="
51 + virtual/pkgconfig
52 + test? ( app-shells/tcsh )
53 +"
54 +RDEPEND="virtual/blas"
55 +DEPEND="${RDEPEND}"
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/${PN}-5.2.2-no-internal-blas.patch
59 +)
60 +
61 +src_prepare() {
62 + cmake_src_prepare
63 + # respect user's CFLAGS
64 + sed -i -e 's/O3//' CMakeLists.txt || die
65 +}
66 +
67 +src_configure() {
68 + local mycmakeargs+=(
69 + -DCMAKE_INSTALL_INCLUDEDIR="include/superlu"
70 + -DBUILD_SHARED_LIBS=ON
71 + -Denable_internal_blaslib=OFF
72 + -Denable_tests=$(usex test)
73 + )
74 + cmake_src_configure
75 +}
76 +
77 +src_install() {
78 + cmake_src_install
79 + use doc && dodoc -r DOC/html
80 + if use examples; then
81 + docinto examples
82 + dodoc -r EXAMPLE FORTRAN
83 + docompress -x /usr/share/doc/${PF}/examples
84 + fi
85 +}