From 3517852e3b8a68d1e997770fc0650c5053bafc6c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 4 Jan 2022 01:27:12 +0000 Subject: gentoo resync : 04.01.2022 --- sci-libs/trilinos/Manifest | 2 +- sci-libs/trilinos/trilinos-13.0.1-r1.ebuild | 218 ---------------------------- sci-libs/trilinos/trilinos-13.0.1-r2.ebuild | 218 ++++++++++++++++++++++++++++ 3 files changed, 219 insertions(+), 219 deletions(-) delete mode 100644 sci-libs/trilinos/trilinos-13.0.1-r1.ebuild create mode 100644 sci-libs/trilinos/trilinos-13.0.1-r2.ebuild (limited to 'sci-libs/trilinos') diff --git a/sci-libs/trilinos/Manifest b/sci-libs/trilinos/Manifest index 73efbe7d92b9..891cd5ed7f7e 100644 --- a/sci-libs/trilinos/Manifest +++ b/sci-libs/trilinos/Manifest @@ -1,4 +1,4 @@ DIST trilinos-13.0.0-patches-r0.tar.xz 7672 BLAKE2B 6412f1226549086ef2fca3c4d8bba3c5541489879f4fa37c3598a7271128e3232fa1cc56a51d44fb88d679458a79a082c3984085ddbe4bc0884b0cb45ba683c0 SHA512 91372fe0f47a1f5d4dbc1856e2cfb9d4f1eb8cc0de941013a7a6e791730c9e10decdcd4ca39b36bae836ac66040bee70af187b4a056d46b0da0fe72e8c5943fc DIST trilinos-13.0.1.tar.gz 157950374 BLAKE2B 79f337b02a0fe9ddf7b55334e035946204b3bb469b92fff4063896a378c82d9c5f04c0bf0e9ddd21603ecf9d84a91860606482b545916f16029a11d2b6c64aa0 SHA512 22241a9ad8b6b6ab9117aba254f65195fc0c8e1b52eacb16e763c999086b6da6b0c180d8864fbe421704e0fe0c433d37512099755d54e60f13ed525dc6c0fd57 -EBUILD trilinos-13.0.1-r1.ebuild 6342 BLAKE2B 2cc0a163be87af555ac3a5d729ef4a54cba57364ec50fd4cfb7d5ad1beefbccf6daba09ab0ebb4fc34675159b19dbfe6918bfe109ff614f0307a242507deea65 SHA512 3c889163359b0b706c543cfbd91dd2c835ceaae7a3dc37d5c123c91dc6ed59f73804aa92371503655313600ff46ae5e04ed2e8d7e628a38e43003e7a219bd33f +EBUILD trilinos-13.0.1-r2.ebuild 6356 BLAKE2B 6b0106b2d0a830e222d9551155ab3b082239b4d5be8ca0f98564b5842652b87a0c11ac7c1b87bb357c24756e0557e903653f5a71e8bfc60195e24551d0a8a6c7 SHA512 6b8444aff5763c279f8b68130f621475754bb507203504bde30302b23388bc006bd4ada1f06e6f603d55880bf290495ede9f96736242622f9cdbdb948e6c6f15 MISC metadata.xml 2701 BLAKE2B 3899b8aa8424eca96d406c0ae3d66d30ed0d44a2070c9e5844b456730b89d8017feba10c5c75e1bcd6d3649a6ba37d044fa14f2822eb883b2b72bdb1667c32c7 SHA512 888dc051b32d4b3e227d3cca17bf64ec5885169c59669944a522d5d304ea2a5fa19854524b48e61ae3bb6c8483e717329d6384836301b691f6de15f6d13ed114 diff --git a/sci-libs/trilinos/trilinos-13.0.1-r1.ebuild b/sci-libs/trilinos/trilinos-13.0.1-r1.ebuild deleted file mode 100644 index 2af37197c730..000000000000 --- a/sci-libs/trilinos/trilinos-13.0.1-r1.ebuild +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_MAKEFILE_GENERATOR=emake -inherit cmake toolchain-funcs multilib - -DESCRIPTION="Scientific library collection for large scale problems" -HOMEPAGE="http://trilinos.sandia.gov/" -MY_PV="${PV//\./-}" -PATCHSET="r0" -SRC_URI="https://github.com/${PN}/Trilinos/archive/${PN}-release-${MY_PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~tamiko/distfiles/${PN}-13.0.0-patches-${PATCHSET}.tar.xz" - -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -LICENSE="BSD LGPL-2.1" -SLOT="0" - -IUSE=" - adolc arprec clp cuda eigen glpk gtest hdf5 hwloc hypre - matio metis mkl mumps netcdf petsc qd scalapack scotch sparse - superlu taucs tbb test threads tvmet yaml zlib X -" - -# TODO: fix export cmake function for tests -RESTRICT="test" - -RDEPEND=" - !dev-cpp/kokkos - dev-libs/boost:= - sys-libs/binutils-libs - virtual/blas - virtual/lapack - virtual/mpi - adolc? ( sci-libs/adolc ) - arprec? ( sci-libs/arprec ) - clp? ( sci-libs/coinor-clp ) - cuda? ( >=dev-util/nvidia-cuda-toolkit-3.2 ) - eigen? ( dev-cpp/eigen:3 ) - glpk? ( sci-mathematics/glpk ) - gtest? ( dev-cpp/gtest ) - hdf5? ( sci-libs/hdf5[mpi] ) - hypre? ( sci-libs/hypre ) - hwloc? ( sys-apps/hwloc:= ) - matio? ( sci-libs/matio ) - mkl? ( sci-libs/mkl ) - metis? ( sci-libs/metis ) - mumps? ( sci-libs/mumps ) - netcdf? ( sci-libs/netcdf ) - petsc? ( sci-mathematics/petsc ) - qd? ( sci-libs/qd ) - scalapack? ( sci-libs/scalapack ) - scotch? ( sci-libs/scotch ) - sparse? ( sci-libs/cxsparse sci-libs/umfpack ) - superlu? ( sci-libs/superlu ) - taucs? ( sci-libs/taucs ) - tbb? ( dev-cpp/tbb:= ) - tvmet? ( dev-libs/tvmet ) - yaml? ( dev-cpp/yaml-cpp ) - zlib? ( sys-libs/zlib ) - X? ( x11-libs/libX11 )" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -S="${WORKDIR}/Trilinos-${PN}-release-${MY_PV}" - -PATCHES=( - "${WORKDIR}"/patches -) - -trilinos_conf() { - local dirs libs d - for d in $($(tc-getPKG_CONFIG) --libs-only-L $1); do - dirs="${dirs};${d:2}" - done - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_DIRS=${dirs:1}" ) - for d in $($(tc-getPKG_CONFIG) --libs-only-l $1); do - libs="${libs};${d:2}" - done - [[ -n ${libs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_NAMES=${libs:1}" ) - dirs="" - for d in $($(tc-getPKG_CONFIG) --cflags-only-I $1); do - dirs="${dirs};${d:2}" - done - [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_INCLUDE_DIRS=${dirs:1}" ) -} - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=ON - -DCMAKE_INSTALL_PREFIX="${EPREFIX}" - -DCMAKE_SKIP_INSTALL_RPATH=ON - -DTrilinos_INSTALL_CONFIG_DIR="${EPREFIX}/usr/$(get_libdir)/cmake" - -DTrilinos_INSTALL_INCLUDE_DIR="${EPREFIX}/usr/include/trilinos" - -DTrilinos_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/trilinos" - -DTrilinos_ENABLE_ALL_PACKAGES=ON - -DTrilinos_ENABLE_PyTrilinos=OFF - -DTrilinos_ENABLE_SEACAS=OFF - -DTrilinos_ENABLE_SEACASChaco=OFF - -DTrilinos_ENABLE_SEACASExodiff="$(usex netcdf)" - -DTrilinos_ENABLE_SEACASExodus="$(usex netcdf)" - -DTrilinos_ENABLE_TESTS="$(usex test)" - -DTPL_ENABLE_BinUtils=ON - -DTPL_ENABLE_BLAS=ON - -DTPL_ENABLE_LAPACK=ON - -DTPL_ENABLE_MPI=ON - -DTPL_ENABLE_ADOLC="$(usex adolc)" - -DTPL_ENABLE_AMD="$(usex sparse)" - -DTPL_ENABLE_ARPREC="$(usex arprec)" - -DTPL_ENABLE_BLACS="$(usex scalapack)" - -DTPL_ENABLE_BoostLib=ON - -DTPL_ENABLE_Boost=ON - -DTPL_ENABLE_Clp="$(usex clp)" - -DTPL_ENABLE_CSparse="$(usex sparse)" - -DTPL_ENABLE_CUDA="$(usex cuda)" - -DTPL_ENABLE_CUSPARSE="$(usex cuda)" - -DTPL_ENABLE_Eigen="$(usex eigen)" - -DTPL_ENABLE_GLPK="$(usex glpk)" - -DTPL_ENABLE_gtest="$(usex gtest)" - -DTPL_ENABLE_HDF5="$(usex hdf5)" - -DTPL_ENABLE_HWLOC="$(usex hwloc)" - -DTPL_ENABLE_HYPRE="$(usex hypre)" - -DTPL_ENABLE_Matio="$(usex matio)" - -DTPL_ENABLE_METIS="$(usex metis)" - -DTPL_ENABLE_MKL="$(usex mkl)" - -DTPL_ENABLE_MUMPS="$(usex mumps)" - -DTPL_ENABLE_Netcdf="$(usex netcdf)" - -DTPL_ENABLE_PARDISO_MKL="$(usex mkl)" - -DTPL_ENABLE_PETSC="$(usex petsc)" - -DTPL_ENABLE_Pthread="$(usex threads)" - -DTPL_ENABLE_QD="$(usex qd)" - -DTPL_ENABLE_SCALAPACK="$(usex scalapack)" - -DTPL_ENABLE_Scotch="$(usex scotch)" - -DTPL_ENABLE_SuperLU="$(usex superlu)" - -DTPL_ENABLE_TAUCS="$(usex taucs)" - -DTPL_ENABLE_TBB="$(usex tbb)" - -DTPL_ENABLE_Thrust="$(usex cuda)" - -DTPL_ENABLE_TVMET="$(usex tvmet)" - -DTPL_ENABLE_UMFPACK="$(usex sparse)" - -DTPL_ENABLE_X11="$(usex X)" - -DTPL_ENABLE_yaml-cpp="$(usex yaml)" - -DTPL_ENABLE_Zlib="$(usex zlib)" - -DML_ENABLE_SuperLU:BOOL=OFF - ) - - use eigen && \ - mycmakeargs+=( - -DEigen_INCLUDE_DIRS="${EPREFIX}/usr/include/eigen3" - ) - use hypre && \ - mycmakeargs+=( - -DHYPRE_INCLUDE_DIRS="${EPREFIX}/usr/include/hypre" - ) - use scotch && \ - mycmakeargs+=( - -DScotch_INCLUDE_DIRS="${EPREFIX}/usr/include/scotch" - ) - - # cxsparse is a rewrite of csparse + extras - use sparse && \ - mycmakeargs+=( - -DCSparse_LIBRARY_NAMES="cxsparse" - ) - - # mandatory blas and lapack - trilinos_conf blas BLAS - trilinos_conf lapack LAPACK - use superlu && trilinos_conf superlu SuperLU - use metis && trilinos_conf metis METIS - - # blacs library is included in scalapack these days - if use scalapack; then - trilinos_conf scalapack SCALAPACK - mycmakeargs+=( - -DBLACS_LIBRARY_NAMES="scalapack" - -DBLACS_INCLUDE_DIRS="${EPREFIX}/usr/include/blacs" - ) - fi - - # - # Make sure we use the compiler wrappers in order to build trilinos. - # - export CC=mpicc CXX=mpicxx && tc-export CC CXX - - # Trilinos needs a custom build type: - local CMAKE_BUILD_TYPE=Release - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # Clean up the mess: - mv "${ED}"/bin "${ED}/usr/$(get_libdir)"/trilinos || die "mv failed" - mv "${ED}/usr/$(get_libdir)"/trilinos/cmake/* "${ED}/usr/$(get_libdir)"/cmake || die "mv failed" - rmdir "${ED}/usr/$(get_libdir)/trilinos/cmake" || die "rmdir failed" - if [ -f "${ED}"/lib/exodus.py ]; then - mv "${ED}"/lib/exodus.py "${ED}/usr/$(get_libdir)"/trilinos || die "mv failed" - fi - if [[ $(get_libdir) != lib ]]; then - mv "${ED}"/usr/lib/pkgconfig "${ED}/usr/$(get_libdir)" - fi - - mv "${ED}"/include/* "${ED}"/usr/include || die "mv failed" - rmdir "${ED}"/include - - # - # register $(get_libdir)/trilinos in LDPATH so that the dynamic linker - # has a chance to pick up the libraries... - # - cat >> "${T}"/99trilinos <<- EOF - LDPATH="${EPREFIX}/usr/$(get_libdir)/trilinos" - PATH="${EPREFIX}/usr/$(get_libdir)/trilinos/bin" - EOF - doenvd "${T}"/99trilinos -} diff --git a/sci-libs/trilinos/trilinos-13.0.1-r2.ebuild b/sci-libs/trilinos/trilinos-13.0.1-r2.ebuild new file mode 100644 index 000000000000..b4408c0d397a --- /dev/null +++ b/sci-libs/trilinos/trilinos-13.0.1-r2.ebuild @@ -0,0 +1,218 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake toolchain-funcs multilib + +DESCRIPTION="Scientific library collection for large scale problems" +HOMEPAGE="http://trilinos.sandia.gov/" +MY_PV="${PV//\./-}" +PATCHSET="r0" +SRC_URI="https://github.com/${PN}/Trilinos/archive/${PN}-release-${MY_PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~tamiko/distfiles/${PN}-13.0.0-patches-${PATCHSET}.tar.xz" + +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="BSD LGPL-2.1" +SLOT="0" + +IUSE=" + adolc arprec clp cuda eigen glpk gtest hdf5 hwloc hypre + matio metis mkl mumps netcdf petsc qd scalapack scotch sparse + superlu taucs tbb test threads tvmet yaml zlib X +" + +# TODO: fix export cmake function for tests +RESTRICT="test" + +RDEPEND=" + !dev-cpp/kokkos + dev-libs/boost:= + sys-libs/binutils-libs:= + virtual/blas + virtual/lapack + virtual/mpi + adolc? ( sci-libs/adolc ) + arprec? ( sci-libs/arprec ) + clp? ( sci-libs/coinor-clp ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-3.2 ) + eigen? ( dev-cpp/eigen:3 ) + glpk? ( sci-mathematics/glpk ) + gtest? ( dev-cpp/gtest ) + hdf5? ( sci-libs/hdf5:=[mpi] ) + hypre? ( sci-libs/hypre:= ) + hwloc? ( sys-apps/hwloc:= ) + matio? ( sci-libs/matio ) + mkl? ( sci-libs/mkl ) + metis? ( sci-libs/metis ) + mumps? ( sci-libs/mumps ) + netcdf? ( sci-libs/netcdf:= ) + petsc? ( sci-mathematics/petsc ) + qd? ( sci-libs/qd ) + scalapack? ( sci-libs/scalapack ) + scotch? ( sci-libs/scotch:= ) + sparse? ( sci-libs/cxsparse sci-libs/umfpack ) + superlu? ( sci-libs/superlu:= ) + taucs? ( sci-libs/taucs ) + tbb? ( dev-cpp/tbb:= ) + tvmet? ( dev-libs/tvmet ) + yaml? ( dev-cpp/yaml-cpp:= ) + zlib? ( sys-libs/zlib ) + X? ( x11-libs/libX11 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/Trilinos-${PN}-release-${MY_PV}" + +PATCHES=( + "${WORKDIR}"/patches +) + +trilinos_conf() { + local dirs libs d + for d in $($(tc-getPKG_CONFIG) --libs-only-L $1); do + dirs="${dirs};${d:2}" + done + [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_DIRS=${dirs:1}" ) + for d in $($(tc-getPKG_CONFIG) --libs-only-l $1); do + libs="${libs};${d:2}" + done + [[ -n ${libs} ]] && mycmakeargs+=( "-D${2}_LIBRARY_NAMES=${libs:1}" ) + dirs="" + for d in $($(tc-getPKG_CONFIG) --cflags-only-I $1); do + dirs="${dirs};${d:2}" + done + [[ -n ${dirs} ]] && mycmakeargs+=( "-D${2}_INCLUDE_DIRS=${dirs:1}" ) +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DCMAKE_INSTALL_PREFIX="${EPREFIX}" + -DCMAKE_SKIP_INSTALL_RPATH=ON + -DTrilinos_INSTALL_CONFIG_DIR="${EPREFIX}/usr/$(get_libdir)/cmake" + -DTrilinos_INSTALL_INCLUDE_DIR="${EPREFIX}/usr/include/trilinos" + -DTrilinos_INSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/trilinos" + -DTrilinos_ENABLE_ALL_PACKAGES=ON + -DTrilinos_ENABLE_PyTrilinos=OFF + -DTrilinos_ENABLE_SEACAS=OFF + -DTrilinos_ENABLE_SEACASChaco=OFF + -DTrilinos_ENABLE_SEACASExodiff="$(usex netcdf)" + -DTrilinos_ENABLE_SEACASExodus="$(usex netcdf)" + -DTrilinos_ENABLE_TESTS="$(usex test)" + -DTPL_ENABLE_BinUtils=ON + -DTPL_ENABLE_BLAS=ON + -DTPL_ENABLE_LAPACK=ON + -DTPL_ENABLE_MPI=ON + -DTPL_ENABLE_ADOLC="$(usex adolc)" + -DTPL_ENABLE_AMD="$(usex sparse)" + -DTPL_ENABLE_ARPREC="$(usex arprec)" + -DTPL_ENABLE_BLACS="$(usex scalapack)" + -DTPL_ENABLE_BoostLib=ON + -DTPL_ENABLE_Boost=ON + -DTPL_ENABLE_Clp="$(usex clp)" + -DTPL_ENABLE_CSparse="$(usex sparse)" + -DTPL_ENABLE_CUDA="$(usex cuda)" + -DTPL_ENABLE_CUSPARSE="$(usex cuda)" + -DTPL_ENABLE_Eigen="$(usex eigen)" + -DTPL_ENABLE_GLPK="$(usex glpk)" + -DTPL_ENABLE_gtest="$(usex gtest)" + -DTPL_ENABLE_HDF5="$(usex hdf5)" + -DTPL_ENABLE_HWLOC="$(usex hwloc)" + -DTPL_ENABLE_HYPRE="$(usex hypre)" + -DTPL_ENABLE_Matio="$(usex matio)" + -DTPL_ENABLE_METIS="$(usex metis)" + -DTPL_ENABLE_MKL="$(usex mkl)" + -DTPL_ENABLE_MUMPS="$(usex mumps)" + -DTPL_ENABLE_Netcdf="$(usex netcdf)" + -DTPL_ENABLE_PARDISO_MKL="$(usex mkl)" + -DTPL_ENABLE_PETSC="$(usex petsc)" + -DTPL_ENABLE_Pthread="$(usex threads)" + -DTPL_ENABLE_QD="$(usex qd)" + -DTPL_ENABLE_SCALAPACK="$(usex scalapack)" + -DTPL_ENABLE_Scotch="$(usex scotch)" + -DTPL_ENABLE_SuperLU="$(usex superlu)" + -DTPL_ENABLE_TAUCS="$(usex taucs)" + -DTPL_ENABLE_TBB="$(usex tbb)" + -DTPL_ENABLE_Thrust="$(usex cuda)" + -DTPL_ENABLE_TVMET="$(usex tvmet)" + -DTPL_ENABLE_UMFPACK="$(usex sparse)" + -DTPL_ENABLE_X11="$(usex X)" + -DTPL_ENABLE_yaml-cpp="$(usex yaml)" + -DTPL_ENABLE_Zlib="$(usex zlib)" + -DML_ENABLE_SuperLU:BOOL=OFF + ) + + use eigen && \ + mycmakeargs+=( + -DEigen_INCLUDE_DIRS="${EPREFIX}/usr/include/eigen3" + ) + use hypre && \ + mycmakeargs+=( + -DHYPRE_INCLUDE_DIRS="${EPREFIX}/usr/include/hypre" + ) + use scotch && \ + mycmakeargs+=( + -DScotch_INCLUDE_DIRS="${EPREFIX}/usr/include/scotch" + ) + + # cxsparse is a rewrite of csparse + extras + use sparse && \ + mycmakeargs+=( + -DCSparse_LIBRARY_NAMES="cxsparse" + ) + + # mandatory blas and lapack + trilinos_conf blas BLAS + trilinos_conf lapack LAPACK + use superlu && trilinos_conf superlu SuperLU + use metis && trilinos_conf metis METIS + + # blacs library is included in scalapack these days + if use scalapack; then + trilinos_conf scalapack SCALAPACK + mycmakeargs+=( + -DBLACS_LIBRARY_NAMES="scalapack" + -DBLACS_INCLUDE_DIRS="${EPREFIX}/usr/include/blacs" + ) + fi + + # + # Make sure we use the compiler wrappers in order to build trilinos. + # + export CC=mpicc CXX=mpicxx && tc-export CC CXX + + # Trilinos needs a custom build type: + local CMAKE_BUILD_TYPE=Release + + cmake_src_configure +} + +src_install() { + cmake_src_install + + # Clean up the mess: + mv "${ED}"/bin "${ED}/usr/$(get_libdir)"/trilinos || die "mv failed" + mv "${ED}/usr/$(get_libdir)"/trilinos/cmake/* "${ED}/usr/$(get_libdir)"/cmake || die "mv failed" + rmdir "${ED}/usr/$(get_libdir)/trilinos/cmake" || die "rmdir failed" + if [ -f "${ED}"/lib/exodus.py ]; then + mv "${ED}"/lib/exodus.py "${ED}/usr/$(get_libdir)"/trilinos || die "mv failed" + fi + if [[ $(get_libdir) != lib ]]; then + mv "${ED}"/usr/lib/pkgconfig "${ED}/usr/$(get_libdir)" + fi + + mv "${ED}"/include/* "${ED}"/usr/include || die "mv failed" + rmdir "${ED}"/include + + # + # register $(get_libdir)/trilinos in LDPATH so that the dynamic linker + # has a chance to pick up the libraries... + # + cat >> "${T}"/99trilinos <<- EOF + LDPATH="${EPREFIX}/usr/$(get_libdir)/trilinos" + PATH="${EPREFIX}/usr/$(get_libdir)/trilinos/bin" + EOF + doenvd "${T}"/99trilinos +} -- cgit v1.2.3