aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2019-05-22 12:29:38 -0500
committerMatthias Maier <tamiko@gentoo.org>2019-05-22 12:29:38 -0500
commit28f9d1191ab8a79a44c81d1b5c293d617714ea79 (patch)
treef7bbaf3ca35e7e45c8d575f215e1a1f2779688e4 /sci-libs/dealii
parentdev-libs/intel-common: version bump to 19.0.3.199 (diff)
downloadsci-28f9d1191ab8a79a44c81d1b5c293d617714ea79.tar.gz
sci-28f9d1191ab8a79a44c81d1b5c293d617714ea79.tar.bz2
sci-28f9d1191ab8a79a44c81d1b5c293d617714ea79.zip
sci-libs/dealii: version bump to 9.1.0
Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/dealii')
-rw-r--r--sci-libs/dealii/Manifest2
-rw-r--r--sci-libs/dealii/dealii-9.1.0.ebuild145
2 files changed, 147 insertions, 0 deletions
diff --git a/sci-libs/dealii/Manifest b/sci-libs/dealii/Manifest
index b33a5e4ae..923c843f7 100644
--- a/sci-libs/dealii/Manifest
+++ b/sci-libs/dealii/Manifest
@@ -2,3 +2,5 @@ DIST dealii-8.5.0-offline_documentation.tar.gz 158982121 BLAKE2B 50b7dd68e3a4b82
DIST dealii-8.5.0.tar.gz 14919546 BLAKE2B 686ff5d66ce20d2da8a37e44bdca04a249881da8ab09b1fbd1e6fb0496b53e14b05ce576dcf3539b30443cec680e89c5bae3f3442417c66af726709de39ccfa3 SHA512 58a8cb18aa166a46e25c03335d0b65515452080858593fe35b93623e45cd340fbc7bce1059388c055736c2f5c154c4b68df1620cf8ad9ff6b07644541b60accc
DIST dealii-9.0.1-offline_documentation.tar.gz 171325206 BLAKE2B 8e912b4b44a9fe6a11677cbf48898cd8f2673669e58aacfed639b0dceb375f9e5d63fee13a399532d014ea5186af598c10dcb8f9a7ed4578c67ff8d18b38856a SHA512 d300c317003db4b4a201dfe89166fb9e019c57e68799d9b475d8856571e86c38dadda163030102220aed4c267e1cf020928456e82e8f6819a92cd756f4c90aad
DIST dealii-9.0.1.tar.gz 17637370 BLAKE2B 2b7010e3c76f7e14da63d13f77ce35edb107f2aed24616c883858be72e2f1bb5f2dbb800f168d22fa8f68e8fd80c354a618d62bd6f1597646d571663e50987b1 SHA512 cb01083ac3870728c8ffe5e2a542219e24f4611009ede819b6ff8c0d6fc92de2de052f39d5e5cbc3a36159763db9b3f5b4652f300d105108b046b327c447ee26
+DIST dealii-9.1.0-offline_documentation.tar.gz 211104980 BLAKE2B bbde14733df0fb5fe95a6cb43adaf7ab7ff9ea8d9615155c7a68269afbd1bac039db73b6685538ca4a446837deeb101ed2e365387f2d1f10f5c65a469d6105f8 SHA512 a02a55e28fea49135017795194a3e22e3e32f848b10d7aadcc4ff84e9a5b59e859ec9548e6b8eb384e282a2ab87257f0ba29c5cd82dd68af2e2cbd6b348b1e63
+DIST dealii-9.1.0.tar.gz 19910686 BLAKE2B 26eedadc4ff80c754bcd4bded7a64352928c3a7c79a2b8ff8444b5059ad829b6c6b21dd7d2ebddefddc4d541d70b82ec09d9cc1117c3982c885c6f4c5563a227 SHA512 b9becb57a659db530868b35973a1efdad79f01d01b427d26b23011d7fbc12e9b6e13c49c6400d88afe1bc32c65b63a8ed978093a58e8164bc0f3a13483efe8b6
diff --git a/sci-libs/dealii/dealii-9.1.0.ebuild b/sci-libs/dealii/dealii-9.1.0.ebuild
new file mode 100644
index 000000000..0da4f8ea6
--- /dev/null
+++ b/sci-libs/dealii/dealii-9.1.0.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2019 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_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
+"
+
+# 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 )
+ 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 )
+ 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 )"
+
+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_HAVE_AVX="$(usex cpu_flags_x86_avx)"
+ -DDEAL_II_WITH_CUDA="$(usex cuda)"
+ -DDEAL_II_HAVE_SSE2="$(usex cpu_flags_x86_sse2)"
+ -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)"
+ )
+ 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
+}