1 |
commit: eda33279083369e2c6a48e53f40f11dc5707a5d8 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 00:06:23 2022 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 01:26:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eda33279 |
7 |
|
8 |
sci-mathematics/slepc: add 3.17.1 |
9 |
|
10 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
11 |
|
12 |
sci-mathematics/slepc/Manifest | 1 + |
13 |
sci-mathematics/slepc/slepc-3.17.1.ebuild | 68 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest |
17 |
index fad6e5f3c24b..cf9e24f3d0a5 100644 |
18 |
--- a/sci-mathematics/slepc/Manifest |
19 |
+++ b/sci-mathematics/slepc/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST slepc-3.13.1.tar.gz 4797627 BLAKE2B 29372b8a2d4c5f3b26e840df743f7aec098bfee |
21 |
DIST slepc-3.14.2.tar.gz 4865497 BLAKE2B d6fd0b45368383fad03b17f9d7f0ef26215b7459a5566c62ab2ad758eaa5fbc626be255b0aafa29b8830eb649a7bcfb0f36d383b865b4c1baa9de6037638de84 SHA512 0727a4f1672c4eb3cf0aa20aa408b897425539ac69123001ac3b2e0bc2d1fa230ef028fa0cd5e89e7a86a98884164fd1c97a742f90f0c128fcc7066d032ee321 |
22 |
DIST slepc-3.15.0.tar.gz 5191730 BLAKE2B 2fcdfbe25f59a80390478059ef0a8b066ac39b57e99fe65ab4fe4814507fdc78d1feb245df5f7542f08c151d20f2e2a6168c4bc2624f78ab5058627816bb6696 SHA512 f815f0805db3f3e329324778c172ba301ebb5d2fc8f8f4c5dd17e574a2cbed5c0f8015715bc908dfcbd4050fade8dab7ae3b312bae746c41d84c57bc5d101929 |
23 |
DIST slepc-3.16.0.tar.gz 5486237 BLAKE2B 28f45036ba7e6aa2b227c6f25e2c8edf7fc6914f3150043a7e310f270d24e669f32172897b558687c33a809c484e314a865296d4879a622d85004d329ec3bd1c SHA512 15ba9e4626fe3cf44142448b77869fa6d313bb7c026736d5552dfbab1ce350c2e2f2379fb647a1c236af8cb95895e4442dca1defa741a5b2b9172cbdf0baf75f |
24 |
+DIST slepc-3.17.1.tar.gz 5450177 BLAKE2B ec4f597085a176a010797d599779cc4532e52996105bb76f755073876ebb81026c580cb5759a03bda58cb2de2767b1dcdb01ff0d946f218117edb2a7a6557414 SHA512 5429aa7516ec0b2fee8158f9317634faf1c963aa60237be81a0392d5f2fa9f531db59b4a9ad04e266d808befdbd71b5a30259b4abc639a1da2defffd74acd35b |
25 |
|
26 |
diff --git a/sci-mathematics/slepc/slepc-3.17.1.ebuild b/sci-mathematics/slepc/slepc-3.17.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..8aa85eac9d58 |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/slepc/slepc-3.17.1.ebuild |
31 |
@@ -0,0 +1,68 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit flag-o-matic python-any-r1 toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Scalable Library for Eigenvalue Problem Computations" |
42 |
+HOMEPAGE="https://slepc.upv.es/" |
43 |
+SRC_URI="https://slepc.upv.es/download/distrib/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="LGPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="complex-scalars doc mpi" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ =sci-mathematics/petsc-$(ver_cut 1-2)*:=[mpi=,complex-scalars=] |
52 |
+ sci-libs/arpack[mpi=] |
53 |
+ mpi? ( virtual/mpi ) |
54 |
+" |
55 |
+ |
56 |
+DEPEND="${RDEPEND} |
57 |
+ ${PYTHON_DEPS} |
58 |
+ virtual/pkgconfig |
59 |
+ dev-util/cmake |
60 |
+" |
61 |
+ |
62 |
+MAKEOPTS="${MAKEOPTS} V=1" |
63 |
+ |
64 |
+src_configure() { |
65 |
+ # *sigh* |
66 |
+ addpredict "${PETSC_DIR}"/.nagged |
67 |
+ |
68 |
+ # Make sure that the environment is set up correctly: |
69 |
+ unset PETSC_DIR |
70 |
+ unset PETSC_ARCH |
71 |
+ source "${EPREFIX}"/etc/env.d/99petsc |
72 |
+ export PETSC_DIR |
73 |
+ export PETSC_ARCH |
74 |
+ export SLEPC_DIR="${S}" |
75 |
+ |
76 |
+ # configure is a custom python script and doesn't want to have default |
77 |
+ # configure arguments that we set with econf |
78 |
+ ./configure \ |
79 |
+ --prefix="${EPREFIX}/usr/$(get_libdir)/slepc" \ |
80 |
+ --with-arpack=1 \ |
81 |
+ --with-arpack-lib="$(usex mpi "-lparpack,-larpack" "-larpack")" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ emake DESTDIR="${ED}" install |
86 |
+ |
87 |
+ # add PETSC_DIR to environmental variables |
88 |
+ cat >> 99slepc <<- EOF |
89 |
+ SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepc |
90 |
+ LDPATH=${EPREFIX}/usr/$(get_libdir)/slepc/lib |
91 |
+ EOF |
92 |
+ doenvd 99slepc |
93 |
+ |
94 |
+ if use doc ; then |
95 |
+ dodoc docs/slepc.pdf |
96 |
+ docinto html |
97 |
+ dodoc -r docs/*.html docs/manualpages |
98 |
+ fi |
99 |
+} |