summaryrefslogtreecommitdiff
path: root/sci-mathematics/slepc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-20 01:14:49 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-20 01:14:49 +0100
commitbc4457d8e0e53a2e43c4254d08053ba9708663e1 (patch)
tree4f8809f23d683eed73ef800d99ce7aa628a82527 /sci-mathematics/slepc
parent5f593f75391c28294f0dffa4dd1df280a4d8df73 (diff)
gentoo auto-resync : 20:06:2023 - 01:14:49
Diffstat (limited to 'sci-mathematics/slepc')
-rw-r--r--sci-mathematics/slepc/Manifest3
-rw-r--r--sci-mathematics/slepc/slepc-3.19.1.ebuild125
2 files changed, 128 insertions, 0 deletions
diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest
index 336c86b8d6e4..212ed4978e62 100644
--- a/sci-mathematics/slepc/Manifest
+++ b/sci-mathematics/slepc/Manifest
@@ -2,9 +2,12 @@ DIST slepc-3.16.0.tar.gz 5486237 BLAKE2B 28f45036ba7e6aa2b227c6f25e2c8edf7fc6914
DIST slepc-3.17.1.tar.gz 5450177 BLAKE2B ec4f597085a176a010797d599779cc4532e52996105bb76f755073876ebb81026c580cb5759a03bda58cb2de2767b1dcdb01ff0d946f218117edb2a7a6557414 SHA512 5429aa7516ec0b2fee8158f9317634faf1c963aa60237be81a0392d5f2fa9f531db59b4a9ad04e266d808befdbd71b5a30259b4abc639a1da2defffd74acd35b
DIST slepc-3.18.1.tar.gz 6013016 BLAKE2B 1526b7e6e0f0387a8410cfcbee9bc62f35f930420b86bcb58146b16f73b28b349c6aad0ef59e02a635c374a0a8b6eb16ac50b7bcb79ce6c06a3de56029db551a SHA512 d366844c492be6bf77edabdbe0d61672ead45605fc299c25ac24bf14d9d15bc107bb62f0d08aa403a5f269a2b12ae4d7cd3768958d792812e6c1924b93a27be4
DIST slepc-3.19.0.tar.gz 1803822 BLAKE2B 742cc773e649d46ff8513263ef53fe5d62f6cac537d5444eeeb494d0816d496a5c0c2f260615aa8a82ebdc983877302acf7d0c88f01bd4bea66246149dabac13 SHA512 edb8c589c162766a7b4a81b484356f2a5b2f70a7c90c87e39efda1a00f6fe544d7ae644e8903059b7dab990c1fa2129cd5d1c7dbb759511483ab43d3d691419c
+DIST slepc-3.19.1.tar.gz 1804559 BLAKE2B e70d0801f84ee62409efd53b56cf57405017ee02cbc0c5484ca2aaf550f97ce8be665a360d774b69b8315dc1cdd0404535a316b6d744c7d0a6f87129c93dcf4d SHA512 a0bcbdb917e0a9606ba2bd00ee04e3016e9d5feb7e6ced069c1c57452a8661cdb57fa0d81004340367796cec91b7f9280339c7c0dfaaa0e5f839d91194dd43cb
DIST slepc-with-docs-3.19.0.tar.gz 6320650 BLAKE2B 32d383d7ddfe6cf21755fcae768517830076d38ef4c0d844c0a4270194de541a32849883d951f1a47d98491be05866b415de3ca6148b9d9cdf0bfc5e6487234e SHA512 48695c8449a323755a5d8bd3e88560e72ef82a48d0d1150e2a751a323db02836b76666bbaea3bb44c9a79b900a93337f6ced12aba6cfd939a7c1edae49f17e71
+DIST slepc-with-docs-3.19.1.tar.gz 6325794 BLAKE2B 45f33632b2096df5b25a910da33307bf1b3023949068cc84dda091a6fd142a8dc155c4d81e500dde05c3e852f87165b9cf72cdd1844a5fa7da554fe5a7740fea SHA512 5d886f05e6e21f7344391aacb892ae44cc5ac6f2144e9738fa318aab3724c010e51c968f242b5a19988e362f6f5a9d28a57fe4a4749a18be928ad458b3583936
EBUILD slepc-3.16.0.ebuild 1583 BLAKE2B 2e08bfc60fa6bc3814bfcdb421cb333bd8a88dc58decdc59d1738fecf34be24532187e2ff19a6dbdfd9d41249ffaa9209a2af6da509f1f39c1b4a404f07f5243 SHA512 b4505b508c7ccc8af5971a8f52f0ca57ebd0c1b5a75caf318ec1c7dc68f5033f311b4c313b926bf9fee7900267c329a38c5df955dd3651c0cadc138db4248d43
EBUILD slepc-3.17.1.ebuild 1530 BLAKE2B 8e7e0a4335127366bc1eec5141b69b6a1ca16ddda6f4275d4a9cf9001c62b3919675857e4cff982c97dafb4e546e1c6ec93ffdc1ae74d92a20741722fb23dd3c SHA512 e5f27c5fc8870660f1fbbdf9bb2d90f84236fc82636e3c41ebcc062e054c3074828442e029299957cbe4d69c69a9e7f644352571f5a18ec32a4d59270c9e27c7
EBUILD slepc-3.18.1.ebuild 3421 BLAKE2B a56320125d91f06bf5fc026ea002f046bf005b7716a9a0c8dbac0184dce26dda81af8e97c4592591d5ff081de15bd8b4ec2abe29516824d9be0531e946b622e8 SHA512 5f1a9ebb22d13b58e86a7cbcaf23000947c588b3ab648d41e067da7b3d375a0ebd8e060051314af1a4e9a573286b86bba9b3b29a1d5c19ce366529e085f1765a
EBUILD slepc-3.19.0.ebuild 3607 BLAKE2B 618f42170b13aacda3bdf67b34c2ddbe2757a63fd1ff90b2e3c6ce22163e8b2a13b3478309c0d0743c88124ad9fee31624688ac286a289d658b781c9950b4f78 SHA512 db16bbd5ac8f8f60add6f492e7ec5ffa073ced8e3a1fa7ec83b2e237fe69fd827de1b2a3b89047d0714cace987df38930fe2da1a7a4c94559e3a84d0302d3421
+EBUILD slepc-3.19.1.ebuild 3607 BLAKE2B 618f42170b13aacda3bdf67b34c2ddbe2757a63fd1ff90b2e3c6ce22163e8b2a13b3478309c0d0743c88124ad9fee31624688ac286a289d658b781c9950b4f78 SHA512 db16bbd5ac8f8f60add6f492e7ec5ffa073ced8e3a1fa7ec83b2e237fe69fd827de1b2a3b89047d0714cace987df38930fe2da1a7a4c94559e3a84d0302d3421
MISC metadata.xml 534 BLAKE2B d69665b8748404c15776f2a3759477d0ea6ab79f7f0f33fd2199310641bfb47d96189e3479728cafd4978af9c913aaa424221a1aef42727f9af244ff9040c708 SHA512 cc16480b710ee9977bb3fd3b1e3c664b29127a5385952d41e62578d0d22c06a06a2f5194ca9fc7521d8dbbc9b1ffd53fc5e019128c62910b556f3fceefe7c8ae
diff --git a/sci-mathematics/slepc/slepc-3.19.1.ebuild b/sci-mathematics/slepc/slepc-3.19.1.ebuild
new file mode 100644
index 000000000000..3622655a7bd1
--- /dev/null
+++ b/sci-mathematics/slepc/slepc-3.19.1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit python-any-r1
+
+DESCRIPTION="Scalable Library for Eigenvalue Problem Computations"
+HOMEPAGE="https://slepc.upv.es/"
+SRC_URI="
+ !doc? ( https://slepc.upv.es/download/distrib/${P}.tar.gz )
+ doc? ( https://slepc.upv.es/download/distrib/${PN}-with-docs-${PV}.tar.gz )"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="arpack complex-scalars doc +examples mpi"
+
+REQUIRED_USE="arpack? ( mpi )"
+
+RDEPEND="
+ =sci-mathematics/petsc-$(ver_cut 1-2)*:=[examples,mpi=,complex-scalars=]
+ arpack? ( sci-libs/arpack[mpi=] )
+ mpi? ( virtual/mpi )
+"
+
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ dev-util/cmake
+"
+
+MAKEOPTS="${MAKEOPTS} V=1"
+
+src_unpack() {
+ use doc || unpack ${P}.tar.gz
+ use doc && unpack ${PN}-with-docs-${PV}.tar.gz
+}
+
+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
+ if use arpack; then
+ ./configure \
+ --prefix="${EPREFIX}/usr/$(get_libdir)/slepcdir" \
+ --with-arpack=1 \
+ --with-arpack-lib="$(usex mpi "-lparpack -larpack" "-larpack")"
+ else
+ ./configure \
+ --prefix="${EPREFIX}/usr/$(get_libdir)/slepcdir" \
+ --with-arpack=0
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ #
+ # Clean up the mess:
+ #
+
+ # put all include directories under a proper subdirectory
+ mkdir "${ED}"/usr/include || die "mkdir failed (include)"
+ mv "${ED}"/usr/{$(get_libdir)/slepcdir/include,include/slepc} || die "mv failed (include)"
+
+ # put libraries and pkconfig file into proper place
+ mv "${ED}"/usr/$(get_libdir)/slepcdir/lib/{libslepc*,pkgconfig} \
+ "${ED}/usr/$(get_libdir)" || die "mv failed (lib)"
+
+ # move share to proper location
+ mv "${ED}"/usr/{$(get_libdir)/slepcdir/share,share} || die "mv failed (share)"
+
+ # fix pc files:
+ sed -i \
+ -e 's#include$#include/slepc#' \
+ -e "s#lib\$#$(get_libdir)#" \
+ -e "s#^prefix=.*slepcdir\$#prefix=${EPREFIX}/usr#" \
+ "${ED}"/usr/$(get_libdir)/pkgconfig/*.pc || die "sed failed (pkgconfig)"
+
+ # recreate a "valid" slepcdir:
+ for i in "${ED}"/usr/$(get_libdir)/*; do
+ [ $(basename $i) = slepcdir ] && continue
+ ln -s "${EPREFIX}/usr/$(get_libdir)/$(basename $i)" \
+ "${ED}/usr/$(get_libdir)/slepcdir/lib/$(basename $i)" || die "ln failed (slepcdir)"
+ done
+ ln -s "${EPREFIX}"/usr/include/slepc/ \
+ "${ED}/usr/$(get_libdir)/slepcdir/include" || die "ln failed (slepcdir)"
+ mkdir "${ED}/usr/$(get_libdir)/slepcdir/share" || die "mkdir fialed (slepcdir)"
+ ln -s "${EPREFIX}"/usr/share/slepc/ \
+ "${ED}/usr/$(get_libdir)/slepcdir/share/slepc" || die "ln failed (slepcdir)"
+
+ if use examples; then
+ mkdir -p "${ED}"/usr/share/doc/${PF} || die "mkdir failed (examples)"
+ mv "${ED}"/usr/share/slepc/examples "${ED}"/usr/share/doc/${PF} || die "mv failed (examples)"
+ ln -s "${EPREFIX}"/usr/share/doc/${PF}/examples "${ED}"/usr/share/slepc/examples || die "ln failed (examples)"
+ docompress -x /usr/share/doc/${PF}/examples
+ else
+ rm -r "${ED}"/usr/share/slepc/examples || die "rm failed (examples)"
+ fi
+
+ if use doc ; then
+ dodoc docs/slepc.pdf
+ docinto html
+ dodoc -r docs/*.html docs/manualpages
+ fi
+
+ # add PETSC_DIR to environmental variables
+ cat >> 99slepc <<- EOF
+ SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepcdir
+ EOF
+ doenvd 99slepc
+}