sci-libs/dealii: version bump to 9.2.0, update 9999
authorMatthias Maier <tamiko@gentoo.org>
Thu, 21 May 2020 16:50:28 +0000 (11:50 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Thu, 21 May 2020 16:51:40 +0000 (11:51 -0500)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
sci-libs/dealii/Manifest
sci-libs/dealii/dealii-9.2.0.ebuild [new file with mode: 0644]
sci-libs/dealii/dealii-9999.ebuild
sci-libs/dealii/metadata.xml

index fa22d9957eeb25223184470db56edaf9c6fc742e..c506bf565ca32cdbbe22038e1eba403d8d3694a5 100644 (file)
@@ -1,2 +1,4 @@
 DIST dealii-9.1.1-offline_documentation.tar.gz 211103151 BLAKE2B ef7cf48aa8019a2d42a38804744ff72cc7f744255fa27df852f8f93c86a02f2125458e0e525e57510bb98adc27aed933fefa27d556d8203c991dae9866c7d57a SHA512 5e2b71e9bdeb80875772356e2c873bc1f065f2a8c5c47923b74b471d464e4867c257e3a47b32341aa60af98e74e3ed2eceba8dedb4b157ab872681576ecbd5db
 DIST dealii-9.1.1.tar.gz 19911088 BLAKE2B e8488833f11339ccffd4791b9b46ab77f1982cbbdeb11fab7f6b74ca2e17c3d648a2940f4462d0ac9c68bd619b3c4f43b4d8052d2903cbb9cae2fece93d81987 SHA512 02dd91e2b0f395960f900f4cbe00bd307a4762ffbc5f3838dcc34828937e96727efbbcc66fc3d357d6b00b0dddcbc6cd7709c4c03f067d92a8f72d4631b88bf1
+DIST dealii-9.2.0-offline_documentation.tar.gz 277987911 BLAKE2B d14e15bc252f481707b04e9ca3fd05b5469035537a099466a8272fa1d56833c99d845871534df75bbb2efb29063e738700a5a2815b653cdd14b49b3a93add368 SHA512 9680731b4d837561c3682a65391b442cfb8d2a947b0e4e37cad1df83877b371997d084eac52e2bf34b190ea54996d41ddd89bee79fff24d710199417f3f345ab
+DIST dealii-9.2.0.tar.gz 24688964 BLAKE2B 60a8ede72a49cb2e658b3d6d53fb332a96f44a7fb9bb499ba54175138d49f38a9b75d9bea2eaddcaa3f50d97ce53961692b35f89578f535d32301680e6f1d68b SHA512 7c76435e45c9c302c4f95f588229f5a9b81f0450bd029729553c706a25dfd16f5c02c50fd2618d7e285d18927b63426110d2c6a074242b91cf789bd4bc77acc5
diff --git a/sci-libs/dealii/dealii-9.2.0.ebuild b/sci-libs/dealii/dealii-9.2.0.ebuild
new file mode 100644 (file)
index 0000000..2d31d58
--- /dev/null
@@ -0,0 +1,164 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils eutils multilib
+
+# 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=""
+
+DESCRIPTION="Solving partial differential equations with the finite element method"
+HOMEPAGE="http://www.dealii.org/"
+
+if [[ ${PV} = *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/dealii/dealii.git"
+       SRC_URI=""
+       KEYWORDS=""
+else
+       MY_PV="${PV//0_rc/rc}"
+       MY_P="${PN}-${MY_PV}"
+       SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz -> ${P}.tar.gz
+               doc? (
+                       https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}-offline_documentation.tar.gz
+                       -> ${P}-offline_documentation.tar.gz
+                       )"
+       KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+       S="${WORKDIR}/${PN}-${MY_PV}"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+IUSE="
+       adolc assimp arpack cpu_flags_x86_avx cpu_flags_x86_avx512f
+       cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5
+       +lapack metis mpi muparser nanoflann opencascade netcdf p4est petsc
+       scalapack slepc +sparse static-libs sundials symengine +tbb trilinos
+"
+
+# TODO: add slepc use flag once slepc is packaged for gentoo-science
+REQUIRED_USE="
+       p4est? ( mpi )
+       slepc? ( petsc )
+       trilinos? ( mpi )"
+
+RDEPEND="dev-libs/boost
+       app-arch/bzip2
+       sys-libs/zlib
+       adolc? ( sci-libs/adolc )
+       arpack? ( sci-libs/arpack[mpi=] )
+       assimp? ( media-libs/assimp )
+       cuda? ( dev-util/nvidia-cuda-sdk )
+       ginkgo? ( sci-libs/ginkgo )
+       gmsh? ( sci-libs/gmsh )
+       gsl? ( sci-libs/gsl )
+       hdf5? ( sci-libs/hdf5[mpi=] )
+       lapack? ( virtual/lapack )
+       metis? ( >=sci-libs/parmetis-4 )
+       mpi? ( virtual/mpi )
+       muparser? ( dev-cpp/muParser )
+       nanoflann? ( sci-libs/nanoflann )
+       netcdf? ( sci-libs/netcdf-cxx:0 )
+       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-4:= )
+       symengine? ( >=sci-libs/symengine-0.4:= )
+       tbb? ( dev-cpp/tbb )
+       trilinos? ( sci-libs/trilinos )"
+
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       doc? ( app-doc/doxygen[dot] dev-lang/perl )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-9.1.1-no-ld-flags.patch
+)
+
+src_configure() {
+       # deal.II needs a custom build type:
+       local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release)
+
+       local mycmakeargs=(
+               -DDEAL_II_PACKAGE_VERSION=9999
+               -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_ASSIMP="$(usex assimp)"
+               -DDEAL_II_WITH_ARPACK="$(usex arpack)"
+               -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_NANOFLANN="$(usex nanoflann)"
+               -DDEAL_II_WITH_NETCDF="$(usex netcdf)"
+               -DOPENCASCADE_DIR="${CASROOT}"
+               -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_THREADS="$(usex tbb)"
+               -DDEAL_II_WITH_TRILINOS="$(usex trilinos)"
+       )
+
+       # Do a little dance for purely cosmetic "QA" reasons.
+       use opencascade && mycmakeargs+=( -DOPENCASCADE_DIR="${CASROOT}" )
+
+       # 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 )
+       elif use cpu_flags_x86_avx; then
+               mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes )
+       elif use cpu_flags_x86_avx; then
+               mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes )
+       fi
+
+       cmake-utils_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-utils_src_install
+
+       # decompress the installed example sources:
+       use examples && docompress -x /usr/share/doc/${PF}/examples
+}
index 35dcbc94b5235243930907aa614e05ab452f813f..2d31d5890b97819f1f01801a4df64af1b44fae27 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -34,9 +34,9 @@ LICENSE="LGPL-2.1+"
 SLOT="0"
 IUSE="
        adolc assimp arpack cpu_flags_x86_avx cpu_flags_x86_avx512f
