From 2a8d2f71d1d9963368e0ef3d641d75979a689d12 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 4 Jul 2024 08:06:08 +0100 Subject: gentoo auto-resync : 04:07:2024 - 08:06:07 --- sci-mathematics/slepc/Manifest | 3 + sci-mathematics/slepc/slepc-3.21.1.ebuild | 125 ++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 sci-mathematics/slepc/slepc-3.21.1.ebuild (limited to 'sci-mathematics/slepc') diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest index c6945aa7fed3..935d5be5a64b 100644 --- a/sci-mathematics/slepc/Manifest +++ b/sci-mathematics/slepc/Manifest @@ -4,13 +4,16 @@ 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 EBUILD slepc-3.16.0.ebuild 1579 BLAKE2B b876abd6c282603aa9cb2cb5e8f01bee0cef210c238436e5f1a6869191fb5497a4eb8ac48e7499c3a633d8b289230d0ad850fccf67347a943a6b1bef0732b64c SHA512 447ef385070baf15329aae216584ff4aa2233ece54d557c2486b462a809002d938f0151dd397a6510ea886e04b5c56de63e013c9c21c835c1b251c2218175454 EBUILD slepc-3.17.1.ebuild 1526 BLAKE2B 60ae7829a7cb1f6777c19b85128119d2b6b43fcc9921499e74ccb38c5cf1cf409202a0caee3226ea7c0d8df3bf376badef8239dac3b97f265e8386d4f70814ff SHA512 5393dc87e56c3ba9c8c8327a3d755954cebc7f9ae08f168ef0795c676ae8d0ee1ad185fd816213015e268faeddcf20b7c01d488afb8bc620623e5869a95fea25 EBUILD slepc-3.18.1.ebuild 3423 BLAKE2B 16a5cab2a89de467db3c8f7badf6b759e0c85a14032d0936c45eda68b2484abd2f63ea9f5a91d1043637063248d64f5a88249346fd4fb084da787668c874c010 SHA512 acdce4012337e69837d901cbf64b78ceed85474ca5442492e3bc2fc5c819c20226f53af83fa4f05f680a679a343f39d198d144eb9af8370a2137c4f0fdbb470e EBUILD slepc-3.19.0.ebuild 3609 BLAKE2B 503653a74d38565294c248f35ebefede69d108f3e329ced6327314551409b79cbb0d0aeb0ec8000fdaa9f02e288d38d28b0572585866702691061ed27e936d71 SHA512 46ad6f82b75a9923f5c57542efac85a337c8ae3ba76b1d0761745349cca13381b2187b1f3d679497652a4f81ed8468d74a21f7ea867658351f17e51a3545dadd EBUILD slepc-3.19.1.ebuild 3609 BLAKE2B 503653a74d38565294c248f35ebefede69d108f3e329ced6327314551409b79cbb0d0aeb0ec8000fdaa9f02e288d38d28b0572585866702691061ed27e936d71 SHA512 46ad6f82b75a9923f5c57542efac85a337c8ae3ba76b1d0761745349cca13381b2187b1f3d679497652a4f81ed8468d74a21f7ea867658351f17e51a3545dadd EBUILD slepc-3.20.1.ebuild 3609 BLAKE2B 503653a74d38565294c248f35ebefede69d108f3e329ced6327314551409b79cbb0d0aeb0ec8000fdaa9f02e288d38d28b0572585866702691061ed27e936d71 SHA512 46ad6f82b75a9923f5c57542efac85a337c8ae3ba76b1d0761745349cca13381b2187b1f3d679497652a4f81ed8468d74a21f7ea867658351f17e51a3545dadd +EBUILD slepc-3.21.1.ebuild 3609 BLAKE2B a5477783ed50373e8d41d42beb99f7353b132e96f2b0a0724394f7f35823db66ea526bdf08c92b619653b85c66a5712e7a9ab98486129c2704f8d3730064cc79 SHA512 802cc6ddd9cc0ef27777db2209cc246bf4dd4151a30b18d96235c90b3efabe6b3a963a605aa8a73755b6b3fb83f75e9b73a232e2b84f3f542f50f3fe66194201 MISC metadata.xml 534 BLAKE2B d69665b8748404c15776f2a3759477d0ea6ab79f7f0f33fd2199310641bfb47d96189e3479728cafd4978af9c913aaa424221a1aef42727f9af244ff9040c708 SHA512 cc16480b710ee9977bb3fd3b1e3c664b29127a5385952d41e62578d0d22c06a06a2f5194ca9fc7521d8dbbc9b1ffd53fc5e019128c62910b556f3fceefe7c8ae 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 +} -- cgit v1.2.3