1 |
commit: 9572a71e446e8199dfcec3cd14f7138dc5da501e |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 15 21:43:57 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 15 22:07:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9572a71e |
7 |
|
8 |
sci-libs/scalapack: EAPI-6 bump |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sci-libs/scalapack/scalapack-2.0.2-r1.ebuild | 67 ++++++++++++++++++++++++++++ |
14 |
1 file changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/scalapack/scalapack-2.0.2-r1.ebuild b/sci-libs/scalapack/scalapack-2.0.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..f520036f536 |
19 |
--- /dev/null |
20 |
+++ b/sci-libs/scalapack/scalapack-2.0.2-r1.ebuild |
21 |
@@ -0,0 +1,67 @@ |
22 |
+# Copyright 1999-2018 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit cmake-utils fortran-2 |
28 |
+ |
29 |
+DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous (MPI) computing" |
30 |
+HOMEPAGE="https://www.netlib.org/scalapack/" |
31 |
+SRC_URI="${HOMEPAGE}/${P}.tgz" |
32 |
+ |
33 |
+LICENSE="BSD" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
36 |
+IUSE="static-libs test" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ virtual/lapack |
40 |
+ virtual/mpi" |
41 |
+DEPEND="${RDEPEND} |
42 |
+ virtual/pkgconfig" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ cmake-utils_src_prepare |
46 |
+ |
47 |
+ if use static-libs; then |
48 |
+ mkdir "${WORKDIR}/${PN}_static" || die |
49 |
+ fi |
50 |
+ # mpi does not have a pc file |
51 |
+ sed -i -e 's/mpi//' scalapack.pc.in || die |
52 |
+} |
53 |
+ |
54 |
+src_configure() { |
55 |
+ scalapack_configure() { |
56 |
+ local mycmakeargs=( |
57 |
+ -DUSE_OPTIMIZED_LAPACK_BLAS=ON |
58 |
+ -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" |
59 |
+ -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" |
60 |
+ -DBUILD_TESTING=$(usex test) |
61 |
+ $@ |
62 |
+ ) |
63 |
+ cmake-utils_src_configure |
64 |
+ } |
65 |
+ |
66 |
+ scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF |
67 |
+ use static-libs && \ |
68 |
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \ |
69 |
+ -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ cmake-utils_src_compile |
74 |
+ use static-libs && \ |
75 |
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ cmake-utils_src_install |
80 |
+ use static-libs && \ |
81 |
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install |
82 |
+ |
83 |
+ insinto /usr/include/blacs |
84 |
+ doins BLACS/SRC/*.h |
85 |
+ |
86 |
+ insinto /usr/include/scalapack |
87 |
+ doins PBLAS/SRC/*.h |
88 |
+} |