-       cpu_flags_x86_sse2 cuda +debug doc +examples gmsh +gsl hdf5 +lapack
-       metis mpi muparser nanoflann opencascade netcdf p4est petsc scalapack
-       slepc +sparse static-libs sundials symengine +tbb trilinos
+       cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5
+       +lapack metis mpi muparser nanoflann opencascade netcdf p4est petsc
+       scalapack slepc +sparse static-libs sundials symengine +tbb trilinos
 "
 
 # TODO: add slepc use flag once slepc is packaged for gentoo-science
@@ -52,6 +52,7 @@ RDEPEND="dev-libs/boost
        arpack? ( sci-libs/arpack[mpi=] )
        assimp? ( media-libs/assimp )
        cuda? ( dev-util/nvidia-cuda-sdk )
+       ginkgo? ( sci-libs/ginkgo )
        gmsh? ( sci-libs/gmsh )
        gsl? ( sci-libs/gsl )
        hdf5? ( sci-libs/hdf5[mpi=] )
@@ -102,6 +103,7 @@ src_configure() {
                -DDEAL_II_WITH_ASSIMP="$(usex assimp)"
                -DDEAL_II_WITH_ARPACK="$(usex arpack)"
                -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)"
index 235d8ffe821848aa10de04d03430b2e2c51a09f0..90bacf01225aab564c1ac5f7d72cbe0671d8d0b9 100644 (file)
@@ -36,8 +36,9 @@ and extra output. If you want to get meaningful backtraces see
                <flag name="tbb">Add threading support with the help of the tbb library (<pkg>dev-cpp/tbb</pkg>)</flag>
                <flag name="trilinos">Add support for trilinos (<pkg>sci-libs/trilinos</pkg>)</flag>
                <flag name="assimp">Add support for assimp (<pkg>media-libs/assimp</pkg>)</flag>
-               <flag name="cuda">Add support for cuda assimp (<pkg>dev-util/nvidia-cuda-sdk</pkg>)</flag>
-               <flag name="sundials">Add support for sundials assimp (<pkg>sci-libs/sundials</pkg>)</flag>
+               <flag name="cuda">Add support for cuda (<pkg>dev-util/nvidia-cuda-sdk</pkg>)</flag>
+               <flag name="ginkgo">Add support for ginkgo (<pkg>sci-libs/ginkgo</pkg>)</flag>
+               <flag name="sundials">Add support for sundials (<pkg>sci-libs/sundials</pkg>)</flag>
        </use>
        <upstream>
                <remote-id type="github">dealii/dealii</remote-id>