summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2024-07-03 18:17:40 -0500
committerMatthias Maier <tamiko@gentoo.org>2024-07-03 18:28:09 -0500
commitead854247f662931682d41ba817b91ed2f14bcba (patch)
treeedf0e8a24085db656255302e8b4817d63a1e6018 /sci-mathematics
parentsci-mathematics/petsc: add 3.21.3 (diff)
downloadgentoo-ead854247f662931682d41ba817b91ed2f14bcba.tar.gz
gentoo-ead854247f662931682d41ba817b91ed2f14bcba.tar.bz2
gentoo-ead854247f662931682d41ba817b91ed2f14bcba.zip
sci-mathematics/slepc: add 3.21.1
Closes: https://bugs.gentoo.org/929797 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/slepc/Manifest2
-rw-r--r--sci-mathematics/slepc/slepc-3.21.1.ebuild125
2 files changed, 127 insertions, 0 deletions
diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest
index 6df2601b5b5d..0a870c1cd6e4 100644
--- a/sci-mathematics/slepc/Manifest
+++ b/sci-mathematics/slepc/Manifest
@@ -4,6 +4,8 @@ DIST slepc-3.18.1.tar.gz 6013016 BLAKE2B 1526b7e6e0f0387a8410cfcbee9bc62f35f9304
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-3.20.1.tar.gz 1822991 BLAKE2B 5ce61d5087b2157b005170f7e441bcece4462d98120f7b731365d29c5f49dd3bc2d868f1ef70456f7cf03a499b8e1d44ba2e20c257b569e0717060bc01d2ec0d SHA512 fb1b07e72f83ff4c16c93e63e0d07fd1459c807d9995e543dd3e93e82b374be0c5a56ca2384142af8fb7302550352a4376889ecd3a80babe964d7c69ac1e500f
+DIST slepc-3.21.1.tar.gz 1827860 BLAKE2B 64da6b28bbea6a811972c9ec4115a44c49609a9b98524001aa53fc6bafe0dfbe0497b799204a80e387bfd9c588cc7858fce5835249e1d8d3a93d09c6d622feb8 SHA512 ee80d868fcdc9be63ebdf07020900c99d72867c5e8f1778de38bfa7890b083cbe5a03ee32a7886607bba04d42218b1f4d526b82a8b1b1f24d78f3ee4ef998db3
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
DIST slepc-with-docs-3.20.1.tar.gz 6381729 BLAKE2B 857e3827319258809691b1abd16a1686a8eb8b435495bcc25588b01fc369e4aad87060687d16030221524a08aa52f666e093471e0d7bca23c32dd2e3a3589dd1 SHA512 70869e9dcfdb63df62e63f6b69297e989a42e38116b525fbef3a75962b968cdccbc8bf17f7b1e74de910f1e66b704a9e36b2ffd1ae924d3279d80969d75f9f97
+DIST slepc-with-docs-3.21.1.tar.gz 6379594 BLAKE2B 96f544bfa5c378c65192e2ea9885939a66f254f1a92ac0bf51b118971171bc9de23307a95dc5505b8177fd5dc8c2c694ceb77f3dac9c65df6338dc8f0c4fce4c SHA512 6c110664aec40721a1cd787d922ad46d0cd5c03762cd29cfd13491656ffeebb8068ac7a0d81946dee74645886a9230134f161ce50f714c705fb3edf9afd63a16
diff --git a/sci-mathematics/slepc/slepc-3.21.1.ebuild b/sci-mathematics/slepc/slepc-3.21.1.ebuild
new file mode 100644
index 000000000000..c96091f2d520
--- /dev/null
+++ b/sci-mathematics/slepc/slepc-3.21.1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+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-build/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
+}