diff options
author | Matthias Maier <tamiko@gentoo.org> | 2020-04-29 16:15:26 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2020-04-29 16:35:40 -0500 |
commit | 1a6474734818a7b46ba495fc5742db3d3525a770 (patch) | |
tree | 2ab4777313488a1a58cfd41d876109a76ea2020a /sci-mathematics/slepc/slepc-3.13.1.ebuild | |
parent | sci-mathematics/petsc: drop old (diff) | |
download | gentoo-1a6474734818a7b46ba495fc5742db3d3525a770.tar.gz gentoo-1a6474734818a7b46ba495fc5742db3d3525a770.tar.bz2 gentoo-1a6474734818a7b46ba495fc5742db3d3525a770.zip |
sci-mathematics/slepc: version bump to 3.13.1; remove old
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-mathematics/slepc/slepc-3.13.1.ebuild')
-rw-r--r-- | sci-mathematics/slepc/slepc-3.13.1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sci-mathematics/slepc/slepc-3.13.1.ebuild b/sci-mathematics/slepc/slepc-3.13.1.ebuild new file mode 100644 index 000000000000..be2d085dd6cb --- /dev/null +++ b/sci-mathematics/slepc/slepc-3.13.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit eutils flag-o-matic python-any-r1 toolchain-funcs + +DESCRIPTION="Scalable Library for Eigenvalue Problem Computations" +HOMEPAGE="http://slepc.upv.es/" +SRC_URI="http://slepc.upv.es/download/distrib/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="complex-scalars doc mpi" + +RDEPEND=" + =sci-mathematics/petsc-$(ver_cut 1-2)*:=[mpi=,complex-scalars=] + sci-libs/arpack[mpi=] + mpi? ( virtual/mpi ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" + +MAKEOPTS="${MAKEOPTS} V=1" + +src_configure() { + # *sigh* + addpredict "${PETSC_DIR}"/.nagged + + # Make sure that the environment is set up correctly: + unset PETSC_DIR + unset PETSC_ARCH + source "${EPREFIX}"/etc/env.d/99petsc + export PETSC_DIR + export PETSC_ARCH + export SLEPC_DIR="${S}" + + # configure is a custom python script and doesn't want to have default + # configure arguments that we set with econf + ./configure \ + --prefix="${EPREFIX}/usr/$(get_libdir)/slepc" \ + --with-arpack=1 \ + --with-arpack-dir="${EPREFIX}/usr/$(get_libdir)" \ + --with-arpack-lib="$(usex mpi "-lparpack,-larpack" "-larpack")" +} + +src_install() { + emake DESTDIR="${ED}" install + + # add PETSC_DIR to environmental variables + cat >> 99slepc <<- EOF + SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepc + LDPATH=${EPREFIX}/usr/$(get_libdir)/slepc/lib + EOF + doenvd 99slepc + + if use doc ; then + dodoc docs/slepc.pdf + docinto html + dodoc -r docs/*.html docs/manualpages + fi +} |