aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2017-04-07 14:24:10 -0500
committerMatthias Maier <tamiko@gentoo.org>2017-04-07 14:24:10 -0500
commitb950587d15ba3e74807ad8b7d8e2934d91bdbc7b (patch)
tree4410e6b4610a5d732c4223c6b4ad3e9cf787b6e1
parentsci-mathematics/dolfin: Add dev-python/dijitso dependency (diff)
downloadsci-b950587d15ba3e74807ad8b7d8e2934d91bdbc7b.tar.gz
sci-b950587d15ba3e74807ad8b7d8e2934d91bdbc7b.tar.bz2
sci-b950587d15ba3e74807ad8b7d8e2934d91bdbc7b.zip
sci-libs/dealii: version bump to 8.5.0
Package-Manager: Portage-2.3.3, Repoman-2.3.2
-rw-r--r--sci-libs/dealii/Manifest2
-rw-r--r--sci-libs/dealii/dealii-8.5.0.ebuild126
2 files changed, 128 insertions, 0 deletions
diff --git a/sci-libs/dealii/Manifest b/sci-libs/dealii/Manifest
index f33487548..d235ec770 100644
--- a/sci-libs/dealii/Manifest
+++ b/sci-libs/dealii/Manifest
@@ -4,3 +4,5 @@ DIST dealii-8.3.0-offline_documentation.tar.gz 152228920 SHA256 474b1b64a392b1a7
DIST dealii-8.3.0.tar.gz 13756656 SHA256 4ddf72632eb501e1c814e299f32fc04fd680d6fda9daff58be4209e400e41779 SHA512 bc8aa46e91d3ae600cda8e0069a41a8172845d4e2026c05d361fc47a2780365a1510edbfd04a94a6b509e30b8c153ff41c0abd46403cba1ef134e6898b1f53ca WHIRLPOOL db350cfd43f84405d9fc297299b6015aac5c40ddc8a55991e0f42a3ea0b0375162320c024b7b2441ebf562509149a7c9154cb10ace3c70548aed30c66399d82f
DIST dealii-8.4.2-offline_documentation.tar.gz 154647046 SHA256 cdbe7625bd9b88a69e589cbb100d67363ebbe23ddd2c5f82a63348be6d10b48f SHA512 8572c64ade75b929def8b0ed47cb23d09088631a8f7ef89c36426263e2704abaedc193aa9825682984d03d556ef34ad84b1137e94ce645bc2914629cc080c6ae WHIRLPOOL 72431b0819367e2c84e9770f85a0f5895b5676ed00c8eda4f80e2b6a55c5cf8ea35edd68e1e4f44d9a37976fa0c72c05798e18e30a88f16d5a07d19ead851360
DIST dealii-8.4.2.tar.gz 13973439 SHA256 ec7c00fadc9d298d1a0d16c08fb26818868410a9622c59ba624096872f3058e4 SHA512 a6e558b97d5753b03890a6d5a4192a62437dbe0ce6f87724124a9daf12fc4c44553729423ea7a3139fbb114292e04e7863a6f52b79eb5e223fecfd35c521c849 WHIRLPOOL 4b9cd39d792f7bbc2346935a48cda80bb223aaf85a1e8cf9d826145c27e4d0c2e680433263c35e4edaac1ad4fb9321990bc936ded9ea55a3da2e38c1c8840bed
+DIST dealii-8.5.0-offline_documentation.tar.gz 158982121 SHA256 e003e2d863992855b977fbb6c4a050ee9e32b5cf95fd5dbaa04e51e64967aa85 SHA512 ccf5de81ab23f698d9d8331286524328fa8934ef36c251b9c5c999c9532114b550e4ab7899a02925a6b41fc7b4f9554c3796a62c0f4397e1cbe6abbf898fdab8 WHIRLPOOL 6044e9aa48731ce0e9ea3eef3c06d9f8b2a10dd0ab6a89c092e9995503e65aa9835e7a051019b0f77f1878433355dbe36c8a4009d7dda8b178edd50d7cb2aa66
+DIST dealii-8.5.0.tar.gz 14919546 SHA256 e6913ff6f184d16bc2598c1ba31f879535b72b6dff043e15aef048043ff1d779 SHA512 58a8cb18aa166a46e25c03335d0b65515452080858593fe35b93623e45cd340fbc7bce1059388c055736c2f5c154c4b68df1620cf8ad9ff6b07644541b60accc WHIRLPOOL 4ae38df61fbb7c7b26ac3c6b38a8f4d536f8d01e55962e7bdbd34ef1bac1bf915275d04acafc532beb116ed09cf3bec3f504a3556e1027d96c0d793f44d53c7a
diff --git a/sci-libs/dealii/dealii-8.5.0.ebuild b/sci-libs/dealii/dealii-8.5.0.ebuild
new file mode 100644
index 000000000..4053d8a38
--- /dev/null
+++ b/sci-libs/dealii/dealii-8.5.0.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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="git://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/dealii/dealii/archive/v${MY_PV}.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="
+ arpack cpu_flags_x86_avx cpu_flags_x86_sse2 c++11 +debug doc +examples
+ +gsl hdf5 +lapack metis mpi muparser opencascade netcdf p4est petsc
+ +sparse static-libs +tbb trilinos
+"
+
+# TODO: add slepc use flag once slepc is packaged for gentoo-science
+REQUIRED_USE="
+ p4est? ( mpi )
+ trilinos? ( mpi )"
+
+RDEPEND="dev-libs/boost
+ app-arch/bzip2
+ sys-libs/zlib
+ arpack? ( sci-libs/arpack[mpi=] )
+ gsl? ( sci-libs/gsl )
+ hdf5? ( sci-libs/hdf5[mpi=] )
+ lapack? ( virtual/lapack )
+ metis? ( >=sci-libs/parmetis-4 )
+ mpi? ( virtual/mpi )
+ muparser? ( dev-cpp/muParser )
+ netcdf? ( sci-libs/netcdf-cxx:0 )
+ opencascade? ( sci-libs/opencascade:* )
+ p4est? ( sci-libs/p4est[mpi] )
+ petsc? ( sci-mathematics/petsc[mpi=] )
+ sparse? ( sci-libs/umfpack )
+ 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_EXAMPLES_RELDIR="share/doc/${P}/examples"
+ -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)"
+ -DDEAL_II_SHARE_RELDIR="share/${PN}"
+ -DDEAL_II_WITH_BZIP2=ON
+ -DDEAL_II_WITH_ZLIB=ON
+ $(cmake-utils_use arpack DEAL_II_WITH_ARPACK)
+ $(cmake-utils_use c++11 DEAL_II_WITH_CXX11)
+ $(cmake-utils_use cpu_flags_x86_avx DEAL_II_HAVE_AVX)
+ $(cmake-utils_use cpu_flags_x86_sse2 DEAL_II_HAVE_SSE2)
+ $(cmake-utils_use doc DEAL_II_COMPONENT_DOCUMENTATION)
+ $(cmake-utils_use examples DEAL_II_COMPONENT_EXAMPLES)
+ $(cmake-utils_use gsl DEAL_II_WITH_GSL)
+ $(cmake-utils_use hdf5 DEAL_II_WITH_HDF5)
+ $(cmake-utils_use lapack DEAL_II_WITH_LAPACK)
+ $(cmake-utils_use metis DEAL_II_WITH_METIS)
+ $(cmake-utils_use mpi DEAL_II_WITH_MPI)
+ $(cmake-utils_use muparser DEAL_II_WITH_MUPARSER)
+ $(cmake-utils_use netcdf DEAL_II_WITH_NETCDF)
+ -DOPENCASCADE_DIR="${CASROOT}"
+ $(cmake-utils_use opencascade DEAL_II_WITH_OPENCASCADE)
+ $(cmake-utils_use p4est DEAL_II_WITH_P4EST)
+ $(cmake-utils_use petsc DEAL_II_WITH_PETSC)
+ $(cmake-utils_use sparse DEAL_II_WITH_UMFPACK)
+ $(cmake-utils_use !static-libs BUILD_SHARED_LIBS)
+ $(cmake-utils_use static-libs DEAL_II_PREFER_STATIC_LIBS)
+ $(cmake-utils_use tbb DEAL_II_WITH_THREADS)
+ $(cmake-utils_use trilinos DEAL_II_WITH_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
+}