aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2019-03-08 23:42:40 -0600
committerMatthias Maier <tamiko@gentoo.org>2019-03-09 00:07:11 -0600
commitadbc744f06cd4ea9f381b0688fe88d88499344d9 (patch)
tree3c6dd5970335e8ecc7a62abc02b95701c5fe42c3
parentsci-mathematics/petsc: version bump to 3.10.4 (diff)
downloadsci-adbc744f06cd4ea9f381b0688fe88d88499344d9.tar.gz
sci-adbc744f06cd4ea9f381b0688fe88d88499344d9.tar.bz2
sci-adbc744f06cd4ea9f381b0688fe88d88499344d9.zip
sci-mathematics/slepc: version bump to 3.10.2HEADmaster
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
-rw-r--r--sci-mathematics/slepc/Manifest1
-rw-r--r--sci-mathematics/slepc/slepc-3.10.2.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest
index 39feb5d4c..8f4488e93 100644
--- a/sci-mathematics/slepc/Manifest
+++ b/sci-mathematics/slepc/Manifest
@@ -1,3 +1,4 @@
DIST slepc-3.10.0.tar.gz 4565134 BLAKE2B 88546893525d1744b37d2190ba57c49c0c59022cc43b235f6fa91a4ff57b077ac114ce6e2cd72fee74cb35cb271821ccc7fc511dc5a2432fe436f2bf57fb69f4 SHA512 f182c5e612f1aa5ca436bcb0ad812f216f6e5eaebf16683cab5c8fba63d29ffd55c9fb69377dd9bce3b32f3e6dec4a681face5d960ed1c78bb78cdc0ffe913d9
+DIST slepc-3.10.2.tar.gz 4566198 BLAKE2B 3699f350871f1b48fe024ae55a4b27f3cd41558fc86968e9a54502fe5807a807e1aad5b8f6ed38d3eeac06aa41ccd298f03525441fed35927ed174410eec24d0 SHA512 07eacc8532dfdd8976fbffa0fc5664c377816f42ccba9bdcdc3f11fdc26557b0c86ed16c4d56f089837ef46206b82d99b97f782367137d16af2dae2b2250954f
DIST slepc-3.8.2.tar.gz 4305725 BLAKE2B 7a8a0281cea19fb3c4b45ad98c277acff9d743c45e44af0600fe69c03b25d168994782daee01da7edb584adc1fce75badc6786752f70c1a751b59181b43476b3 SHA512 4d2cbcdd9ecc5e7fca10df85c0248874f379df4c7c5f6158e6896e9d5beced69c8755baf706418cd46dc2a82872a916d244b92b9fef4a7d6e8213d4899729a3e
DIST slepc-3.9.0.tar.gz 4473419 BLAKE2B 1d64dc0ed0fd8617c6d17dcc53064ad3ceca8fd5392ea37ff82923c7d5c6740eaabdfc2b033f5e773e62c28d5e21cb3403d3f3b01c578f154aa9be80dbf6e97f SHA512 490403e42a2f02f56db7a9edda1c6f4d7454f6c14645ee12511a8a0551de5ea238d39dde4a5b854f82cc161582c73a5bf392b07c9161bb9a89e600ad53e28909
diff --git a/sci-mathematics/slepc/slepc-3.10.2.ebuild b/sci-mathematics/slepc/slepc-3.10.2.ebuild
new file mode 100644
index 000000000..2009090c1
--- /dev/null
+++ b/sci-mathematics/slepc/slepc-3.10.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils flag-o-matic python-any-r1 toolchain-funcs versionator
+
+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"
+
+PETSC_PV="$(get_version_component_range 1-2 ${PV})"
+RDEPEND="
+ =sci-mathematics/petsc-${PETSC_PV}*:=[mpi=,complex-scalars=]
+ sci-libs/arpack[mpi=]
+ mpi? ( virtual/mpi )
+"
+
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ dev-util/cmake
+"
+
+MAKEOPTS="${MAKEOPTS} -j1 V=1"
+
+src_prepare() {
+ default
+
+ sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die
+}
+
+src_configure() {
+ # *sigh*
+ addpredict "${PETSC_DIR}"/.nagged
+
+ # Make sure that the environment is set up correctly:
+ unset PETSC_DIR
+ unset PETSC_ARCH
+ unset SLEPC_DIR
+ source "${EPREFIX}"/etc/env.d/99petsc
+ export PETSC_DIR
+
+ # 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-flags="$(usex mpi "-lparpack,-larpack" "-larpack")"
+
+}
+
+src_install() {
+ emake SLEPC_DESTDIR="${D}/usr/$(get_libdir)/slepc" install
+
+ # add PETSC_DIR to environmental variables
+ cat >> 99slepc <<- EOF
+ SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepc
+ EOF
+ doenvd 99slepc
+
+ if use doc ; then
+ dodoc docs/slepc.pdf
+ dohtml -r docs/*.html docs/manualpages
+ fi
+}