Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/scalapack/
Date: Thu, 30 Apr 2020 04:55:19
Message-Id: 1588222434.19089ede16991afb7044047e5848f21e0757d442.tamiko@gentoo
1 commit: 19089ede16991afb7044047e5848f21e0757d442
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 04:48:04 2020 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 04:53:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19089ede
7
8 sci-libs/scalapack: version bump to 2.1.0
9
10 Closes: https://bugs.gentoo.org/511150
11 Closes: https://bugs.gentoo.org/675636
12 Closes: https://bugs.gentoo.org/684750
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
15
16 sci-libs/scalapack/Manifest | 1 +
17 sci-libs/scalapack/scalapack-2.1.0.ebuild | 71 +++++++++++++++++++++++++++++++
18 2 files changed, 72 insertions(+)
19
20 diff --git a/sci-libs/scalapack/Manifest b/sci-libs/scalapack/Manifest
21 index 5a13f95440b..d30e37fd8aa 100644
22 --- a/sci-libs/scalapack/Manifest
23 +++ b/sci-libs/scalapack/Manifest
24 @@ -1 +1,2 @@
25 DIST scalapack-2.0.2.tgz 4779534 BLAKE2B c2aabd87bc8f7c0d9af31bd8ad8c933703dcbba399658d15c1e5256da2350c1a0feac2ca4a205f697b1c48083df89cbcd64ba432da036081c0f33d5d2acddc9b SHA512 92c71d3de0900955511c527ab3ca57ff69d6d9edc390e69f93ac3769d32ce83a714326bcb6218c8c74b8874be2fdc8aad5e42c912a12581e8d4ce8829ea39248
26 +DIST scalapack-2.1.0.tgz 5307441 BLAKE2B 4aea055fc3e437bce7108d1555e93c50109bcfe84354903fd711509eedbe686349fda4030e2fa70faf1a9e7e3255e46e48c32b96a2916af6812b8aebceb750c2 SHA512 0e77fb535ebcc28e2d97499ef4bd5161f76ca0ba4a3e308c26ce5071cfc4be4f3814262f3fb38f378ce0b5b31c0913432fea00a1e9e3f7717b853d1182bdf5b4
27
28 diff --git a/sci-libs/scalapack/scalapack-2.1.0.ebuild b/sci-libs/scalapack/scalapack-2.1.0.ebuild
29 new file mode 100644
30 index 00000000000..a1979a20ad6
31 --- /dev/null
32 +++ b/sci-libs/scalapack/scalapack-2.1.0.ebuild
33 @@ -0,0 +1,71 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit cmake-utils fortran-2 toolchain-funcs
40 +
41 +DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous (MPI) computing"
42 +HOMEPAGE="https://www.netlib.org/scalapack/"
43 +SRC_URI="https://www.netlib.org/scalapack/${P}.tgz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="static-libs test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + virtual/lapack
53 + virtual/mpi"
54 +DEPEND="${RDEPEND}
55 + virtual/pkgconfig"
56 +
57 +PATCHES=(
58 +)
59 +
60 +src_prepare() {
61 + cmake-utils_src_prepare
62 +
63 + if use static-libs; then
64 + mkdir "${WORKDIR}/${PN}_static" || die
65 + fi
66 + # mpi does not have a pc file
67 + sed -i -e 's/mpi//' scalapack.pc.in || die
68 +}
69 +
70 +src_configure() {
71 + scalapack_configure() {
72 + local mycmakeargs=(
73 + -DUSE_OPTIMIZED_LAPACK_BLAS=ON
74 + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
75 + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)"
76 + -DBUILD_TESTING=$(usex test)
77 + $@
78 + )
79 + cmake-utils_src_configure
80 + }
81 +
82 + scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
83 + use static-libs && \
84 + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \
85 + -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
86 +}
87 +
88 +src_compile() {
89 + cmake-utils_src_compile
90 + use static-libs && \
91 + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile
92 +}
93 +
94 +src_install() {
95 + cmake-utils_src_install
96 + use static-libs && \
97 + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install
98 +
99 + insinto /usr/include/blacs
100 + doins BLACS/SRC/*.h
101 +
102 + insinto /usr/include/scalapack
103 + doins PBLAS/SRC/*.h
104 +}