From e3f21c8aff8a76afe3423721c437a088e9232840 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 23 Apr 2024 23:59:27 +0100 Subject: gentoo auto-resync : 23:04:2024 - 23:59:26 --- sci-libs/Manifest.gz | Bin 44816 -> 44815 bytes sci-libs/dealii/Manifest | 6 +- sci-libs/dealii/dealii-9.4.2-r1.ebuild | 182 +++++++++++++++++++++++++++ sci-libs/dealii/dealii-9.4.2.ebuild | 182 --------------------------- sci-libs/dealii/dealii-9.5.2-r1.ebuild | 178 ++++++++++++++++++++++++++ sci-libs/dealii/dealii-9.5.2.ebuild | 178 -------------------------- sci-libs/dealii/dealii-9999.ebuild | 2 +- sci-libs/flann/Manifest | 2 +- sci-libs/flann/flann-1.9.1-r5.ebuild | 94 -------------- sci-libs/flann/flann-1.9.1-r6.ebuild | 94 ++++++++++++++ sci-libs/gmsh/Manifest | 4 +- sci-libs/gmsh/gmsh-4.11.1-r1.ebuild | 138 -------------------- sci-libs/gmsh/gmsh-4.11.1-r2.ebuild | 138 ++++++++++++++++++++ sci-libs/gmsh/gmsh-4.12.2-r1.ebuild | 137 ++++++++++++++++++++ sci-libs/gmsh/gmsh-4.12.2.ebuild | 137 -------------------- sci-libs/h5part/Manifest | 2 +- sci-libs/h5part/h5part-1.6.6-r1.ebuild | 28 +++++ sci-libs/h5part/h5part-1.6.6.ebuild | 28 ----- sci-libs/hdf5/Manifest | 2 +- sci-libs/hdf5/hdf5-1.14.4_p2.ebuild | 1 + sci-libs/mathgl/Manifest | 2 +- sci-libs/mathgl/mathgl-8.0.1-r1.ebuild | 145 +++++++++++++++++++++ sci-libs/mathgl/mathgl-8.0.1.ebuild | 145 --------------------- sci-libs/scalapack/Manifest | 2 +- sci-libs/scalapack/scalapack-2.1.0-r1.ebuild | 84 +++++++++++++ sci-libs/scalapack/scalapack-2.1.0.ebuild | 83 ------------ sci-libs/silo/Manifest | 4 +- sci-libs/silo/silo-4.11-r1.ebuild | 58 --------- sci-libs/silo/silo-4.11-r2.ebuild | 58 +++++++++ sci-libs/silo/silo-4.11.1-r1.ebuild | 63 ++++++++++ sci-libs/silo/silo-4.11.1.ebuild | 63 ---------- 31 files changed, 1121 insertions(+), 1119 deletions(-) create mode 100644 sci-libs/dealii/dealii-9.4.2-r1.ebuild delete mode 100644 sci-libs/dealii/dealii-9.4.2.ebuild create mode 100644 sci-libs/dealii/dealii-9.5.2-r1.ebuild delete mode 100644 sci-libs/dealii/dealii-9.5.2.ebuild delete mode 100644 sci-libs/flann/flann-1.9.1-r5.ebuild create mode 100644 sci-libs/flann/flann-1.9.1-r6.ebuild delete mode 100644 sci-libs/gmsh/gmsh-4.11.1-r1.ebuild create mode 100644 sci-libs/gmsh/gmsh-4.11.1-r2.ebuild create mode 100644 sci-libs/gmsh/gmsh-4.12.2-r1.ebuild delete mode 100644 sci-libs/gmsh/gmsh-4.12.2.ebuild create mode 100644 sci-libs/h5part/h5part-1.6.6-r1.ebuild delete mode 100644 sci-libs/h5part/h5part-1.6.6.ebuild create mode 100644 sci-libs/mathgl/mathgl-8.0.1-r1.ebuild delete mode 100644 sci-libs/mathgl/mathgl-8.0.1.ebuild create mode 100644 sci-libs/scalapack/scalapack-2.1.0-r1.ebuild delete mode 100644 sci-libs/scalapack/scalapack-2.1.0.ebuild delete mode 100644 sci-libs/silo/silo-4.11-r1.ebuild create mode 100644 sci-libs/silo/silo-4.11-r2.ebuild create mode 100644 sci-libs/silo/silo-4.11.1-r1.ebuild delete mode 100644 sci-libs/silo/silo-4.11.1.ebuild (limited to 'sci-libs') diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz index 9f65a31da84e..c55a83287c72 100644 Binary files a/sci-libs/Manifest.gz and b/sci-libs/Manifest.gz differ diff --git a/sci-libs/dealii/Manifest b/sci-libs/dealii/Manifest index 535cc09647da..6ae296968f59 100644 --- a/sci-libs/dealii/Manifest +++ b/sci-libs/dealii/Manifest @@ -9,7 +9,7 @@ DIST dealii-9.5.0-offline_documentation.tar.gz 412499027 BLAKE2B 521aa2488d84d48 DIST dealii-9.5.0-offline_documentation.tar.gz.asc 246 BLAKE2B 0a570885e80ad09ff154532b71c07e33894e93c96b3bca48dc8aae0b308883518cbb5eca57658c4e13de47efba47c3cb20bf376482ef7a26c6c0da93ee4dd689 SHA512 b63a9a0504fe5266b448ffda74e1d85ad5b6f344535c5b5f11d209546b51bb916ad69504ce5e4f1fd2287407c2d3d98a20b01bd830e8d45f510a85b7a057a8d5 DIST dealii-9.5.2.tar.gz 31523493 BLAKE2B 4ad55b0c4c7b1c02de17007f44b345856ec18127d6326b08fda76747087039344324c911409502f293e61eecd6d574f8a774ec0a1bbb200a2a4ee62a2f81e6d8 SHA512 5989c2dfd66f803b0bcc32816f69048c0bbb411c8b792691df9bbfc0c965c1c95c7e8c3782e1a3d160e9d124fd0c5396b55372e28e477fa474c3f3c03a5bd4e9 DIST dealii-9.5.2.tar.gz.asc 246 BLAKE2B bacd1dac5a6f3d0d6639329512f5c4cafe39ecd036a7a4e38b81d31b6ee452d496190e8ae26c814631cc62c42208a1df1cd081ac8accd97d2821d7091495b898 SHA512 1821b4763ddcda11baf37b88ae90ec73576d2cacdeb53f4196dcde9e1649e685eb1666b86317d4573944769642b09bc76fc1de34a5e8e436004552f8652cad23 -EBUILD dealii-9.4.2.ebuild 6025 BLAKE2B e5e67bde042ae6e1688ff36812659636491afb97dacd54c32c315cd4131f4f0b625c6d745f4f8206830b4ebe3d669ee605ed1f20523949a7bd422560bbbcfebe SHA512 2a6a68a1bcef45613801ffe57e15d5669c6392f00ae571aa6ec19144400e8b1058f2cad4d548c349b936a1e3c7a9c7aa1cb4fd3e2dae2e13f673ece6b5493acf -EBUILD dealii-9.5.2.ebuild 5691 BLAKE2B c9325b24041276cdf19ec4951bc0efbfda1febae446bed607e94d37ab068e70189ff8b1a08b273fa1763a9542df262faa9639adc26a98af35a18e487c671cac2 SHA512 510d5570d83a93162cf9820934bc7a7b763e300de4131470e76080f85facb3154632fb3897b99903a5e385400b94fe6c864aad40edb18e1332789d30697e88c9 -EBUILD dealii-9999.ebuild 5167 BLAKE2B 35312049948076713bd8fe074870ffac76aacacc371642a7d910f21f8be0d8a969670e3de20215887cee1d58618308040543fd5e4e19ca627a19720c9593d500 SHA512 1d1fb096c45ccd2e75080422c8bf48c80410a89b3944f3b6e86bf6f313a3b03b4012dff0efd371bdefa38225fc70b3ef77e0ca45b928b4ce7ecc002e16505927 +EBUILD dealii-9.4.2-r1.ebuild 6027 BLAKE2B a3b5c4c0b8e95102f5f95cd9e13518f906cc944ca43a873f65f6f4d463ab1eb4ad5c34927063603ea56d0ab29ee8c33366ac46a518fccc3395dacda837a04d51 SHA512 4200169cd5cb6fedd92027c57ad5f2d5b89fd0be6b826f258e84854deb122b396941b761ac8682aeccffdb53eea6601978a5fe098fb152f51630f676575a4684 +EBUILD dealii-9.5.2-r1.ebuild 5693 BLAKE2B 0a300659ca39ede2dd10ee9b5a54cc99102d40178272b9e783bff2c793f4d8f9ad5f6390f5b5379bba9ba557828ec6f6da5e4a0e52c27da4fe7f1ffb93e4d8c9 SHA512 6915052648fd66fe103fb654d0fa85e4d864f9730149531203e71559a9d75743e3b9fa5612035a86fba79ef4e50d30894cec321ca296bc2400fb295b0ba992b5 +EBUILD dealii-9999.ebuild 5169 BLAKE2B 593ee88766dbcba2df2c6f06795f27b24fce1948b9cf8611e257662b9300b505b15623d79d7fef47060029b1982688040b28ada5622bc13380879d61142ffa51 SHA512 43ea2366f56d21e25e3a5c323daf63023e3dedcdb45908765fe1f8c31535fc6dd99a48c17f3000170347950bb844e56b58495c55613336698479bf87b25670db MISC metadata.xml 2301 BLAKE2B 27f29025acaf1cdf2637c9ce38b7d94cb63a29064c3fc315b86818e155cb675ac387998855498754d42f10abcbd3c14b92bd0d9ce503b24614490d2d45668166 SHA512 28ce9b2664538cdd933fe72fec79a85ad75fc5f451d14fb5946b92bba7d8c387e9e6226f831bc5b02e841f9e94c28d404f34a1211ed3a00a49eaff5a8d7dc8a1 diff --git a/sci-libs/dealii/dealii-9.4.2-r1.ebuild b/sci-libs/dealii/dealii-9.4.2-r1.ebuild new file mode 100644 index 000000000000..20803dea7102 --- /dev/null +++ b/sci-libs/dealii/dealii-9.4.2-r1.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# deal.II uses its own FindLAPACK.cmake file that calls into the system +# FindLAPACK.cmake module and does additional internal setup. Do not remove +# any of these modules: +CMAKE_REMOVE_MODULES_LIST="" + +inherit cmake flag-o-matic verify-sig + +DESCRIPTION="Solving partial differential equations with the finite element method" +HOMEPAGE="https://www.dealii.org/" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dealii/dealii.git" + SRC_URI="" +else + DOC_PV=9.4.1 + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz.asc ) + doc? ( + https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz + verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz.asc ) + )" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE=" + adolc arborx assimp arpack cgal cpu_flags_x86_avx cpu_flags_x86_avx512f + cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5 + +lapack metis mpi muparser opencascade p4est petsc scalapack slepc + +sparse static-libs sundials symengine trilinos +" + +# TODO: add slepc use flag once slepc is packaged for gentoo-science +REQUIRED_USE=" + arborx? ( trilinos ) + p4est? ( mpi ) + slepc? ( petsc ) + trilinos? ( mpi )" + +RDEPEND="dev-libs/boost:= + app-arch/bzip2 + sys-libs/zlib + dev-cpp/tbb:= + arborx? ( sci-libs/arborx[mpi=] ) + adolc? ( sci-libs/adolc ) + arpack? ( sci-libs/arpack[mpi=] ) + assimp? ( media-libs/assimp:= ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + ginkgo? ( sci-libs/ginkgo ) + gmsh? ( sci-libs/gmsh ) + gsl? ( sci-libs/gsl:= ) + hdf5? ( sci-libs/hdf5:=[mpi=] ) + lapack? ( virtual/lapack ) + metis? ( + >=sci-libs/metis-5 + mpi? ( >=sci-libs/parmetis-4 ) + ) + mpi? ( virtual/mpi[cxx] ) + muparser? ( dev-cpp/muParser ) + opencascade? ( sci-libs/opencascade:= ) + p4est? ( sci-libs/p4est[mpi] ) + petsc? ( sci-mathematics/petsc[mpi=] ) + scalapack? ( sci-libs/scalapack ) + slepc? ( sci-mathematics/slepc[mpi=] ) + sparse? ( sci-libs/umfpack ) + sundials? ( sci-libs/sundials:= ) + symengine? ( >=sci-libs/symengine-0.4:= ) + trilinos? ( sci-libs/trilinos )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-text/doxygen[dot] dev-lang/perl )" + +BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-dealii )" + +PATCHES=( + "${FILESDIR}"/${PN}-9.1.1-no-ld-flags.patch + "${FILESDIR}"/${PN}-9.4.2-base-mpi.cc-remove-superfluous-explicit-instantiatio.patch + "${FILESDIR}"/${PN}-9.4.2-base-mpi.h-mark-a-template-variable-to-have-const-in.patch +) + +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/dealii.asc" + +src_configure() { + # deal.II needs a custom build type: + local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release) + + local mycmakeargs=( + -DDEAL_II_PACKAGE_VERSION="${PV}" + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF + -DDEAL_II_ALLOW_AUTODETECTION=OFF + -DDEAL_II_ALLOW_BUNDLED=OFF + -DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF + -DDEAL_II_COMPILE_EXAMPLES=OFF + -DDEAL_II_DOCHTML_RELDIR="share/doc/${P}/html" + -DDEAL_II_DOCREADME_RELDIR="share/doc/${P}" + -DDEAL_II_COMPILE_EXAMPLES=OFF + -DDEAL_II_EXAMPLES_RELDIR="share/doc/${P}/examples" + -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)" + -DDEAL_II_SHARE_RELDIR="share/${PN}" + -DDEAL_II_WITH_ZLIB=ON + -DDEAL_II_WITH_ADOLC="$(usex adolc)" + -DDEAL_II_WITH_ARBORX="$(usex arborx)" + -DDEAL_II_WITH_ASSIMP="$(usex assimp)" + -DDEAL_II_WITH_ARPACK="$(usex arpack)" + -DDEAL_II_WITH_CGAL="$(usex cgal)" + -DDEAL_II_WITH_CUDA="$(usex cuda)" + -DDEAL_II_WITH_GINKGO="$(usex ginkgo)" + -DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" + -DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" + -DDEAL_II_WITH_GMSH="$(usex gmsh)" + -DDEAL_II_WITH_GSL="$(usex gsl)" + -DDEAL_II_WITH_HDF5="$(usex hdf5)" + -DDEAL_II_WITH_KOKKOS="$(usex trilinos)" + -DDEAL_II_WITH_LAPACK="$(usex lapack)" + -DDEAL_II_WITH_METIS="$(usex metis)" + -DDEAL_II_WITH_MPI="$(usex mpi)" + -DDEAL_II_WITH_MUPARSER="$(usex muparser)" + -DDEAL_II_WITH_OPENCASCADE="$(usex opencascade)" + -DDEAL_II_WITH_P4EST="$(usex p4est)" + -DDEAL_II_WITH_PETSC="$(usex petsc)" + -DDEAL_II_WITH_SCALAPACK="$(usex scalapack)" + -DDEAL_II_WITH_SLEPC="$(usex slepc)" + -DDEAL_II_WITH_SUNDIALS="$(usex sundials)" + -DDEAL_II_WITH_SYMENGINE="$(usex symengine)" + -DDEAL_II_WITH_UMFPACK="$(usex sparse)" + -DBUILD_SHARED_LIBS="$(usex !static-libs)" + -DDEAL_II_PREFER_STATIC_LIBS="$(usex static-libs)" + -DDEAL_II_WITH_TBB=ON + -DDEAL_II_WITH_TASKFLOW=OFF + -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" + ) + + use opencascade && mycmakeargs+=( + -DCMAKE_PREFIX_PATH="/usr/$(get_libdir)/opencascade" + ) + + # Do a little dance for purely cosmetic QA reasons. The build system + # does query for the highest instruction set first and skips the other + # variables if a "higher" variant is set + if use cpu_flags_x86_avx512f; then + mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) + append-cxxflags "-mavx512f" + elif use cpu_flags_x86_avx; then + mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) + append-cxxflags "-mavx2" + elif use cpu_flags_x86_avx; then + mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) + append-cxxflags "-msse2" + fi + + # Unconditionally enable strict C++17 standard. This is necessary for + # USE=cgal and USE=kokkos and safe to set for all presently supported + # compilers + append-cxxflags "-std=c++17" + + cmake_src_configure +} + +src_install() { + if use doc && [[ ${PV} != *9999* ]]; then + # copy missing images to the build directory: + cp -r "${WORKDIR}"/doc/doxygen/deal.II/images \ + "${BUILD_DIR}"/doc/doxygen/deal.II || die + # replace links: + sed -i \ + 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \ + "${BUILD_DIR}"/doc/doxygen/deal.II/step_*.html || die "sed failed" + fi + cmake_src_install + + # decompress the installed example sources: + use examples && docompress -x /usr/share/doc/${PF}/examples +} diff --git a/sci-libs/dealii/dealii-9.4.2.ebuild b/sci-libs/dealii/dealii-9.4.2.ebuild deleted file mode 100644 index fd2fc4b43f39..000000000000 --- a/sci-libs/dealii/dealii-9.4.2.ebuild +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# deal.II uses its own FindLAPACK.cmake file that calls into the system -# FindLAPACK.cmake module and does additional internal setup. Do not remove -# any of these modules: -CMAKE_REMOVE_MODULES_LIST="" - -inherit cmake flag-o-matic verify-sig - -DESCRIPTION="Solving partial differential equations with the finite element method" -HOMEPAGE="https://www.dealii.org/" - -if [[ ${PV} = *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dealii/dealii.git" - SRC_URI="" -else - DOC_PV=9.4.1 - SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz.asc ) - doc? ( - https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz.asc ) - )" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -LICENSE="LGPL-2.1+" -SLOT="0" -IUSE=" - adolc arborx assimp arpack cgal cpu_flags_x86_avx cpu_flags_x86_avx512f - cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5 - +lapack metis mpi muparser opencascade p4est petsc scalapack slepc - +sparse static-libs sundials symengine trilinos -" - -# TODO: add slepc use flag once slepc is packaged for gentoo-science -REQUIRED_USE=" - arborx? ( trilinos ) - p4est? ( mpi ) - slepc? ( petsc ) - trilinos? ( mpi )" - -RDEPEND="dev-libs/boost:= - app-arch/bzip2 - sys-libs/zlib - dev-cpp/tbb:= - arborx? ( sci-libs/arborx[mpi=] ) - adolc? ( sci-libs/adolc ) - arpack? ( sci-libs/arpack[mpi=] ) - assimp? ( media-libs/assimp:= ) - cuda? ( dev-util/nvidia-cuda-toolkit ) - ginkgo? ( sci-libs/ginkgo ) - gmsh? ( sci-libs/gmsh ) - gsl? ( sci-libs/gsl:= ) - hdf5? ( sci-libs/hdf5[mpi=] ) - lapack? ( virtual/lapack ) - metis? ( - >=sci-libs/metis-5 - mpi? ( >=sci-libs/parmetis-4 ) - ) - mpi? ( virtual/mpi[cxx] ) - muparser? ( dev-cpp/muParser ) - opencascade? ( sci-libs/opencascade:= ) - p4est? ( sci-libs/p4est[mpi] ) - petsc? ( sci-mathematics/petsc[mpi=] ) - scalapack? ( sci-libs/scalapack ) - slepc? ( sci-mathematics/slepc[mpi=] ) - sparse? ( sci-libs/umfpack ) - sundials? ( sci-libs/sundials:= ) - symengine? ( >=sci-libs/symengine-0.4:= ) - trilinos? ( sci-libs/trilinos )" - -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( app-text/doxygen[dot] dev-lang/perl )" - -BDEPEND=" - verify-sig? ( sec-keys/openpgp-keys-dealii )" - -PATCHES=( - "${FILESDIR}"/${PN}-9.1.1-no-ld-flags.patch - "${FILESDIR}"/${PN}-9.4.2-base-mpi.cc-remove-superfluous-explicit-instantiatio.patch - "${FILESDIR}"/${PN}-9.4.2-base-mpi.h-mark-a-template-variable-to-have-const-in.patch -) - -VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/dealii.asc" - -src_configure() { - # deal.II needs a custom build type: - local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release) - - local mycmakeargs=( - -DDEAL_II_PACKAGE_VERSION="${PV}" - -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF - -DDEAL_II_ALLOW_AUTODETECTION=OFF - -DDEAL_II_ALLOW_BUNDLED=OFF - -DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF - -DDEAL_II_COMPILE_EXAMPLES=OFF - -DDEAL_II_DOCHTML_RELDIR="share/doc/${P}/html" - -DDEAL_II_DOCREADME_RELDIR="share/doc/${P}" - -DDEAL_II_COMPILE_EXAMPLES=OFF - -DDEAL_II_EXAMPLES_RELDIR="share/doc/${P}/examples" - -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)" - -DDEAL_II_SHARE_RELDIR="share/${PN}" - -DDEAL_II_WITH_ZLIB=ON - -DDEAL_II_WITH_ADOLC="$(usex adolc)" - -DDEAL_II_WITH_ARBORX="$(usex arborx)" - -DDEAL_II_WITH_ASSIMP="$(usex assimp)" - -DDEAL_II_WITH_ARPACK="$(usex arpack)" - -DDEAL_II_WITH_CGAL="$(usex cgal)" - -DDEAL_II_WITH_CUDA="$(usex cuda)" - -DDEAL_II_WITH_GINKGO="$(usex ginkgo)" - -DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" - -DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" - -DDEAL_II_WITH_GMSH="$(usex gmsh)" - -DDEAL_II_WITH_GSL="$(usex gsl)" - -DDEAL_II_WITH_HDF5="$(usex hdf5)" - -DDEAL_II_WITH_KOKKOS="$(usex trilinos)" - -DDEAL_II_WITH_LAPACK="$(usex lapack)" - -DDEAL_II_WITH_METIS="$(usex metis)" - -DDEAL_II_WITH_MPI="$(usex mpi)" - -DDEAL_II_WITH_MUPARSER="$(usex muparser)" - -DDEAL_II_WITH_OPENCASCADE="$(usex opencascade)" - -DDEAL_II_WITH_P4EST="$(usex p4est)" - -DDEAL_II_WITH_PETSC="$(usex petsc)" - -DDEAL_II_WITH_SCALAPACK="$(usex scalapack)" - -DDEAL_II_WITH_SLEPC="$(usex slepc)" - -DDEAL_II_WITH_SUNDIALS="$(usex sundials)" - -DDEAL_II_WITH_SYMENGINE="$(usex symengine)" - -DDEAL_II_WITH_UMFPACK="$(usex sparse)" - -DBUILD_SHARED_LIBS="$(usex !static-libs)" - -DDEAL_II_PREFER_STATIC_LIBS="$(usex static-libs)" - -DDEAL_II_WITH_TBB=ON - -DDEAL_II_WITH_TASKFLOW=OFF - -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" - ) - - use opencascade && mycmakeargs+=( - -DCMAKE_PREFIX_PATH="/usr/$(get_libdir)/opencascade" - ) - - # Do a little dance for purely cosmetic QA reasons. The build system - # does query for the highest instruction set first and skips the other - # variables if a "higher" variant is set - if use cpu_flags_x86_avx512f; then - mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) - append-cxxflags "-mavx512f" - elif use cpu_flags_x86_avx; then - mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) - append-cxxflags "-mavx2" - elif use cpu_flags_x86_avx; then - mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) - append-cxxflags "-msse2" - fi - - # Unconditionally enable strict C++17 standard. This is necessary for - # USE=cgal and USE=kokkos and safe to set for all presently supported - # compilers - append-cxxflags "-std=c++17" - - cmake_src_configure -} - -src_install() { - if use doc && [[ ${PV} != *9999* ]]; then - # copy missing images to the build directory: - cp -r "${WORKDIR}"/doc/doxygen/deal.II/images \ - "${BUILD_DIR}"/doc/doxygen/deal.II || die - # replace links: - sed -i \ - 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \ - "${BUILD_DIR}"/doc/doxygen/deal.II/step_*.html || die "sed failed" - fi - cmake_src_install - - # decompress the installed example sources: - use examples && docompress -x /usr/share/doc/${PF}/examples -} diff --git a/sci-libs/dealii/dealii-9.5.2-r1.ebuild b/sci-libs/dealii/dealii-9.5.2-r1.ebuild new file mode 100644 index 000000000000..8d1ff65c6e8c --- /dev/null +++ b/sci-libs/dealii/dealii-9.5.2-r1.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# deal.II uses its own FindLAPACK.cmake file that calls into the system +# FindLAPACK.cmake module and does additional internal setup. Do not remove +# any of these modules: +CMAKE_REMOVE_MODULES_LIST="" + +inherit cmake flag-o-matic verify-sig + +DESCRIPTION="Solving partial differential equations with the finite element method" +HOMEPAGE="https://www.dealii.org/" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dealii/dealii.git" + SRC_URI="" +else + DOC_PV=9.5.0 + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz.asc ) + doc? ( + https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz + verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz.asc ) + )" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE=" + adolc arborx assimp arpack cgal cpu_flags_x86_avx cpu_flags_x86_avx512f + cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5 + +lapack metis mpi muparser opencascade p4est petsc scalapack slepc + +sparse sundials symengine trilinos +" + +# TODO: add slepc use flag once slepc is packaged for gentoo-science +REQUIRED_USE=" + arborx? ( trilinos ) + p4est? ( mpi ) + slepc? ( petsc ) + trilinos? ( mpi )" + +RDEPEND="dev-libs/boost:= + app-arch/bzip2 + sys-libs/zlib + dev-cpp/tbb:= + arborx? ( sci-libs/arborx[mpi=] ) + adolc? ( sci-libs/adolc ) + arpack? ( sci-libs/arpack[mpi=] ) + assimp? ( media-libs/assimp:= ) + cgal? ( sci-mathematics/cgal ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + ginkgo? ( sci-libs/ginkgo ) + gmsh? ( sci-libs/gmsh ) + gsl? ( sci-libs/gsl:= ) + hdf5? ( sci-libs/hdf5:=[mpi=] ) + lapack? ( virtual/lapack ) + metis? ( + >=sci-libs/metis-5 + mpi? ( >=sci-libs/parmetis-4 ) + ) + mpi? ( virtual/mpi[cxx] ) + muparser? ( dev-cpp/muParser ) + opencascade? ( sci-libs/opencascade:= ) + p4est? ( sci-libs/p4est[mpi] ) + petsc? ( sci-mathematics/petsc[mpi=] ) + scalapack? ( sci-libs/scalapack ) + slepc? ( sci-mathematics/slepc[mpi=] ) + sparse? ( sci-libs/umfpack ) + sundials? ( sci-libs/sundials:= ) + symengine? ( >=sci-libs/symengine-0.4:= ) + trilinos? ( sci-libs/trilinos ) + || ( + dev-cpp/kokkos + sci-libs/trilinos + ) + " + +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-text/doxygen[dot] dev-lang/perl )" + +BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-dealii )" + +PATCHES=( + "${FILESDIR}"/${PN}-9.4.2-base-mpi.cc-remove-superfluous-explicit-instantiatio.patch + "${FILESDIR}"/${PN}-9.4.2-base-mpi.h-mark-a-template-variable-to-have-const-in.patch +) + +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/dealii.asc" + +src_configure() { + # deal.II needs a custom build type: + local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release) + + local mycmakeargs=( + -DDEAL_II_PACKAGE_VERSION="${PV}" + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF + -DDEAL_II_ALLOW_AUTODETECTION=OFF + -DDEAL_II_ALLOW_BUNDLED=OFF + -DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF + -DDEAL_II_COMPILE_EXAMPLES=OFF + -DDEAL_II_DOCHTML_RELDIR="share/doc/${P}/html" + -DDEAL_II_DOCREADME_RELDIR="share/doc/${P}" + -DDEAL_II_COMPILE_EXAMPLES=OFF + -DDEAL_II_EXAMPLES_RELDIR="share/doc/${P}/examples" + -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)" + -DDEAL_II_SHARE_RELDIR="share/${PN}" + -DDEAL_II_WITH_ZLIB=ON + -DDEAL_II_WITH_ADOLC="$(usex adolc)" + -DDEAL_II_WITH_ARBORX="$(usex arborx)" + -DDEAL_II_WITH_ASSIMP="$(usex assimp)" + -DDEAL_II_WITH_ARPACK="$(usex arpack)" + -DDEAL_II_WITH_CGAL="$(usex cgal)" + -DDEAL_II_WITH_CUDA="$(usex cuda)" + -DDEAL_II_WITH_GINKGO="$(usex ginkgo)" + -DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" + -DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" + -DDEAL_II_WITH_GMSH="$(usex gmsh)" + -DDEAL_II_WITH_GSL="$(usex gsl)" + -DDEAL_II_WITH_HDF5="$(usex hdf5)" + -DDEAL_II_WITH_LAPACK="$(usex lapack)" + -DDEAL_II_WITH_METIS="$(usex metis)" + -DDEAL_II_WITH_MPI="$(usex mpi)" + -DDEAL_II_WITH_MUPARSER="$(usex muparser)" + -DDEAL_II_WITH_OPENCASCADE="$(usex opencascade)" + -DDEAL_II_WITH_P4EST="$(usex p4est)" + -DDEAL_II_WITH_PETSC="$(usex petsc)" + -DDEAL_II_WITH_SCALAPACK="$(usex scalapack)" + -DDEAL_II_WITH_SLEPC="$(usex slepc)" + -DDEAL_II_WITH_SUNDIALS="$(usex sundials)" + -DDEAL_II_WITH_SYMENGINE="$(usex symengine)" + -DDEAL_II_WITH_UMFPACK="$(usex sparse)" + -DDEAL_II_WITH_TBB=ON + -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" + ) + + use opencascade && mycmakeargs+=( + -DCMAKE_PREFIX_PATH="/usr/$(get_libdir)/opencascade" + ) + + # Do a little dance for purely cosmetic QA reasons. The build system + # does query for the highest instruction set first and skips the other + # variables if a "higher" variant is set + if use cpu_flags_x86_avx512f; then + mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) + append-cxxflags "-mavx512f" + elif use cpu_flags_x86_avx; then + mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) + append-cxxflags "-mavx2" + elif use cpu_flags_x86_avx; then + mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) + append-cxxflags "-msse2" + fi + + cmake_src_configure +} + +src_install() { + if use doc && [[ ${PV} != *9999* ]]; then + # copy missing images to the build directory: + cp -r "${WORKDIR}"/doc/doxygen/deal.II/images \ + "${BUILD_DIR}"/doc/doxygen/deal.II || die + # replace links: + sed -i \ + 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \ + "${BUILD_DIR}"/doc/doxygen/deal.II/step_*.html || die "sed failed" + fi + cmake_src_install + + # decompress the installed example sources: + use examples && docompress -x /usr/share/doc/${PF}/examples +} diff --git a/sci-libs/dealii/dealii-9.5.2.ebuild b/sci-libs/dealii/dealii-9.5.2.ebuild deleted file mode 100644 index e69819e8e682..000000000000 --- a/sci-libs/dealii/dealii-9.5.2.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# deal.II uses its own FindLAPACK.cmake file that calls into the system -# FindLAPACK.cmake module and does additional internal setup. Do not remove -# any of these modules: -CMAKE_REMOVE_MODULES_LIST="" - -inherit cmake flag-o-matic verify-sig - -DESCRIPTION="Solving partial differential equations with the finite element method" -HOMEPAGE="https://www.dealii.org/" - -if [[ ${PV} = *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/dealii/dealii.git" - SRC_URI="" -else - DOC_PV=9.5.0 - SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz.asc ) - doc? ( - https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${DOC_PV}/${PN}-${DOC_PV}-offline_documentation.tar.gz.asc ) - )" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -LICENSE="LGPL-2.1+" -SLOT="0" -IUSE=" - adolc arborx assimp arpack cgal cpu_flags_x86_avx cpu_flags_x86_avx512f - cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5 - +lapack metis mpi muparser opencascade p4est petsc scalapack slepc - +sparse sundials symengine trilinos -" - -# TODO: add slepc use flag once slepc is packaged for gentoo-science -REQUIRED_USE=" - arborx? ( trilinos ) - p4est? ( mpi ) - slepc? ( petsc ) - trilinos? ( mpi )" - -RDEPEND="dev-libs/boost:= - app-arch/bzip2 - sys-libs/zlib - dev-cpp/tbb:= - arborx? ( sci-libs/arborx[mpi=] ) - adolc? ( sci-libs/adolc ) - arpack? ( sci-libs/arpack[mpi=] ) - assimp? ( media-libs/assimp:= ) - cgal? ( sci-mathematics/cgal ) - cuda? ( dev-util/nvidia-cuda-toolkit ) - ginkgo? ( sci-libs/ginkgo ) - gmsh? ( sci-libs/gmsh ) - gsl? ( sci-libs/gsl:= ) - hdf5? ( sci-libs/hdf5[mpi=] ) - lapack? ( virtual/lapack ) - metis? ( - >=sci-libs/metis-5 - mpi? ( >=sci-libs/parmetis-4 ) - ) - mpi? ( virtual/mpi[cxx] ) - muparser? ( dev-cpp/muParser ) - opencascade? ( sci-libs/opencascade:= ) - p4est? ( sci-libs/p4est[mpi] ) - petsc? ( sci-mathematics/petsc[mpi=] ) - scalapack? ( sci-libs/scalapack ) - slepc? ( sci-mathematics/slepc[mpi=] ) - sparse? ( sci-libs/umfpack ) - sundials? ( sci-libs/sundials:= ) - symengine? ( >=sci-libs/symengine-0.4:= ) - trilinos? ( sci-libs/trilinos ) - || ( - dev-cpp/kokkos - sci-libs/trilinos - ) - " - -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( app-text/doxygen[dot] dev-lang/perl )" - -BDEPEND=" - verify-sig? ( sec-keys/openpgp-keys-dealii )" - -PATCHES=( - "${FILESDIR}"/${PN}-9.4.2-base-mpi.cc-remove-superfluous-explicit-instantiatio.patch - "${FILESDIR}"/${PN}-9.4.2-base-mpi.h-mark-a-template-variable-to-have-const-in.patch -) - -VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/dealii.asc" - -src_configure() { - # deal.II needs a custom build type: - local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release) - - local mycmakeargs=( - -DDEAL_II_PACKAGE_VERSION="${PV}" - -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF - -DDEAL_II_ALLOW_AUTODETECTION=OFF - -DDEAL_II_ALLOW_BUNDLED=OFF - -DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF - -DDEAL_II_COMPILE_EXAMPLES=OFF - -DDEAL_II_DOCHTML_RELDIR="share/doc/${P}/html" - -DDEAL_II_DOCREADME_RELDIR="share/doc/${P}" - -DDEAL_II_COMPILE_EXAMPLES=OFF - -DDEAL_II_EXAMPLES_RELDIR="share/doc/${P}/examples" - -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)" - -DDEAL_II_SHARE_RELDIR="share/${PN}" - -DDEAL_II_WITH_ZLIB=ON - -DDEAL_II_WITH_ADOLC="$(usex adolc)" - -DDEAL_II_WITH_ARBORX="$(usex arborx)" - -DDEAL_II_WITH_ASSIMP="$(usex assimp)" - -DDEAL_II_WITH_ARPACK="$(usex arpack)" - -DDEAL_II_WITH_CGAL="$(usex cgal)" - -DDEAL_II_WITH_CUDA="$(usex cuda)" - -DDEAL_II_WITH_GINKGO="$(usex ginkgo)" - -DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" - -DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" - -DDEAL_II_WITH_GMSH="$(usex gmsh)" - -DDEAL_II_WITH_GSL="$(usex gsl)" - -DDEAL_II_WITH_HDF5="$(usex hdf5)" - -DDEAL_II_WITH_LAPACK="$(usex lapack)" - -DDEAL_II_WITH_METIS="$(usex metis)" - -DDEAL_II_WITH_MPI="$(usex mpi)" - -DDEAL_II_WITH_MUPARSER="$(usex muparser)" - -DDEAL_II_WITH_OPENCASCADE="$(usex opencascade)" - -DDEAL_II_WITH_P4EST="$(usex p4est)" - -DDEAL_II_WITH_PETSC="$(usex petsc)" - -DDEAL_II_WITH_SCALAPACK="$(usex scalapack)" - -DDEAL_II_WITH_SLEPC="$(usex slepc)" - -DDEAL_II_WITH_SUNDIALS="$(usex sundials)" - -DDEAL_II_WITH_SYMENGINE="$(usex symengine)" - -DDEAL_II_WITH_UMFPACK="$(usex sparse)" - -DDEAL_II_WITH_TBB=ON - -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" - ) - - use opencascade && mycmakeargs+=( - -DCMAKE_PREFIX_PATH="/usr/$(get_libdir)/opencascade" - ) - - # Do a little dance for purely cosmetic QA reasons. The build system - # does query for the highest instruction set first and skips the other - # variables if a "higher" variant is set - if use cpu_flags_x86_avx512f; then - mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) - append-cxxflags "-mavx512f" - elif use cpu_flags_x86_avx; then - mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) - append-cxxflags "-mavx2" - elif use cpu_flags_x86_avx; then - mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) - append-cxxflags "-msse2" - fi - - cmake_src_configure -} - -src_install() { - if use doc && [[ ${PV} != *9999* ]]; then - # copy missing images to the build directory: - cp -r "${WORKDIR}"/doc/doxygen/deal.II/images \ - "${BUILD_DIR}"/doc/doxygen/deal.II || die - # replace links: - sed -i \ - 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \ - "${BUILD_DIR}"/doc/doxygen/deal.II/step_*.html || die "sed failed" - fi - cmake_src_install - - # decompress the installed example sources: - use examples && docompress -x /usr/share/doc/${PF}/examples -} diff --git a/sci-libs/dealii/dealii-9999.ebuild b/sci-libs/dealii/dealii-9999.ebuild index 82ea812c039c..26b651fea08e 100644 --- a/sci-libs/dealii/dealii-9999.ebuild +++ b/sci-libs/dealii/dealii-9999.ebuild @@ -54,7 +54,7 @@ RDEPEND="dev-libs/boost:= ginkgo? ( sci-libs/ginkgo ) gmsh? ( sci-libs/gmsh ) gsl? ( sci-libs/gsl:= ) - hdf5? ( sci-libs/hdf5[mpi=] ) + hdf5? ( sci-libs/hdf5:=[mpi=] ) lapack? ( virtual/lapack ) metis? ( >=sci-libs/metis-5 diff --git a/sci-libs/flann/Manifest b/sci-libs/flann/Manifest index a8d34bd1b335..d343b6b7ccf9 100644 --- a/sci-libs/flann/Manifest +++ b/sci-libs/flann/Manifest @@ -5,5 +5,5 @@ AUX flann-1.9.1-cuda-9.patch 850 BLAKE2B f193a6fd25a1d2cd45201d547fb444393cb82f3 AUX flann-1.9.1-system-lz4-pkgconfig.patch 1168 BLAKE2B 9fadff93a2d603aee3eadd72d28f5af4f41b63803aa7d878d9b23e30a9c2384d48f85d2c8be8cfcd47542b35e929b8f35afc70caf6dc6c676b6521ebc6f829d7 SHA512 ba1c6307f2504814adfc872f1cbcd4fdaab23c56d84427c11c20e3ff75263ac97be0813cf9c5e9acd1a945d0c5dbb2b7660ada3290ffc7332ea0c90b1bc26ffa AUX flann-1.9.1-system-lz4.patch 4934 BLAKE2B eea32abae8b13d5d0e5149c58b2639c1b6f3bbbedfa8aa91f5fb83afca4726571eb4e01eb440eb913b54f8a03124bc0266c8b039b6448bcdc0bc5e87a9512c6f SHA512 acb67eb59b400b82722f064e529fc86f43c4e16ba097a3742b5717b33fcd35a619c73ec6ea6391b23f906d4bc40a5167b56cffd0267bc2c8259b7298ad414e65 DIST flann-1.9.1.tar.gz 485391 BLAKE2B bf1e1e7feb33e939e1d0586db593bea3fdf66726fbadec63df9ed9c7bdb678babb11001769f0d041a7a569186b3d700db8b96af5eb9740615f6dfd880460f68b SHA512 0da78bb14111013318160dd3dee1f93eb6ed077b18439fd6496017b62a8a6070cc859cfb3e08dad4c614e48d9dc1da5f7c4a21726ee45896d360506da074a6f7 -EBUILD flann-1.9.1-r5.ebuild 2279 BLAKE2B e20bc610fd352ab6385f888ccbe9d45b2eca568ce8dddbf1eea1893cf186cddd841f84811562a4ceb6f7a91272c7605279adc40a791256ba4e38441525381ebf SHA512 16e323afbd67b9dab2b2aa9d6b713d4bcd346291e2ba6d64d628424083ad42a321f9f50dc6936b32242e61b806f17095746b9cd6c030ecb747ef12071dd062ae +EBUILD flann-1.9.1-r6.ebuild 2281 BLAKE2B 60ae0b559e56a67e9283aa2330f3c244ec9bfe86a77f0dcc93fa44359f5badcf4df4107d2166a3ff504d3d0e17429836b4d0886b6aea05fe53159d9ec77c5ad4 SHA512 3b2e76a51c792ae720e9aadb134c1ddc40690065016bd0733692c43fd6ba16cea739e3481a64beabb2aff157cc73642a90af61e12e0ba6614386045657b25234 MISC metadata.xml 912 BLAKE2B e78b293fb235efa090e62fdee5a9f9646e9b46640b8ec64815834a7897504b37ab9c0a275c17c7bf1464384a460c562ff046cc445416e891b52639f0f2d54f38 SHA512 e493462f2d4e91b656ec0b18017b34533b362eced29025b582ac8191597841fc761ac0a84a3bcaf1a8ba7c1b33c097e9d7292d6403c1aa4fc035f7416a6dd45a diff --git a/sci-libs/flann/flann-1.9.1-r5.ebuild b/sci-libs/flann/flann-1.9.1-r5.ebuild deleted file mode 100644 index 6f4b7099f0e9..000000000000 --- a/sci-libs/flann/flann-1.9.1-r5.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake cuda flag-o-matic toolchain-funcs - -DESCRIPTION="Fast approximate nearest neighbor searches in high dimensional spaces" -HOMEPAGE="https://github.com/mariusmuja/flann" -SRC_URI="https://github.com/mariusmuja/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~ppc ~x86 ~amd64-linux ~x86-linux" -IUSE="cuda doc examples mpi octave openmp" - -BDEPEND=" - app-arch/unzip - doc? ( dev-tex/latex2html ) - mpi? ( app-admin/chrpath ) -" -DEPEND=" - app-arch/lz4:= - cuda? ( >=dev-util/nvidia-cuda-toolkit-5.5 ) - mpi? ( - dev-libs/boost:=[mpi] - sci-libs/hdf5[mpi] - ) - !mpi? ( !sci-libs/hdf5[mpi] ) - octave? ( >=sci-mathematics/octave-3.6.4-r1:= ) -" -RDEPEND="${DEPEND}" -# TODO: -# readd dependencies for test suite, -# requires multiple ruby dependencies - -PATCHES=( - "${FILESDIR}"/${P}-cmake-3.11{,-1}.patch # bug 678030 - "${FILESDIR}"/${P}-cuda-9.patch - "${FILESDIR}"/${P}-system-lz4.patch # bug 681898 - "${FILESDIR}"/${P}-system-lz4-pkgconfig.patch # bug 827263 - "${FILESDIR}"/${P}-build-oct-rather-than-mex-files-for-octave.patch # bug 830424 -) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_prepare() { - # bug #302621 - use mpi && export CXX=mpicxx - - use cuda && cuda_src_prepare - - cmake_src_prepare -} - -src_configure() { - append-cxxflags -std=c++11 - - # python bindings are split off into dev-python/pyflann - local mycmakeargs=( - -DBUILD_C_BINDINGS=ON - -DBUILD_PYTHON_BINDINGS=OFF - -DPYTHON_EXECUTABLE= - -DBUILD_CUDA_LIB=$(usex cuda) - -DBUILD_EXAMPLES=$(usex examples) - -DBUILD_DOC=$(usex doc) - -DBUILD_TESTS=OFF - -DBUILD_MATLAB_BINDINGS=$(usex octave) - -DUSE_MPI=$(usex mpi) - -DUSE_OPENMP=$(usex openmp) - ) - use cuda && mycmakeargs+=( - -DCUDA_NVCC_FLAGS="${NVCCFLAGS} --linker-options \"-arsch\"" - ) - use doc && mycmakeargs+=( -DDOCDIR=share/doc/${PF} ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - find "${D}" -name 'lib*.a' -delete || die - - # bug 795828; mpicc volunterely adds some runpaths - if use mpi; then - chrpath -d "${ED}"/usr/bin/flann_mpi_{client,server} || die - fi -} diff --git a/sci-libs/flann/flann-1.9.1-r6.ebuild b/sci-libs/flann/flann-1.9.1-r6.ebuild new file mode 100644 index 000000000000..8f253ff0802e --- /dev/null +++ b/sci-libs/flann/flann-1.9.1-r6.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake cuda flag-o-matic toolchain-funcs + +DESCRIPTION="Fast approximate nearest neighbor searches in high dimensional spaces" +HOMEPAGE="https://github.com/mariusmuja/flann" +SRC_URI="https://github.com/mariusmuja/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="cuda doc examples mpi octave openmp" + +BDEPEND=" + app-arch/unzip + doc? ( dev-tex/latex2html ) + mpi? ( app-admin/chrpath ) +" +DEPEND=" + app-arch/lz4:= + cuda? ( >=dev-util/nvidia-cuda-toolkit-5.5 ) + mpi? ( + dev-libs/boost:=[mpi] + sci-libs/hdf5:=[mpi] + ) + !mpi? ( !sci-libs/hdf5[mpi] ) + octave? ( >=sci-mathematics/octave-3.6.4-r1:= ) +" +RDEPEND="${DEPEND}" +# TODO: +# readd dependencies for test suite, +# requires multiple ruby dependencies + +PATCHES=( + "${FILESDIR}"/${P}-cmake-3.11{,-1}.patch # bug 678030 + "${FILESDIR}"/${P}-cuda-9.patch + "${FILESDIR}"/${P}-system-lz4.patch # bug 681898 + "${FILESDIR}"/${P}-system-lz4-pkgconfig.patch # bug 827263 + "${FILESDIR}"/${P}-build-oct-rather-than-mex-files-for-octave.patch # bug 830424 +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + # bug #302621 + use mpi && export CXX=mpicxx + + use cuda && cuda_src_prepare + + cmake_src_prepare +} + +src_configure() { + append-cxxflags -std=c++11 + + # python bindings are split off into dev-python/pyflann + local mycmakeargs=( + -DBUILD_C_BINDINGS=ON + -DBUILD_PYTHON_BINDINGS=OFF + -DPYTHON_EXECUTABLE= + -DBUILD_CUDA_LIB=$(usex cuda) + -DBUILD_EXAMPLES=$(usex examples) + -DBUILD_DOC=$(usex doc) + -DBUILD_TESTS=OFF + -DBUILD_MATLAB_BINDINGS=$(usex octave) + -DUSE_MPI=$(usex mpi) + -DUSE_OPENMP=$(usex openmp) + ) + use cuda && mycmakeargs+=( + -DCUDA_NVCC_FLAGS="${NVCCFLAGS} --linker-options \"-arsch\"" + ) + use doc && mycmakeargs+=( -DDOCDIR=share/doc/${PF} ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + find "${D}" -name 'lib*.a' -delete || die + + # bug 795828; mpicc volunterely adds some runpaths + if use mpi; then + chrpath -d "${ED}"/usr/bin/flann_mpi_{client,server} || die + fi +} diff --git a/sci-libs/gmsh/Manifest b/sci-libs/gmsh/Manifest index 261a9d988fbf..36973021db1a 100644 --- a/sci-libs/gmsh/Manifest +++ b/sci-libs/gmsh/Manifest @@ -3,6 +3,6 @@ AUX gmsh-4.11.1_gcc13_fix_cstdint_include.patch 925 BLAKE2B 538287bb96f17b2e526b AUX gmsh-4.9.5-opencascade.patch 1136 BLAKE2B 3613e9a19c76c107eec2090a0a12474d94ac1d548cf6b5137644e3a7834c12a9a8c6dc63d217b8473c385b2ea5bd1ea3d9699e61cbc897bf7cdd121ba00bdff2 SHA512 3774335121ae1d7b4a2369b36e1dab84e9b08eb6336ad1ed6893e0b2260402cb750e202f0244d61c8772d809dd31d95adfb19d8deee5255185c968838e495cd5 DIST gmsh-4.11.1-source.tgz 17985611 BLAKE2B 087664cfbfec758eaa3740a65920ccf673dbcc97a1ef8010222da64b8c586334ed1a77904e94061bdf34e714aae34311ee4f6fb38740473046f99ad6c1e0984c SHA512 8f2a71d6db80dd6bacde6dc1ccd120c7f83609dd69a84a910455a21a43b7392cd7e0e7b4d37aaa6a1b1cbfdb816646cd4828d2ac6d784edba072167280432e4c DIST gmsh-4.12.2-source.tgz 18150293 BLAKE2B 16f8048d8962d2a8e41d813713c147a691d24c7fabdcc7f3787bff804b1dfa477d4853b4b366a409c2ed9649e8c83710b4f73ac23a0c5885d0e65cd25bb88d6f SHA512 935148aff89b608f9d671d5fd4f12aed52b5c8ba4453e978d0febcc6934c045f2bba0078b13a64b2cbf4e852b413bbd05873335099ea7a967cc81ef58a7f8367 -EBUILD gmsh-4.11.1-r1.ebuild 3105 BLAKE2B b0cf9466bf77b8f37d6168d35e7deac9ff25bbfddf60de6323a01e8ba8738a35c1548f98fb018fd73b2469ed946ee38c18a67a0872c5b746ede3f5ec95f05c78 SHA512 0e26c29dd213a88809da95575bd4b924c31d4c7d9963149db42b3bfa6c8deed9e39083a8299507ed7d437d02abade33423243ebf068a461ea73b4f320b4afe42 -EBUILD gmsh-4.12.2.ebuild 3061 BLAKE2B 8732d005263f48e9ae87f79af2c2b05b9b6068e199620b07a7243478001d6dfaeb910f24892bca48b9caace84841597a960fd789da8158661f24e564cd97614f SHA512 1eb484a752ff3f9b123bda97ceedd98a32b315652ec6455e3fea37a0b0b53c8c0556dd9caea2f85a492024158a0cc17d83e3af909e729309702736eebef544ec +EBUILD gmsh-4.11.1-r2.ebuild 3109 BLAKE2B aea275de2e1f110769f6f679b0cc1a0629b56f2c1f82a2ba24d88208ec2eb57057bfb8f6dd4a427efc11d04076c7aa79542f1881de6bbe4b93fcb49eceab883f SHA512 eacd5c5a6dc312b1d99ab65cea853ff0aedc712666dbfbe20e4a62ccd8384cb21fc64107c4f3469518c7279ca9ccf3e5973d28496f1636efd580d5d017a1f546 +EBUILD gmsh-4.12.2-r1.ebuild 3065 BLAKE2B 006d86e7a4afdb8c6e156274c7eb8a9edb71844fa4a1e8b004d2fdbaa89bc86acd4a25461e4ff83e20680520ae6aaf59b2f004ea8d5242ed3608c952e4b455ec SHA512 6c20e8548dd09ea8b049d13363fb9de1fbd9a24eacc0f84420c4776ee8bf3ccc84385b4ac253a2845428cfd83188539492d9f19d7b37666a4afe6977f8816ecf MISC metadata.xml 1271 BLAKE2B 7ea0644b5ffb89478ba859f0bbd33fa5fcc8ebb57e64f2ca6ccba8123e23b4a7a44626d5fb1bd416d99071557652b247e90cc05b11d50bdded732f41f2acc524 SHA512 013798cf979fcb7fb954490970abdfc6ebbe23e8263a22cf8791af21f593aa46b7348e7673fa7fa318ce3cb8436c2d58435911984b40be3dafda40253ebcc71c diff --git a/sci-libs/gmsh/gmsh-4.11.1-r1.ebuild b/sci-libs/gmsh/gmsh-4.11.1-r1.ebuild deleted file mode 100644 index 0cb64ad8928e..000000000000 --- a/sci-libs/gmsh/gmsh-4.11.1-r1.ebuild +++ /dev/null @@ -1,138 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) - -inherit cmake desktop fortran-2 python-any-r1 toolchain-funcs xdg-utils - -DESCRIPTION="Three-dimensional finite element mesh generator" -HOMEPAGE="https://gmsh.info https://gitlab.onelab.info/gmsh/gmsh" -SRC_URI="https://gmsh.info/src/${P}-source.tgz" -S="${WORKDIR}/${P}-source" - -LICENSE=" - GPL-2+ free-noncomm - alglib? ( MIT ) - gmm? ( LGPL-2.1+ ) - metis? ( Apache-2.0 ) - netgen? ( LGPL-2.1+ ) - voro? ( BSD ) -" -SLOT="0" -KEYWORDS="~amd64 ~x86" -## cgns is not compiling ATM, maybe fix cgns lib first -IUSE="+alglib +blas cgns eigen examples +gmm jpeg med metis mpi mumps netgen opencascade petsc pdf png python shared slepc X voro zlib" - -REQUIRED_USE=" - ^^ ( blas eigen ) - mumps? ( blas ) - slepc? ( petsc ) - " - -RDEPEND=" - virtual/fortran - X? ( x11-libs/fltk:1[xft] ) - alglib? ( sci-libs/alglib ) - blas? ( - virtual/blas - virtual/lapack - sci-libs/fftw:3.0 - ) - cgns? ( - sci-libs/cgnslib - sci-libs/hdf5[mpi=] - ) - eigen? ( dev-cpp/eigen ) - gmm? ( sci-mathematics/gmm ) - jpeg? ( media-libs/libjpeg-turbo ) - med? ( - sci-libs/med[mpi=] - sci-libs/hdf5[mpi=] - ) - metis? ( >=sci-libs/metis-5.2.0 ) - mpi? ( virtual/mpi[cxx] ) - mumps? ( sci-libs/mumps[mpi=] ) - opencascade? ( sci-libs/opencascade:* ) - pdf? ( app-text/poppler:= ) - png? ( media-libs/libpng:0 ) - petsc? ( sci-mathematics/petsc[mpi=] ) - slepc? ( sci-mathematics/slepc[mpi=] ) - voro? ( sci-libs/voro++ ) - zlib? ( sys-libs/zlib ) - " - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - python? ( dev-lang/swig:0 ) - " - -PATCHES=( - "${FILESDIR}"/${PN}-4.9.5-opencascade.patch - "${FILESDIR}"/${P}_gcc13_fix_cstdint_include.patch - "${FILESDIR}"/${P}-metis-5-2.patch -) - -pkg_setup() { - fortran-2_pkg_setup -} - -src_configure() { - local mycmakeargs=( ) - - use blas && \ - mycmakeargs+=(-DCMAKE_Fortran_COMPILER=$(tc-getF77)) - - mycmakeargs+=( - -DENABLE_ALGLIB="$(usex alglib)" - -DENABLE_BLAS_LAPACK="$(usex blas)" - -DENABLE_BUILD_DYNAMIC="$(usex shared)" - -DENABLE_CGNS="$(usex cgns)" - -DENABLE_EIGEN="$(usex eigen)" - -DENABLE_FLTK="$(usex X)" - -DENABLE_GMM="$(usex gmm)" - -DENABLE_GRAPHICS="$(usex X)" - -DENABLE_MED="$(usex med)" - -DENABLE_MPI="$(usex mpi)" - -DENABLE_METIS="$(usex metis)" - -DENABLE_MUMPS="$(usex mumps)" - -DENABLE_NETGEN="$(usex netgen)" - -DENABLE_OCC="$(usex opencascade)" - -DENABLE_PETSC="$(usex petsc)" - -DENABLE_POPPLER="$(usex pdf)" - -DENABLE_SLEPC="$(usex slepc)" - -DENABLE_PRIVATE_API="$(usex shared)" - -DENABLE_SYSTEM_CONTRIB="YES" - -DENABLE_VOROPP="$(usex voro)" - -DENABLE_WRAP_PYTHON="$(usex python)") - - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use examples ; then - dodoc -r examples tutorials - docompress -x /usr/share/doc/${PF}/{examples,tutorials} - fi - - if use X ; then - newicon -s 64 "/${S}/utils/icons/gmsh-no-text.png" gmsh.png - make_desktop_entry "/usr/bin/gmsh" "Gmsh ${PV}" "gmsh" "Science;Math" - fi -} - -pkg_postinst() { - if use X ; then - xdg_icon_cache_update - fi -} - -pkg_postrm() { - if use X ; then - xdg_icon_cache_update - fi -} diff --git a/sci-libs/gmsh/gmsh-4.11.1-r2.ebuild b/sci-libs/gmsh/gmsh-4.11.1-r2.ebuild new file mode 100644 index 000000000000..deffafdf47c5 --- /dev/null +++ b/sci-libs/gmsh/gmsh-4.11.1-r2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) + +inherit cmake desktop fortran-2 python-any-r1 toolchain-funcs xdg-utils + +DESCRIPTION="Three-dimensional finite element mesh generator" +HOMEPAGE="https://gmsh.info https://gitlab.onelab.info/gmsh/gmsh" +SRC_URI="https://gmsh.info/src/${P}-source.tgz" +S="${WORKDIR}/${P}-source" + +LICENSE=" + GPL-2+ free-noncomm + alglib? ( MIT ) + gmm? ( LGPL-2.1+ ) + metis? ( Apache-2.0 ) + netgen? ( LGPL-2.1+ ) + voro? ( BSD ) +" +SLOT="0" +KEYWORDS="~amd64 ~x86" +## cgns is not compiling ATM, maybe fix cgns lib first +IUSE="+alglib +blas cgns eigen examples +gmm jpeg med metis mpi mumps netgen opencascade petsc pdf png python shared slepc X voro zlib" + +REQUIRED_USE=" + ^^ ( blas eigen ) + mumps? ( blas ) + slepc? ( petsc ) + " + +RDEPEND=" + virtual/fortran + X? ( x11-libs/fltk:1[xft] ) + alglib? ( sci-libs/alglib ) + blas? ( + virtual/blas + virtual/lapack + sci-libs/fftw:3.0 + ) + cgns? ( + sci-libs/cgnslib + sci-libs/hdf5:=[mpi=] + ) + eigen? ( dev-cpp/eigen ) + gmm? ( sci-mathematics/gmm ) + jpeg? ( media-libs/libjpeg-turbo ) + med? ( + sci-libs/med[mpi=] + sci-libs/hdf5:=[mpi=] + ) + metis? ( >=sci-libs/metis-5.2.0 ) + mpi? ( virtual/mpi[cxx] ) + mumps? ( sci-libs/mumps[mpi=] ) + opencascade? ( sci-libs/opencascade:* ) + pdf? ( app-text/poppler:= ) + png? ( media-libs/libpng:0 ) + petsc? ( sci-mathematics/petsc[mpi=] ) + slepc? ( sci-mathematics/slepc[mpi=] ) + voro? ( sci-libs/voro++ ) + zlib? ( sys-libs/zlib ) + " + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + python? ( dev-lang/swig:0 ) + " + +PATCHES=( + "${FILESDIR}"/${PN}-4.9.5-opencascade.patch + "${FILESDIR}"/${P}_gcc13_fix_cstdint_include.patch + "${FILESDIR}"/${P}-metis-5-2.patch +) + +pkg_setup() { + fortran-2_pkg_setup +} + +src_configure() { + local mycmakeargs=( ) + + use blas && \ + mycmakeargs+=(-DCMAKE_Fortran_COMPILER=$(tc-getF77)) + + mycmakeargs+=( + -DENABLE_ALGLIB="$(usex alglib)" + -DENABLE_BLAS_LAPACK="$(usex blas)" + -DENABLE_BUILD_DYNAMIC="$(usex shared)" + -DENABLE_CGNS="$(usex cgns)" + -DENABLE_EIGEN="$(usex eigen)" + -DENABLE_FLTK="$(usex X)" + -DENABLE_GMM="$(usex gmm)" + -DENABLE_GRAPHICS="$(usex X)" + -DENABLE_MED="$(usex med)" + -DENABLE_MPI="$(usex mpi)" + -DENABLE_METIS="$(usex metis)" + -DENABLE_MUMPS="$(usex mumps)" + -DENABLE_NETGEN="$(usex netgen)" + -DENABLE_OCC="$(usex opencascade)" + -DENABLE_PETSC="$(usex petsc)" + -DENABLE_POPPLER="$(usex pdf)" + -DENABLE_SLEPC="$(usex slepc)" + -DENABLE_PRIVATE_API="$(usex shared)" + -DENABLE_SYSTEM_CONTRIB="YES" + -DENABLE_VOROPP="$(usex voro)" + -DENABLE_WRAP_PYTHON="$(usex python)") + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use examples ; then + dodoc -r examples tutorials + docompress -x /usr/share/doc/${PF}/{examples,tutorials} + fi + + if use X ; then + newicon -s 64 "/${S}/utils/icons/gmsh-no-text.png" gmsh.png + make_desktop_entry "/usr/bin/gmsh" "Gmsh ${PV}" "gmsh" "Science;Math" + fi +} + +pkg_postinst() { + if use X ; then + xdg_icon_cache_update + fi +} + +pkg_postrm() { + if use X ; then + xdg_icon_cache_update + fi +} diff --git a/sci-libs/gmsh/gmsh-4.12.2-r1.ebuild b/sci-libs/gmsh/gmsh-4.12.2-r1.ebuild new file mode 100644 index 000000000000..60c811c184fd --- /dev/null +++ b/sci-libs/gmsh/gmsh-4.12.2-r1.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) + +inherit cmake desktop fortran-2 python-any-r1 toolchain-funcs xdg-utils + +DESCRIPTION="Three-dimensional finite element mesh generator" +HOMEPAGE="https://gmsh.info https://gitlab.onelab.info/gmsh/gmsh" +SRC_URI="https://gmsh.info/src/${P}-source.tgz" +S="${WORKDIR}/${P}-source" + +LICENSE=" + GPL-2+ free-noncomm + alglib? ( MIT ) + gmm? ( LGPL-2.1+ ) + metis? ( Apache-2.0 ) + netgen? ( LGPL-2.1+ ) + voro? ( BSD ) +" +SLOT="0" +KEYWORDS="~amd64 ~x86" +## cgns is not compiling ATM, maybe fix cgns lib first +IUSE="+alglib +blas cgns eigen examples +gmm jpeg med metis mpi mumps netgen opencascade petsc pdf png python shared slepc X voro zlib" + +REQUIRED_USE=" + ^^ ( blas eigen ) + mumps? ( blas ) + slepc? ( petsc ) + " + +RDEPEND=" + virtual/fortran + X? ( x11-libs/fltk:1[xft] ) + alglib? ( sci-libs/alglib ) + blas? ( + virtual/blas + virtual/lapack + sci-libs/fftw:3.0 + ) + cgns? ( + sci-libs/cgnslib + sci-libs/hdf5:=[mpi=] + ) + eigen? ( dev-cpp/eigen ) + gmm? ( sci-mathematics/gmm ) + jpeg? ( media-libs/libjpeg-turbo ) + med? ( + sci-libs/med[mpi=] + sci-libs/hdf5:=[mpi=] + ) + metis? ( >=sci-libs/metis-5.2.0 ) + mpi? ( virtual/mpi[cxx] ) + mumps? ( sci-libs/mumps[mpi=] ) + opencascade? ( sci-libs/opencascade:* ) + pdf? ( app-text/poppler:= ) + png? ( media-libs/libpng:0 ) + petsc? ( sci-mathematics/petsc[mpi=] ) + slepc? ( sci-mathematics/slepc[mpi=] ) + voro? ( sci-libs/voro++ ) + zlib? ( sys-libs/zlib ) + " + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + python? ( dev-lang/swig:0 ) + " + +PATCHES=( + "${FILESDIR}"/${PN}-4.9.5-opencascade.patch + "${FILESDIR}"/${PN}-4.11.1-metis-5-2.patch +) + +pkg_setup() { + fortran-2_pkg_setup +} + +src_configure() { + local mycmakeargs=( ) + + use blas && \ + mycmakeargs+=(-DCMAKE_Fortran_COMPILER=$(tc-getF77)) + + mycmakeargs+=( + -DENABLE_ALGLIB="$(usex alglib)" + -DENABLE_BLAS_LAPACK="$(usex blas)" + -DENABLE_BUILD_DYNAMIC="$(usex shared)" + -DENABLE_CGNS="$(usex cgns)" + -DENABLE_EIGEN="$(usex eigen)" + -DENABLE_FLTK="$(usex X)" + -DENABLE_GMM="$(usex gmm)" + -DENABLE_GRAPHICS="$(usex X)" + -DENABLE_MED="$(usex med)" + -DENABLE_MPI="$(usex mpi)" + -DENABLE_METIS="$(usex metis)" + -DENABLE_MUMPS="$(usex mumps)" + -DENABLE_NETGEN="$(usex netgen)" + -DENABLE_OCC="$(usex opencascade)" + -DENABLE_PETSC="$(usex petsc)" + -DENABLE_POPPLER="$(usex pdf)" + -DENABLE_SLEPC="$(usex slepc)" + -DENABLE_PRIVATE_API="$(usex shared)" + -DENABLE_SYSTEM_CONTRIB="YES" + -DENABLE_VOROPP="$(usex voro)" + -DENABLE_WRAP_PYTHON="$(usex python)") + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use examples ; then + dodoc -r examples tutorials + docompress -x /usr/share/doc/${PF}/{examples,tutorials} + fi + + if use X ; then + newicon -s 64 "/${S}/utils/icons/gmsh-no-text.png" gmsh.png + make_desktop_entry "/usr/bin/gmsh" "Gmsh ${PV}" "gmsh" "Science;Math" + fi +} + +pkg_postinst() { + if use X ; then + xdg_icon_cache_update + fi +} + +pkg_postrm() { + if use X ; then + xdg_icon_cache_update + fi +} diff --git a/sci-libs/gmsh/gmsh-4.12.2.ebuild b/sci-libs/gmsh/gmsh-4.12.2.ebuild deleted file mode 100644 index bbc3d11637b6..000000000000 --- a/sci-libs/gmsh/gmsh-4.12.2.ebuild +++ /dev/null @@ -1,137 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) - -inherit cmake desktop fortran-2 python-any-r1 toolchain-funcs xdg-utils - -DESCRIPTION="Three-dimensional finite element mesh generator" -HOMEPAGE="https://gmsh.info https://gitlab.onelab.info/gmsh/gmsh" -SRC_URI="https://gmsh.info/src/${P}-source.tgz" -S="${WORKDIR}/${P}-source" - -LICENSE=" - GPL-2+ free-noncomm - alglib? ( MIT ) - gmm? ( LGPL-2.1+ ) - metis? ( Apache-2.0 ) - netgen? ( LGPL-2.1+ ) - voro? ( BSD ) -" -SLOT="0" -KEYWORDS="~amd64 ~x86" -## cgns is not compiling ATM, maybe fix cgns lib first -IUSE="+alglib +blas cgns eigen examples +gmm jpeg med metis mpi mumps netgen opencascade petsc pdf png python shared slepc X voro zlib" - -REQUIRED_USE=" - ^^ ( blas eigen ) - mumps? ( blas ) - slepc? ( petsc ) - " - -RDEPEND=" - virtual/fortran - X? ( x11-libs/fltk:1[xft] ) - alglib? ( sci-libs/alglib ) - blas? ( - virtual/blas - virtual/lapack - sci-libs/fftw:3.0 - ) - cgns? ( - sci-libs/cgnslib - sci-libs/hdf5[mpi=] - ) - eigen? ( dev-cpp/eigen ) - gmm? ( sci-mathematics/gmm ) - jpeg? ( media-libs/libjpeg-turbo ) - med? ( - sci-libs/med[mpi=] - sci-libs/hdf5[mpi=] - ) - metis? ( >=sci-libs/metis-5.2.0 ) - mpi? ( virtual/mpi[cxx] ) - mumps? ( sci-libs/mumps[mpi=] ) - opencascade? ( sci-libs/opencascade:* ) - pdf? ( app-text/poppler:= ) - png? ( media-libs/libpng:0 ) - petsc? ( sci-mathematics/petsc[mpi=] ) - slepc? ( sci-mathematics/slepc[mpi=] ) - voro? ( sci-libs/voro++ ) - zlib? ( sys-libs/zlib ) - " - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - python? ( dev-lang/swig:0 ) - " - -PATCHES=( - "${FILESDIR}"/${PN}-4.9.5-opencascade.patch - "${FILESDIR}"/${PN}-4.11.1-metis-5-2.patch -) - -pkg_setup() { - fortran-2_pkg_setup -} - -src_configure() { - local mycmakeargs=( ) - - use blas && \ - mycmakeargs+=(-DCMAKE_Fortran_COMPILER=$(tc-getF77)) - - mycmakeargs+=( - -DENABLE_ALGLIB="$(usex alglib)" - -DENABLE_BLAS_LAPACK="$(usex blas)" - -DENABLE_BUILD_DYNAMIC="$(usex shared)" - -DENABLE_CGNS="$(usex cgns)" - -DENABLE_EIGEN="$(usex eigen)" - -DENABLE_FLTK="$(usex X)" - -DENABLE_GMM="$(usex gmm)" - -DENABLE_GRAPHICS="$(usex X)" - -DENABLE_MED="$(usex med)" - -DENABLE_MPI="$(usex mpi)" - -DENABLE_METIS="$(usex metis)" - -DENABLE_MUMPS="$(usex mumps)" - -DENABLE_NETGEN="$(usex netgen)" - -DENABLE_OCC="$(usex opencascade)" - -DENABLE_PETSC="$(usex petsc)" - -DENABLE_POPPLER="$(usex pdf)" - -DENABLE_SLEPC="$(usex slepc)" - -DENABLE_PRIVATE_API="$(usex shared)" - -DENABLE_SYSTEM_CONTRIB="YES" - -DENABLE_VOROPP="$(usex voro)" - -DENABLE_WRAP_PYTHON="$(usex python)") - - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use examples ; then - dodoc -r examples tutorials - docompress -x /usr/share/doc/${PF}/{examples,tutorials} - fi - - if use X ; then - newicon -s 64 "/${S}/utils/icons/gmsh-no-text.png" gmsh.png - make_desktop_entry "/usr/bin/gmsh" "Gmsh ${PV}" "gmsh" "Science;Math" - fi -} - -pkg_postinst() { - if use X ; then - xdg_icon_cache_update - fi -} - -pkg_postrm() { - if use X ; then - xdg_icon_cache_update - fi -} diff --git a/sci-libs/h5part/Manifest b/sci-libs/h5part/Manifest index 96ed23a6a3e4..7048091e4994 100644 --- a/sci-libs/h5part/Manifest +++ b/sci-libs/h5part/Manifest @@ -1,4 +1,4 @@ AUX h5part-1.6.6-mpio.patch 948 BLAKE2B fb85c4cb0457a7f65212592c26ed1aeb8e917a9ebb4dbc8904c269bef6a8bc91f87e655de4a5f3e728d888bcd2526007de0cb10fab360cd079cd97a2e58e6834 SHA512 41ae0a9b9f2ae84b29133879136b392cf58c68ab75195179c7b95600bc693b3f6d2ab74533285a3727590f5aac61db2d9f4c9c732720fba15164fea8f29e7a34 DIST H5Part-1.6.6.tar.gz 441755 BLAKE2B bc0027a91cc5f28009dc1b716fe548c670307ca19782158314d3358e66091608cf81149dece1fddf4f279aa920b06930019a26c5f34e4e3ce58df80d003ff5e6 SHA512 0842017bfe1510746e6f9451daaaaff3d9f6eee5209e241bcc8f2d0ce96450b8929f718c41a3434f53c9457adc2547628ad57ac8a0fb1cbfb7c74862aebf996d -EBUILD h5part-1.6.6.ebuild 633 BLAKE2B cc0ed8a05ea69d4e127f82f967aae5fd79bf4c7f8f225094d5c3ade7eced71b254c536caf9a69ed1f40de535ce807c81ca5b30c5829d729d809d63a2dadf6083 SHA512 e4424921c2a1fbf252bb1cf3c38df89f3d2f8302ebabb5bc5462248d1155b98865967cbfd8d96e9db2b86a5b30f6b88e613ab82d0b79fba8105de343eeb33889 +EBUILD h5part-1.6.6-r1.ebuild 634 BLAKE2B c04b03ce27c26929d74694c88a5214a77ccf518287bd3d434a4e04f9039d2159c1cdfb99b5cb0592d600e10f4f2e318e1700c84cc4f050796c9dc84bfcfea58b SHA512 43a36c0c487ff845665a5ebc48458044ff8732ee32c662627d24f7a0706557c82111e1b7241c508dbd596ffab68828c42706a92e278e52294e4342a03bc49d4b MISC metadata.xml 254 BLAKE2B b855316ec6a32691e84730979c9a077765d46802f09c19f3a06f2cddf677674c9a2ea24c9b57a0fc6344d7f70276ca507a68f5fa690555360665ac494fca54c2 SHA512 5f6faacd216c7ece09e847c09115add5261e7a899e0b0c9304f2ee72e2d0ad208338939e4e37946008bdc81fbbacf415fb220c5c1f9832b17f18c6778d0c0368 diff --git a/sci-libs/h5part/h5part-1.6.6-r1.ebuild b/sci-libs/h5part/h5part-1.6.6-r1.ebuild new file mode 100644 index 000000000000..388a4fe89c55 --- /dev/null +++ b/sci-libs/h5part/h5part-1.6.6-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P="${P^^[hp]}" +DESCRIPTION="Portable High Performance Parallel Data Interface to HDF5" +HOMEPAGE="https://vis.lbl.gov/archive/Research/H5Part/" +SRC_URI="https://codeforge.lbl.gov/frs/download.php/latestfile/18/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND=" + virtual/mpi + sci-libs/hdf5:=[mpi] +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-mpio.patch" ) + +S="${WORKDIR}/${MY_P}" + +src_configure() { + econf --enable-parallel --enable-shared --disable-static CC=mpicc CXX=mpicxx +} diff --git a/sci-libs/h5part/h5part-1.6.6.ebuild b/sci-libs/h5part/h5part-1.6.6.ebuild deleted file mode 100644 index 0c273f327813..000000000000 --- a/sci-libs/h5part/h5part-1.6.6.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -MY_P="${P^^[hp]}" -DESCRIPTION="Portable High Performance Parallel Data Interface to HDF5" -HOMEPAGE="https://vis.lbl.gov/archive/Research/H5Part/" -SRC_URI="https://codeforge.lbl.gov/frs/download.php/latestfile/18/${MY_P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="" - -DEPEND=" - virtual/mpi - sci-libs/hdf5[mpi] - " -RDEPEND="${DEPEND}" - -PATCHES=( "${FILESDIR}/${P}-mpio.patch" ) - -S="${WORKDIR}/${MY_P}" - -src_configure() { - econf --enable-parallel --enable-shared --disable-static CC=mpicc CXX=mpicxx -} diff --git a/sci-libs/hdf5/Manifest b/sci-libs/hdf5/Manifest index 451b2b31cca3..5c0d8455926f 100644 --- a/sci-libs/hdf5/Manifest +++ b/sci-libs/hdf5/Manifest @@ -22,5 +22,5 @@ EBUILD hdf5-1.12.2-r6.ebuild 3341 BLAKE2B c574efa933f240fae23049007c320138ea4335 EBUILD hdf5-1.14.1.ebuild 3078 BLAKE2B 30428ba92c299c92463276e3853c8332efb0904856749f6a6f716b2f07a58a7fc12c62a7298d15067af9b436a5e5f237c322ff30a942337ab9e65a4f1765074f SHA512 076ceaa6f8eb5330e8bf1913ddfc659524a4770e2df0d459b88ce41eec4d99e4e0b9da42f7b690b24bc678f15dd96ba8d20c443bbd9f4afe9c111abe5efc9f10 EBUILD hdf5-1.14.2.ebuild 3195 BLAKE2B cfd44a688f452cc36594ea74477d70896630ed84e8a420c4e22640341fad1e438e13d55fb8be5d8d7451fea84854bfc2a834a85bc8bfd09efcee573bdeac3e34 SHA512 f7c3e7853e395a6d9a2c1d42112c402ae11670a4afffc4645d04ad4b0f33d233a1bec0fb56795543c58ac25344af9937bcc19a2245b7e38e0d1af4a2d1a7d5b4 EBUILD hdf5-1.14.3-r1.ebuild 3180 BLAKE2B 172e1d8242ba4547b49d24fc64d8a7ff39464441ef7599be5b3277c270c2de0d1183275419bdc38d6e36a7069e9de0aba30c96af656eb229666a475023c83e18 SHA512 99104a2b0f3be639f0e28bf24a0705fd28e20b5a2e5bb54600f36625f34ec956c356a26c46f7507b8efb1924f35ca63291241ef560119bd483a57b78686a35f3 -EBUILD hdf5-1.14.4_p2.ebuild 3158 BLAKE2B 9aba93d8c3d12aa16ad90af6db10e8fb38ab1e2dc028398972bef49db21497716d86c604b3b6acaaa3d7930dafdd235035990d8a4d589a456646bd23f5c5cf59 SHA512 f00ecd22e78b2e36421858219f60920ff8531d402e286e6497ec5ed9c08e9a938657e040a9e54b9e4f7675595b0640a05cfd042541d66d9fe81df6a02671a77d +EBUILD hdf5-1.14.4_p2.ebuild 3231 BLAKE2B 6b3e82d92b01d1d21c2aedae212f6f40aeee4dd7d2067cd6036983ade176313f91d83208af31ce3918c7d9d45ad540262ebbc0d2d8c5f39fc18e47ddd65cd4e2 SHA512 931342bdbf4f8aa47fc511be92ec6b79f87cdee45371465e46bc51560bab2f68128c736c298bdd825f13ebb446fb625c99acb5096afd969406e48fd4a07a083b MISC metadata.xml 826 BLAKE2B fd131bb207e4ab863ef7c05ab95e5c0254fa08230139a2508ab5f0c363809b0735532498ad26cc39621495a063de86ab5bd97447514ff561a63302e8b1d7d26d SHA512 290883ed9bf3de60bf04e2474c4db50e095b1b87974867e58601a5c5c2f98d6b839ed22d9ce2798bc44f484f1a38ee4b6df99aaea7d134629bd441d34b5a29b5 diff --git a/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild b/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild index b71c204edfea..e0e67c452ed5 100644 --- a/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild +++ b/sci-libs/hdf5/hdf5-1.14.4_p2.ebuild @@ -19,6 +19,7 @@ SRC_URI="https://github.com/HDFGroup/hdf5/releases/download/${PN}_${MY_PV/-/.}/$ S="${WORKDIR}/${MY_P}" LICENSE="NCSA-HDF" +# Upstream make SONAME changes all the time even within stable releases. SLOT="0/${PV%%_p*}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" IUSE="cxx debug examples fortran +hl mpi szip test threads unsupported zlib" diff --git a/sci-libs/mathgl/Manifest b/sci-libs/mathgl/Manifest index 856e8d04477d..8066f04039f9 100644 --- a/sci-libs/mathgl/Manifest +++ b/sci-libs/mathgl/Manifest @@ -1,4 +1,4 @@ AUX mathgl-libharu2.4.patch 887 BLAKE2B c4d990e935ea44488a327dae110c5ed964d6c2aaea641a37db6d8b7a33d4d83df9084fd66e066f89b6719894066d456557a73c23b6e5a97e1ddc22659ce69d20 SHA512 ad7926aa127770e01e39cdd50e49cdc24a9f803c2b23680e2c2e30f9387d2208e59f23e03af8bd602d072be98acf957f876d5f009185360a8657d654c800d18d DIST mathgl-8.0.1.tar.gz 23979834 BLAKE2B 275301c945ea15a38d1c75fd509c126425080b811403d5a8c8e864c8a975b914b5f0909bdc2c0de2feb84638ef0655694cd4d0c2aec8fb537c937147d81608c9 SHA512 1ff3023f1bbd7bfd84202777a0166a8d4255a020a07f3650b9858929345bc8a2ceea4db155d2c93ba32b762d2304474276290a9edac99fda70fb4b5bc12982c2 -EBUILD mathgl-8.0.1.ebuild 3267 BLAKE2B b925355605de0fff12760970a152455dc32b9af387973547b4f7b148698f02480dafe77e31a88e606b5cf17d7fbf5d39c32fac5f8524849e4fe4775d7f052ffa SHA512 957d84dfec93e42cf3c953004ce3cbd4207cd8e903c759f97b22794211dba2c7835b74eb79284d9c6f1d5c8cc70ebb0ed75171c5c86628409c21bc742140bd47 +EBUILD mathgl-8.0.1-r1.ebuild 3269 BLAKE2B 49b75bf46a3cff45826fbc0cf7396614642c4d2858fc6e05bac6290670116eaf6b97802c630800b7133159bb214252502c512f24162bba17645be64922d339d9 SHA512 a2cabdef8b95e7240646a55ab87e03d9b69ea9d0bd5726731596459b057a84354d4ee0ec5cf2cf870ee160379201aca003d9251e590069c77a6f091fb7e78422 MISC metadata.xml 803 BLAKE2B d7be6d97e0863b89b4552412524ac156afe31fd2f31ce578ca292c27142d815b45caede4f813eb47453d245f0a01822f373ae68c9a42a0a610c27ea9515c3c03 SHA512 368249558ef88b2fff699e35b6baa037981edba4b6d18fe2411a0858a157c6181feceae9a42ff1f192383a2a30a8e4bcbddd4a501a45d014aafd682858a507ea diff --git a/sci-libs/mathgl/mathgl-8.0.1-r1.ebuild b/sci-libs/mathgl/mathgl-8.0.1-r1.ebuild new file mode 100644 index 000000000000..8d2a2064061c --- /dev/null +++ b/sci-libs/mathgl/mathgl-8.0.1-r1.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +WX_GTK_VER="3.2-gtk3" + +inherit cmake wxwidgets multilib flag-o-matic xdg + +DESCRIPTION="Math Graphics Library" +HOMEPAGE="https://mathgl.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0/7.5.0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc fltk gif glut gsl hdf hdf5 jpeg mpi octave opengl openmp pdf + png qt5 static-libs threads wxwidgets zlib" + +LANGS="ru" +for l in ${LANGS}; do + IUSE+=" l10n_${l}" +done +unset l + +RDEPEND=" + virtual/opengl + fltk? ( x11-libs/fltk:1 ) + gif? ( media-libs/giflib ) + glut? ( media-libs/freeglut ) + gsl? ( >=sci-libs/gsl-2:= ) + hdf? ( sci-libs/hdf ) + hdf5? ( >=sci-libs/hdf5-1.8:=[mpi=] ) + jpeg? ( virtual/jpeg:0 ) + octave? ( >=sci-mathematics/octave-3.4.0 ) + openmp? ( sys-cluster/openmpi ) + pdf? ( media-libs/libharu ) + png? ( media-libs/libpng:0 ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + ) + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/texi2html virtual/texi2dvi ) + octave? ( dev-lang/swig )" + +REQUIRED_USE=" + mpi? ( hdf5 ) + openmp? ( !threads ) + png? ( zlib ) + pdf? ( png )" + +pkg_setup() { + use mpi && export CC=mpicc CXX=mpicxx +} + +PATCHES=( + # From Fedora + "${FILESDIR}"/${PN}-libharu2.4.patch +) + +src_prepare() { + # Prevent sandbox violation + sed -i -e 's/update-mime-database/true/' udav/CMakeLists.txt || die + sed -i -e 's/update-desktop-database/true/' udav/CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + use wxwidgets && setup-wxwidgets unicode + + local mycmakeargs=() + if use hdf; then + mycmakeargs+=( + -DHDF4_INCLUDE_DIR="${EPREFIX}/usr/include" + ) + fi + mycmakeargs+=( + # No clue about this option: + # option(enable-mgl2 "Use names 'libmgl2-*' instead of 'libmgl-*'") + -DMathGL_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" + -Denable-all-docs=$(usex doc) + -Denable-fltk=$(usex fltk) + -Denable-gif=$(usex gif) + -Denable-glut=$(usex glut) + -Denable-gsl=$(usex gsl) + -Denable-hdf4=$(usex hdf) + -Denable-hdf5=$(usex hdf5) + -Denable-jpeg=$(usex jpeg) + -Denable-mpi=$(usex mpi) + -Denable-octave=$(usex octave) + -Denable-opengl=$(usex opengl) + -Denable-openmp=$(usex openmp) + -Denable-pdf=$(usex pdf) + -Denable-png=$(usex png) + -Denable-qt4=OFF + -Denable-qt5=$(usex qt5) + -Denable-qt5asqt=$(usex qt5) + -Denable-pthread=$(usex threads) + -Denable-pthr-widget=$(usex threads) + -Denable-python=OFF + -Denable-wx=$(usex wxwidgets) + -Denable-zlib=$(usex zlib) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + dodoc README* *.txt AUTHORS + if ! use static-libs; then + rm "${ED}"/usr/$(get_libdir)/*.a || die + fi + if use qt5 ; then + local lang + insinto /usr/share/udav + for lang in ${LANGS} ; do + use l10n_${lang} && doins udav/udav_${lang}.qm + done + fi + if use octave ; then + insinto /usr/share/${PN}/octave + doins "${CMAKE_BUILD_DIR}"/lang/${PN}.tar.gz + fi +} + +pkg_postinst() { + if use octave; then + octave <<-EOF + pkg install ${EROOT}/usr/share/${PN}/octave/${PN}.tar.gz + EOF + fi + xdg_pkg_postinst +} + +pkg_prerm() { + if use octave; then + octave <<-EOF + pkg uninstall ${PN} + EOF + fi +} diff --git a/sci-libs/mathgl/mathgl-8.0.1.ebuild b/sci-libs/mathgl/mathgl-8.0.1.ebuild deleted file mode 100644 index bc9909e31c95..000000000000 --- a/sci-libs/mathgl/mathgl-8.0.1.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -WX_GTK_VER="3.2-gtk3" - -inherit cmake wxwidgets multilib flag-o-matic xdg - -DESCRIPTION="Math Graphics Library" -HOMEPAGE="https://mathgl.sourceforge.net" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="LGPL-3+" -SLOT="0/7.5.0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fltk gif glut gsl hdf hdf5 jpeg mpi octave opengl openmp pdf - png qt5 static-libs threads wxwidgets zlib" - -LANGS="ru" -for l in ${LANGS}; do - IUSE+=" l10n_${l}" -done -unset l - -RDEPEND=" - virtual/opengl - fltk? ( x11-libs/fltk:1 ) - gif? ( media-libs/giflib ) - glut? ( media-libs/freeglut ) - gsl? ( >=sci-libs/gsl-2:= ) - hdf? ( sci-libs/hdf ) - hdf5? ( >=sci-libs/hdf5-1.8[mpi=] ) - jpeg? ( virtual/jpeg:0 ) - octave? ( >=sci-mathematics/octave-3.4.0 ) - openmp? ( sys-cluster/openmpi ) - pdf? ( media-libs/libharu ) - png? ( media-libs/libpng:0 ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtprintsupport:5 - dev-qt/qtwidgets:5 - ) - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) - zlib? ( sys-libs/zlib )" -DEPEND="${RDEPEND}" -BDEPEND="doc? ( app-text/texi2html virtual/texi2dvi ) - octave? ( dev-lang/swig )" - -REQUIRED_USE=" - mpi? ( hdf5 ) - openmp? ( !threads ) - png? ( zlib ) - pdf? ( png )" - -pkg_setup() { - use mpi && export CC=mpicc CXX=mpicxx -} - -PATCHES=( - # From Fedora - "${FILESDIR}"/${PN}-libharu2.4.patch -) - -src_prepare() { - # Prevent sandbox violation - sed -i -e 's/update-mime-database/true/' udav/CMakeLists.txt || die - sed -i -e 's/update-desktop-database/true/' udav/CMakeLists.txt || die - cmake_src_prepare -} - -src_configure() { - use wxwidgets && setup-wxwidgets unicode - - local mycmakeargs=() - if use hdf; then - mycmakeargs+=( - -DHDF4_INCLUDE_DIR="${EPREFIX}/usr/include" - ) - fi - mycmakeargs+=( - # No clue about this option: - # option(enable-mgl2 "Use names 'libmgl2-*' instead of 'libmgl-*'") - -DMathGL_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" - -Denable-all-docs=$(usex doc) - -Denable-fltk=$(usex fltk) - -Denable-gif=$(usex gif) - -Denable-glut=$(usex glut) - -Denable-gsl=$(usex gsl) - -Denable-hdf4=$(usex hdf) - -Denable-hdf5=$(usex hdf5) - -Denable-jpeg=$(usex jpeg) - -Denable-mpi=$(usex mpi) - -Denable-octave=$(usex octave) - -Denable-opengl=$(usex opengl) - -Denable-openmp=$(usex openmp) - -Denable-pdf=$(usex pdf) - -Denable-png=$(usex png) - -Denable-qt4=OFF - -Denable-qt5=$(usex qt5) - -Denable-qt5asqt=$(usex qt5) - -Denable-pthread=$(usex threads) - -Denable-pthr-widget=$(usex threads) - -Denable-python=OFF - -Denable-wx=$(usex wxwidgets) - -Denable-zlib=$(usex zlib) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - dodoc README* *.txt AUTHORS - if ! use static-libs; then - rm "${ED}"/usr/$(get_libdir)/*.a || die - fi - if use qt5 ; then - local lang - insinto /usr/share/udav - for lang in ${LANGS} ; do - use l10n_${lang} && doins udav/udav_${lang}.qm - done - fi - if use octave ; then - insinto /usr/share/${PN}/octave - doins "${CMAKE_BUILD_DIR}"/lang/${PN}.tar.gz - fi -} - -pkg_postinst() { - if use octave; then - octave <<-EOF - pkg install ${EROOT}/usr/share/${PN}/octave/${PN}.tar.gz - EOF - fi - xdg_pkg_postinst -} - -pkg_prerm() { - if use octave; then - octave <<-EOF - pkg uninstall ${PN} - EOF - fi -} diff --git a/sci-libs/scalapack/Manifest b/sci-libs/scalapack/Manifest index fb30be7ba563..fdecc1d36f3f 100644 --- a/sci-libs/scalapack/Manifest +++ b/sci-libs/scalapack/Manifest @@ -1,4 +1,4 @@ DIST scalapack-2.1.0-gcc10.patch 231026 BLAKE2B dacecca8307cd2bf7a20e6453fb17bc1f5a3f2926b6d8f3b89f7f8d34993368574804f0427f228de4525f2b2d73105de561588ba5a4d2fb609d5ed035f51ddc9 SHA512 a11057599639c167e907f8e4d45204174fd326e2ffb9e2d05533db23d8e2dd8cfc1d37f06d5502baa3d5714092fbf4638cf4d9fea84ca9d4fb150e21cc57861e DIST scalapack-2.1.0.tgz 5307441 BLAKE2B 4aea055fc3e437bce7108d1555e93c50109bcfe84354903fd711509eedbe686349fda4030e2fa70faf1a9e7e3255e46e48c32b96a2916af6812b8aebceb750c2 SHA512 0e77fb535ebcc28e2d97499ef4bd5161f76ca0ba4a3e308c26ce5071cfc4be4f3814262f3fb38f378ce0b5b31c0913432fea00a1e9e3f7717b853d1182bdf5b4 -EBUILD scalapack-2.1.0.ebuild 2012 BLAKE2B 62162e5b8edb227b33f2d29e09fe97ae932a606563112075b171d2aab1d205751ff77ebc9376603c0e71ab9ca8fd53f203cf47ae3989428a343dc55fbb4ab2ab SHA512 2063c41101a86dc3f7a84a4fc465a3c13400d484d1ba64d5b411e147df348cea93f87ce7ef81e64ec8fd05edf4df15d4f746f2401a83b8914dc390288ad96931 +EBUILD scalapack-2.1.0-r1.ebuild 2022 BLAKE2B e9652e19ae412a257fcaaa0bc65455e798f3de89e151765555fd5f6591af068f133b52e5960ff5592c781ebffe5cf9bfb834d69aac3e5a9a09437f26eb1eb1fc SHA512 be296f5dbf49adff1eb1e0e09b9b2c5a6acbc80df598a4f0f2adea658ecbb1e05e9ecc0bbd1d7f6ffe06b371c852884d503b3f921b8a4e6df70d3d33b1f2eaba MISC metadata.xml 663 BLAKE2B 1ee0fc27d42f7a31f6cd38f7c4af6ac8a9010c40c2460409bb2e8885fb29c8c4345da17465a7b730d819712ed0b5324798de8b1e0ac6731928ba1f20ec78778f SHA512 bc348c99f67c4bec37415a716093d1dbdc429e1923b8850af8c4c23c801377296cac49764bae89fb8d3b5e403b37d995f06f127573cb9681e7caf4a20655c051 diff --git a/sci-libs/scalapack/scalapack-2.1.0-r1.ebuild b/sci-libs/scalapack/scalapack-2.1.0-r1.ebuild new file mode 100644 index 000000000000..192ee312b7ca --- /dev/null +++ b/sci-libs/scalapack/scalapack-2.1.0-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake flag-o-matic fortran-2 toolchain-funcs + +GCC10_PATCH_HASH="bc6cad585362aa58e05186bb85d4b619080c45a9" + +DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous (MPI) computing" +HOMEPAGE="https://www.netlib.org/scalapack/" +SRC_URI=" + https://www.netlib.org/scalapack/${P}.tgz + https://github.com/Reference-ScaLAPACK/scalapack/commit/${GCC10_PATCH_HASH}.patch -> ${P}-gcc10.patch + " + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + virtual/lapack + virtual/mpi[fortran] +" +DEPEND="${RDEPEND}" + +PATCHES=( "${DISTDIR}/${P}-gcc10.patch" ) + +src_prepare() { + cmake_src_prepare + + if use static-libs; then + mkdir "${WORKDIR}/${PN}_static" || die + fi + # mpi does not have a pc file + sed -i -e 's/mpi//' scalapack.pc.in || die +} + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/862924 + # https://github.com/Reference-ScaLAPACK/scalapack/issues/95 + # + # Do not trust it for LTO either. + append-flags -fno-strict-aliasing + filter-lto + + scalapack_configure() { + local mycmakeargs=( + -DUSE_OPTIMIZED_LAPACK_BLAS=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + -DBUILD_TESTING=$(usex test) + $@ + ) + cmake_src_configure + } + + scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \ + -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON +} + +src_compile() { + cmake_src_compile + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake_src_compile +} + +src_install() { + cmake_src_install + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake_src_install + + insinto /usr/include/blacs + doins BLACS/SRC/*.h + + insinto /usr/include/scalapack + doins PBLAS/SRC/*.h +} diff --git a/sci-libs/scalapack/scalapack-2.1.0.ebuild b/sci-libs/scalapack/scalapack-2.1.0.ebuild deleted file mode 100644 index 843d2ff0d166..000000000000 --- a/sci-libs/scalapack/scalapack-2.1.0.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake flag-o-matic fortran-2 toolchain-funcs - -GCC10_PATCH_HASH="bc6cad585362aa58e05186bb85d4b619080c45a9" - -DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous (MPI) computing" -HOMEPAGE="https://www.netlib.org/scalapack/" -SRC_URI=" - https://www.netlib.org/scalapack/${P}.tgz - https://github.com/Reference-ScaLAPACK/scalapack/commit/${GCC10_PATCH_HASH}.patch -> ${P}-gcc10.patch - " - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" -IUSE="static-libs test" -RESTRICT="!test? ( test )" - -BDEPEND="virtual/pkgconfig" -RDEPEND=" - virtual/lapack - virtual/mpi" -DEPEND="${RDEPEND}" - -PATCHES=( "${DISTDIR}/${P}-gcc10.patch" ) - -src_prepare() { - cmake_src_prepare - - if use static-libs; then - mkdir "${WORKDIR}/${PN}_static" || die - fi - # mpi does not have a pc file - sed -i -e 's/mpi//' scalapack.pc.in || die -} - -src_configure() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/862924 - # https://github.com/Reference-ScaLAPACK/scalapack/issues/95 - # - # Do not trust it for LTO either. - append-flags -fno-strict-aliasing - filter-lto - - scalapack_configure() { - local mycmakeargs=( - -DUSE_OPTIMIZED_LAPACK_BLAS=ON - -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" - -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" - -DBUILD_TESTING=$(usex test) - $@ - ) - cmake_src_configure - } - - scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF - use static-libs && \ - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \ - -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -} - -src_compile() { - cmake_src_compile - use static-libs && \ - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake_src_compile -} - -src_install() { - cmake_src_install - use static-libs && \ - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake_src_install - - insinto /usr/include/blacs - doins BLACS/SRC/*.h - - insinto /usr/include/scalapack - doins PBLAS/SRC/*.h -} diff --git a/sci-libs/silo/Manifest b/sci-libs/silo/Manifest index e5f53ed34345..ab02b2a7379f 100644 --- a/sci-libs/silo/Manifest +++ b/sci-libs/silo/Manifest @@ -7,6 +7,6 @@ AUX silo-4.11-widgets.patch 390 BLAKE2B 72a6e08cbbcfb17a11c3d56a59aaa5c5931f888e AUX silo-4.11.1-gcc14-tests.patch 1422 BLAKE2B 2ffba46cf7630ac454527b4148d2693e0a950d176aff3e0295d6495657ec3b4ca355e6c5382ea0a0f7fbdf80e3525047e4e689764730b2a2cb68e72f5a7fd480 SHA512 f03ad4016e1f5b46492ef50880f229ce398fb466cf6bf5462167f7c7f9f2aaf6c6deb8713b0adefb0cd45ab9a8989a901e3637fb3ad9177ad6d7beb872f39fb3 DIST silo-4.11-bsd.tgz 13298515 BLAKE2B fcf2e7912381e57d1a64644d3cee4dea50302c12704eaf0ee9e2569b7bc29b1d5c9df66878744ffc2cc04e16834fdf1cd4d677983af36005e4ecf0918c6283d5 SHA512 f642dd21dacffa147aea54d6f8669c704772d5640d6eb7eeff1d7e5e5d37ddbde250d78bad30e9478dcfec63a86863243d7a56cd9b692eaefdd7a89b34df35d0 DIST silo-4.11.1-bsd.tar.xz 4581480 BLAKE2B 577bb9e367cae08496ec2062ce7b1fc6ebd04a8221bfb304585ea8b338502793a8ba43c14dbf8a7fd1f61b3c8a3a7886da1e9a7f9a1972d2a9cb69d5e36362e3 SHA512 e4ecfc434b43ea0bd2e3cda469f5e232b0bdfd25a44da04e77f2213ff20fd4158bc085d16b10de22d9a4be0ce822899e2b7f20c53b4d4bd941f92357a873c4a2 -EBUILD silo-4.11-r1.ebuild 1547 BLAKE2B 1cda073f5fe092f44361ef5fed0874367990d48a1e11a66b6e1c6afdaf8d62fbf1a0fa96128edf7cb78e07f8309e4ef56e005ff91fd0c89f48dcc88d28f128d6 SHA512 6a7f6d2891dcffec9c49e89734daa0268d2e5fd6d2e2124d6f62eb4d6f74baa5dad747c849a45d7b155b0a266e139d51bb6df552293e1b7678cb7eefb9a0f713 -EBUILD silo-4.11.1.ebuild 1726 BLAKE2B 61b78cf03e445cad4732c7e644becfc7897875df04a46c8fd9ce1a62ae34463598b99893e9824de8d8f9f2c79b5abaa5dc6a2a01ed12e496cfe10ef578a2a962 SHA512 27b3a57f86d721ee5c2dc741b5ceb38ad3c5f0814d407827ad9ce9361e8fb67e7347d79722b9bca821f8127c7a760641bdaad5450212305e560d0f50a4ec237b +EBUILD silo-4.11-r2.ebuild 1549 BLAKE2B 25457781d18a522549c1befe460dc5c1d6bbeb46f78affb3d628ad722e82c40532cc73a2bfd28cf6c93da2e67ca13b48b8bcf1b927ed3dc206fd598b365ff560 SHA512 99df61816fb14f869f73e50ea881e8621e77da490423329da0e32d49876d04abe172556477a1e81ccda6ee1ef29d2d84334333895f04d32244c9c43adaeaa528 +EBUILD silo-4.11.1-r1.ebuild 1728 BLAKE2B 3c5e1ef14758f125d68656b45e5d74f4ba5bbbf520c5232f48e9bb03817ef21af3eb0e64daee49ac12dfdd049196730be349ba02a07c30ec444591258c75b5d5 SHA512 eaf4710e20ee0e2781506481f078afb79a69cc672ea6b8b7606545b4aa1eb34e28be60f5daffed0a22a30c136f11e532a40393d4ef8a86c49645bc9d70c5a5aa MISC metadata.xml 807 BLAKE2B b5d98ef9db8a72de3bacab38667e5c35c47ee5cf095dd37731be1ece1ee79c8cea32569ed53132c1a4c55bfc11c58a12e44c6093b348ba0fb518963cef12520e SHA512 5dddf9fdad80a1bc7a0de8db597d7fd101e452c6af700add0e2c96848d14c1eb2c59368ce854783da6be7e3fc6b55229b2af19f7ce301948816f5ba7a9344476 diff --git a/sci-libs/silo/silo-4.11-r1.ebuild b/sci-libs/silo/silo-4.11-r1.ebuild deleted file mode 100644 index bfae9dec06c8..000000000000 --- a/sci-libs/silo/silo-4.11-r1.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic fortran-2 qmake-utils - -DESCRIPTION="A mesh and field I/O library and scientific database" -HOMEPAGE="https://wci.llnl.gov/simulation/computer-codes/silo" -SRC_URI="https://wci.llnl.gov/sites/wci/files/2021-09/${P}-bsd.tgz" -S="${WORKDIR}/${P}-bsd" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="browser +hdf5 +silex" - -# see bugs 656432 and 741741 -RDEPEND=" - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - net-dialup/lrzsz - virtual/szip - hdf5? ( sci-libs/hdf5 ) -" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5" - -PATCHES=( - "${FILESDIR}"/${P}-hdf5.patch - "${FILESDIR}"/${P}-test-disable-largefile.patch - "${FILESDIR}"/${P}-tests.patch - "${FILESDIR}"/${P}-testsuite-python-write.patch - "${FILESDIR}"/${P}-widgets.patch - "${FILESDIR}"/${P}-qtbindir.patch -) - -src_configure() { - # add fflags for fixing test bug on matf77.f - # see https://github.com/LLNL/Silo/issues/234 - append-fflags $(test-flags-F77 -fallow-argument-mismatch) - - QMAKE=$(qt5_get_bindir)/qmake \ - QT_BIN_DIR=$(qt5_get_bindir) \ - econf \ - --enable-install-lite-headers \ - --enable-shared \ - $(use_enable silex silex ) \ - $(use_enable browser browser ) \ - $(use_with hdf5 hdf5 "${EPREFIX}"/usr/include,"${EPREFIX}"/usr/$(get_libdir) ) -} - -src_test() { - # see https://github.com/LLNL/Silo/issues/236 - # some tests are skipped by default so we are gonna drop them directly - emake ATARGS="1-34 36-44 50-51 66-76 78-81" -C tests check -} diff --git a/sci-libs/silo/silo-4.11-r2.ebuild b/sci-libs/silo/silo-4.11-r2.ebuild new file mode 100644 index 000000000000..6031d9f47ae3 --- /dev/null +++ b/sci-libs/silo/silo-4.11-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic fortran-2 qmake-utils + +DESCRIPTION="A mesh and field I/O library and scientific database" +HOMEPAGE="https://wci.llnl.gov/simulation/computer-codes/silo" +SRC_URI="https://wci.llnl.gov/sites/wci/files/2021-09/${P}-bsd.tgz" +S="${WORKDIR}/${P}-bsd" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="browser +hdf5 +silex" + +# see bugs 656432 and 741741 +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + net-dialup/lrzsz + virtual/szip + hdf5? ( sci-libs/hdf5:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-qt/linguist-tools:5" + +PATCHES=( + "${FILESDIR}"/${P}-hdf5.patch + "${FILESDIR}"/${P}-test-disable-largefile.patch + "${FILESDIR}"/${P}-tests.patch + "${FILESDIR}"/${P}-testsuite-python-write.patch + "${FILESDIR}"/${P}-widgets.patch + "${FILESDIR}"/${P}-qtbindir.patch +) + +src_configure() { + # add fflags for fixing test bug on matf77.f + # see https://github.com/LLNL/Silo/issues/234 + append-fflags $(test-flags-F77 -fallow-argument-mismatch) + + QMAKE=$(qt5_get_bindir)/qmake \ + QT_BIN_DIR=$(qt5_get_bindir) \ + econf \ + --enable-install-lite-headers \ + --enable-shared \ + $(use_enable silex silex ) \ + $(use_enable browser browser ) \ + $(use_with hdf5 hdf5 "${EPREFIX}"/usr/include,"${EPREFIX}"/usr/$(get_libdir) ) +} + +src_test() { + # see https://github.com/LLNL/Silo/issues/236 + # some tests are skipped by default so we are gonna drop them directly + emake ATARGS="1-34 36-44 50-51 66-76 78-81" -C tests check +} diff --git a/sci-libs/silo/silo-4.11.1-r1.ebuild b/sci-libs/silo/silo-4.11.1-r1.ebuild new file mode 100644 index 000000000000..7028cae194f0 --- /dev/null +++ b/sci-libs/silo/silo-4.11.1-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic fortran-2 qmake-utils + +DESCRIPTION="A mesh and field I/O library and scientific database" +HOMEPAGE="https://software.llnl.gov/Silo/" +SRC_URI="https://github.com/LLNL/Silo/releases/download/${PV}/${P}-bsd.tar.xz" +S="${WORKDIR}/${P}-bsd" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="browser +hdf5 +silex" + +# see bugs 656432 and 741741 +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + net-dialup/lrzsz + virtual/szip + hdf5? ( sci-libs/hdf5:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-qt/linguist-tools:5" + +PATCHES=( + "${FILESDIR}"/${PN}-4.11-test-disable-largefile.patch + "${FILESDIR}"/${PN}-4.11-tests.patch + "${FILESDIR}"/${PN}-4.11-testsuite-python-write.patch + "${FILESDIR}"/${PN}-4.11-widgets.patch + "${FILESDIR}"/${PN}-4.11-qtbindir.patch + "${FILESDIR}"/${PN}-4.11.1-gcc14-tests.patch +) + +src_configure() { + # bug #862927 and https://github.com/LLNL/Silo/issues/248 + append-flags -fno-strict-aliasing + filter-lto + + # add fflags for fixing test bug on matf77.f + # see https://github.com/LLNL/Silo/issues/234 + append-fflags $(test-flags-F77 -fallow-argument-mismatch) + + CONFIG_SHELL="${BROOT}"/bin/bash \ + QMAKE=$(qt5_get_bindir)/qmake \ + QT_BIN_DIR=$(qt5_get_bindir) \ + econf \ + --enable-install-lite-headers \ + --enable-shared \ + $(use_enable silex silex ) \ + $(use_enable browser browser ) \ + $(use_with hdf5 hdf5 "${EPREFIX}"/usr/include,"${EPREFIX}"/usr/$(get_libdir) ) +} + +src_test() { + # see https://github.com/LLNL/Silo/issues/236 + # some tests are skipped by default so we are gonna drop them directly + emake ATARGS="1-34 36-44 50-51 66-76 78-81" -C tests check +} diff --git a/sci-libs/silo/silo-4.11.1.ebuild b/sci-libs/silo/silo-4.11.1.ebuild deleted file mode 100644 index 78b80eb13d33..000000000000 --- a/sci-libs/silo/silo-4.11.1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic fortran-2 qmake-utils - -DESCRIPTION="A mesh and field I/O library and scientific database" -HOMEPAGE="https://software.llnl.gov/Silo/" -SRC_URI="https://github.com/LLNL/Silo/releases/download/${PV}/${P}-bsd.tar.xz" -S="${WORKDIR}/${P}-bsd" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="browser +hdf5 +silex" - -# see bugs 656432 and 741741 -RDEPEND=" - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - net-dialup/lrzsz - virtual/szip - hdf5? ( sci-libs/hdf5 ) -" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5" - -PATCHES=( - "${FILESDIR}"/${PN}-4.11-test-disable-largefile.patch - "${FILESDIR}"/${PN}-4.11-tests.patch - "${FILESDIR}"/${PN}-4.11-testsuite-python-write.patch - "${FILESDIR}"/${PN}-4.11-widgets.patch - "${FILESDIR}"/${PN}-4.11-qtbindir.patch - "${FILESDIR}"/${PN}-4.11.1-gcc14-tests.patch -) - -src_configure() { - # bug #862927 and https://github.com/LLNL/Silo/issues/248 - append-flags -fno-strict-aliasing - filter-lto - - # add fflags for fixing test bug on matf77.f - # see https://github.com/LLNL/Silo/issues/234 - append-fflags $(test-flags-F77 -fallow-argument-mismatch) - - CONFIG_SHELL="${BROOT}"/bin/bash \ - QMAKE=$(qt5_get_bindir)/qmake \ - QT_BIN_DIR=$(qt5_get_bindir) \ - econf \ - --enable-install-lite-headers \ - --enable-shared \ - $(use_enable silex silex ) \ - $(use_enable browser browser ) \ - $(use_with hdf5 hdf5 "${EPREFIX}"/usr/include,"${EPREFIX}"/usr/$(get_libdir) ) -} - -src_test() { - # see https://github.com/LLNL/Silo/issues/236 - # some tests are skipped by default so we are gonna drop them directly - emake ATARGS="1-34 36-44 50-51 66-76 78-81" -C tests check -} -- cgit v1.2.3