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-mathematics/slepc/
Date: Wed, 29 Apr 2020 21:35:52
Message-Id: 1588196140.1a6474734818a7b46ba495fc5742db3d3525a770.tamiko@gentoo
1 commit: 1a6474734818a7b46ba495fc5742db3d3525a770
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 21:15:26 2020 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 21:35:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a647473
7
8 sci-mathematics/slepc: version bump to 3.13.1; remove old
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 sci-mathematics/slepc/Manifest | 3 +-
14 sci-mathematics/slepc/slepc-3.12.1.ebuild | 75 ----------------------
15 .../{slepc-3.11.1.ebuild => slepc-3.13.1.ebuild} | 16 ++---
16 3 files changed, 6 insertions(+), 88 deletions(-)
17
18 diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest
19 index d23b2beb677..9beac5e4965 100644
20 --- a/sci-mathematics/slepc/Manifest
21 +++ b/sci-mathematics/slepc/Manifest
22 @@ -1,2 +1 @@
23 -DIST slepc-3.11.1.tar.gz 4700643 BLAKE2B a624050aad0128d7ef53f27f72484e078e62d8edf9298995dda71a9e8d804dddc7e433542eccf95b2d896be80e8795b1664375e68a4c02c18c56d78d490bffb7 SHA512 a941c2a955953ed2344de7f7d9eaaed79504c3559e27920c633bc09cfb192f883b26fd4aa5dc3bd9909a2fc045f3a34e514feca0e074ca36bc3166aa9c059235
24 -DIST slepc-3.12.1.tar.gz 4757436 BLAKE2B 607e7b28730ff16fa995768e23fd9861e180c078d2f06e8f65324b1e1761f0688fe5a4c4420983b521583cb2b3fe28b606baea604daf5253c30131f9f54c5572 SHA512 0254ea1a521cf150f9f0402bb936c9d1aa32765264e055ecdd058e44aaa7e87c3df1b63b1889c1989c4a691c652eb0f248a1bbbe6d555ce16f9f8f28d6765b50
25 +DIST slepc-3.13.1.tar.gz 4797627 BLAKE2B 29372b8a2d4c5f3b26e840df743f7aec098bfeeb29e9c108e509baa21d9697da19c737470ba4c132391d5193ebf749ef3f3c6ece600ec7527502d40a239aa0ee SHA512 620c344274808329c0a1009e7844532e03e88d38135bfd5b73bc0bc6815b17b6dfb49341d05399230ba6e06997db688aec17615429eaca3dc94fd886119bf321
26
27 diff --git a/sci-mathematics/slepc/slepc-3.12.1.ebuild b/sci-mathematics/slepc/slepc-3.12.1.ebuild
28 deleted file mode 100644
29 index 52212cabfd5..00000000000
30 --- a/sci-mathematics/slepc/slepc-3.12.1.ebuild
31 +++ /dev/null
32 @@ -1,75 +0,0 @@
33 -# Copyright 1999-2019 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PYTHON_COMPAT=( python2_7 )
39 -
40 -inherit eutils flag-o-matic python-any-r1 toolchain-funcs
41 -
42 -DESCRIPTION="Scalable Library for Eigenvalue Problem Computations"
43 -HOMEPAGE="http://slepc.upv.es/"
44 -SRC_URI="http://slepc.upv.es/download/distrib/${P}.tar.gz"
45 -
46 -LICENSE="LGPL-3"
47 -SLOT="0"
48 -KEYWORDS="~amd64 ~x86"
49 -IUSE="complex-scalars doc mpi"
50 -
51 -RDEPEND="
52 - =sci-mathematics/petsc-$(ver_cut 1-2)*:=[mpi=,complex-scalars=]
53 - sci-libs/arpack[mpi=]
54 - mpi? ( virtual/mpi )
55 -"
56 -
57 -DEPEND="${RDEPEND}
58 - ${PYTHON_DEPS}
59 - virtual/pkgconfig
60 - dev-util/cmake
61 -"
62 -
63 -MAKEOPTS="${MAKEOPTS} V=1"
64 -
65 -src_prepare() {
66 - default
67 -
68 - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die
69 -}
70 -
71 -src_configure() {
72 - # *sigh*
73 - addpredict "${PETSC_DIR}"/.nagged
74 -
75 - # Make sure that the environment is set up correctly:
76 - unset PETSC_DIR
77 - unset PETSC_ARCH
78 - unset SLEPC_DIR
79 - source "${EPREFIX}"/etc/env.d/99petsc
80 - export PETSC_DIR
81 -
82 - # configure is a custom python script and doesn't want to have default
83 - # configure arguments that we set with econf
84 - ./configure \
85 - --prefix="${EPREFIX}/usr/$(get_libdir)/slepc" \
86 - --with-arpack=1 \
87 - --with-arpack-dir="${EPREFIX}/usr/$(get_libdir)" \
88 - --with-arpack-flags="$(usex mpi "-lparpack,-larpack" "-larpack")"
89 -
90 -}
91 -
92 -src_install() {
93 - emake DESTDIR="${ED}" install
94 -
95 - # add PETSC_DIR to environmental variables
96 - cat >> 99slepc <<- EOF
97 - SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepc
98 - LDPATH=${EPREFIX}/usr/$(get_libdir)/slepc/lib
99 - EOF
100 - doenvd 99slepc
101 -
102 - if use doc ; then
103 - dodoc docs/slepc.pdf
104 - docinto html
105 - dodoc -r docs/*.html docs/manualpages
106 - fi
107 -}
108
109 diff --git a/sci-mathematics/slepc/slepc-3.11.1.ebuild b/sci-mathematics/slepc/slepc-3.13.1.ebuild
110 similarity index 84%
111 rename from sci-mathematics/slepc/slepc-3.11.1.ebuild
112 rename to sci-mathematics/slepc/slepc-3.13.1.ebuild
113 index 52212cabfd5..be2d085dd6c 100644
114 --- a/sci-mathematics/slepc/slepc-3.11.1.ebuild
115 +++ b/sci-mathematics/slepc/slepc-3.13.1.ebuild
116 @@ -1,9 +1,9 @@
117 -# Copyright 1999-2019 Gentoo Authors
118 +# Copyright 1999-2020 Gentoo Authors
119 # Distributed under the terms of the GNU General Public License v2
120
121 EAPI=7
122
123 -PYTHON_COMPAT=( python2_7 )
124 +PYTHON_COMPAT=( python3_{6,7,8} )
125
126 inherit eutils flag-o-matic python-any-r1 toolchain-funcs
127
128 @@ -30,12 +30,6 @@ DEPEND="${RDEPEND}
129
130 MAKEOPTS="${MAKEOPTS} V=1"
131
132 -src_prepare() {
133 - default
134 -
135 - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die
136 -}
137 -
138 src_configure() {
139 # *sigh*
140 addpredict "${PETSC_DIR}"/.nagged
141 @@ -43,9 +37,10 @@ src_configure() {
142 # Make sure that the environment is set up correctly:
143 unset PETSC_DIR
144 unset PETSC_ARCH
145 - unset SLEPC_DIR
146 source "${EPREFIX}"/etc/env.d/99petsc
147 export PETSC_DIR
148 + export PETSC_ARCH
149 + export SLEPC_DIR="${S}"
150
151 # configure is a custom python script and doesn't want to have default
152 # configure arguments that we set with econf
153 @@ -53,8 +48,7 @@ src_configure() {
154 --prefix="${EPREFIX}/usr/$(get_libdir)/slepc" \
155 --with-arpack=1 \
156 --with-arpack-dir="${EPREFIX}/usr/$(get_libdir)" \
157 - --with-arpack-flags="$(usex mpi "-lparpack,-larpack" "-larpack")"
158 -
159 + --with-arpack-lib="$(usex mpi "-lparpack,-larpack" "-larpack")"
160 }
161
162 src_install() {