1 |
commit: c84e74a3b989e9b386b26a181e18e69276915eee |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 26 03:17:37 2022 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 26 03:32:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84e74a3 |
7 |
|
8 |
sci-libs/dealii: add 9.4.0 |
9 |
|
10 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
11 |
|
12 |
sci-libs/dealii/Manifest | 2 + |
13 |
sci-libs/dealii/dealii-9.4.0.ebuild | 166 ++++++++++++++++++++++++++++++++++++ |
14 |
sci-libs/dealii/metadata.xml | 2 + |
15 |
3 files changed, 170 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/dealii/Manifest b/sci-libs/dealii/Manifest |
18 |
index f3f2ba99e10a..94a0d4e45df5 100644 |
19 |
--- a/sci-libs/dealii/Manifest |
20 |
+++ b/sci-libs/dealii/Manifest |
21 |
@@ -2,3 +2,5 @@ DIST dealii-9.3.1-offline_documentation.tar.gz 342389060 BLAKE2B 71b47816dd22f49 |
22 |
DIST dealii-9.3.1.tar.gz 24459280 BLAKE2B c7f1d461017da24efd6f3247217fd1b889e0cbf2ac62c3fd305e03aed90d5ba82b58ceb84d34a84608b833b734e12abc77a63693aaa6eed767b4f5f157233ba0 SHA512 c3ba3e16fa4792bb4f3e85163e67b08271c84faff72c49b858a955851401adf2499e278790803061a61c4024964f6da3f0ef7b09c0370d8d0b5af16b7c3bdaef |
23 |
DIST dealii-9.3.3-offline_documentation.tar.gz 346914833 BLAKE2B 8a3661f44aef70c25837fca67175e410f1404991a5fa3698d2e732f1ae045f987a3d9c2fb21294de32768533968e94178f7537f2c3221afdb427fb10478257b5 SHA512 05d8c9573e8277c88f81ff318d295b099e2241c5358cc243eaae35044703a8abc8cac7b7b8049b3527d167f60b11820bd8418fde2e6a6929c03abbf6cc5b6658 |
24 |
DIST dealii-9.3.3.tar.gz 24462944 BLAKE2B 581a8c618fab96127ac95fe9ba5ea5410eb6f9193ce96b6a0d8d28dd125689fb11868115ae8163b7e223970321ddd75347ea21568ea1cdc1e783f94506f00d91 SHA512 31a05a2f539dd2336683c2ab887fef47f08a5127fe23163128036f3143c0c77dca08004b014704e1c7cc07d7578458636715dcbefd654e5fc4511d6d315b604d |
25 |
+DIST dealii-9.4.0-offline_documentation.tar.gz 390747598 BLAKE2B 6e8ed938b31a9e6bbbdd5baacce056edc31d489ecd3e9528283650f431d004ca122c968567fe342744d52bab8f8be53ab1b20d56636e2dc48f8cf551791a08bd SHA512 703eb50150ae5bd77f0d84271babd50483c3a9b069abb5b7e8827d00efaa5d189a43ac54f0ef8b2f746b12a10dc611669f5fddd655241a66af4915ec1d458185 |
26 |
+DIST dealii-9.4.0.tar.gz 30297914 BLAKE2B 6beb4c7b83f5316e703d4b77340900c376e622b1dc59c9058a8927174a8c6991994957588b6adf88238e72eec93f8941bfbfb2d0bb01070560468d051d9829f8 SHA512 3be740fbabff65a18870496f483ac4ed6d35c8a53b5128dd09b2dfabe82d60e4a75f02fd508b44f6c93805999aab98f551154f10ca2ad5fabede65c2d6dce320 |
27 |
|
28 |
diff --git a/sci-libs/dealii/dealii-9.4.0.ebuild b/sci-libs/dealii/dealii-9.4.0.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..05e4e7dd00ec |
31 |
--- /dev/null |
32 |
+++ b/sci-libs/dealii/dealii-9.4.0.ebuild |
33 |
@@ -0,0 +1,166 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+# deal.II uses its own FindLAPACK.cmake file that calls into the system |
40 |
+# FindLAPACK.cmake module and does additional internal setup. Do not remove |
41 |
+# any of these modules: |
42 |
+CMAKE_REMOVE_MODULES_LIST="" |
43 |
+ |
44 |
+inherit cmake flag-o-matic |
45 |
+ |
46 |
+DESCRIPTION="Solving partial differential equations with the finite element method" |
47 |
+HOMEPAGE="https://www.dealii.org/" |
48 |
+ |
49 |
+if [[ ${PV} = *9999* ]]; then |
50 |
+ inherit git-r3 |
51 |
+ EGIT_REPO_URI="https://github.com/dealii/dealii.git" |
52 |
+ SRC_URI="" |
53 |
+else |
54 |
+ SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz |
55 |
+ doc? ( |
56 |
+ https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}-offline_documentation.tar.gz |
57 |
+ )" |
58 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
59 |
+fi |
60 |
+ |
61 |
+LICENSE="LGPL-2.1+" |
62 |
+SLOT="0" |
63 |
+IUSE=" |
64 |
+ adolc arborx assimp arpack cgal cpu_flags_x86_avx cpu_flags_x86_avx512f |
65 |
+ cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5 |
66 |
+ +lapack metis mpi muparser opencascade p4est petsc scalapack slepc |
67 |
+ +sparse static-libs sundials symengine trilinos |
68 |
+" |
69 |
+ |
70 |
+# TODO: add slepc use flag once slepc is packaged for gentoo-science |
71 |
+REQUIRED_USE=" |
72 |
+ arborx? ( trilinos ) |
73 |
+ p4est? ( mpi ) |
74 |
+ slepc? ( petsc ) |
75 |
+ trilinos? ( mpi )" |
76 |
+ |
77 |
+RDEPEND="dev-libs/boost:= |
78 |
+ app-arch/bzip2 |
79 |
+ sys-libs/zlib |
80 |
+ dev-cpp/tbb:= |
81 |
+ arborx? ( sci-libs/arborx[mpi=] ) |
82 |
+ adolc? ( sci-libs/adolc ) |
83 |
+ arpack? ( sci-libs/arpack[mpi=] ) |
84 |
+ assimp? ( media-libs/assimp:= ) |
85 |
+ cuda? ( dev-util/nvidia-cuda-toolkit ) |
86 |
+ ginkgo? ( sci-libs/ginkgo ) |
87 |
+ gmsh? ( sci-libs/gmsh ) |
88 |
+ gsl? ( sci-libs/gsl:= ) |
89 |
+ hdf5? ( sci-libs/hdf5[mpi=] ) |
90 |
+ lapack? ( virtual/lapack ) |
91 |
+ metis? ( |
92 |
+ >=sci-libs/metis-5 |
93 |
+ mpi? ( >=sci-libs/parmetis-4 ) |
94 |
+ ) |
95 |
+ mpi? ( virtual/mpi[cxx] ) |
96 |
+ muparser? ( dev-cpp/muParser ) |
97 |
+ opencascade? ( sci-libs/opencascade:= ) |
98 |
+ p4est? ( sci-libs/p4est[mpi] ) |
99 |
+ petsc? ( sci-mathematics/petsc[mpi=] ) |
100 |
+ scalapack? ( sci-libs/scalapack ) |
101 |
+ slepc? ( sci-mathematics/slepc[mpi=] ) |
102 |
+ sparse? ( sci-libs/umfpack ) |
103 |
+ sundials? ( sci-libs/sundials:= ) |
104 |
+ symengine? ( >=sci-libs/symengine-0.4:= ) |
105 |
+ trilinos? ( sci-libs/trilinos )" |
106 |
+ |
107 |
+DEPEND="${RDEPEND} |
108 |
+ virtual/pkgconfig |
109 |
+ doc? ( app-doc/doxygen[dot] dev-lang/perl )" |
110 |
+ |
111 |
+PATCHES=( |
112 |
+ "${FILESDIR}"/${PN}-9.1.1-no-ld-flags.patch |
113 |
+) |
114 |
+ |
115 |
+src_configure() { |
116 |
+ # deal.II needs a custom build type: |
117 |
+ local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release) |
118 |
+ |
119 |
+ local mycmakeargs=( |
120 |
+ -DDEAL_II_PACKAGE_VERSION="${PV}" |
121 |
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF |
122 |
+ -DDEAL_II_ALLOW_AUTODETECTION=OFF |
123 |
+ -DDEAL_II_ALLOW_BUNDLED=OFF |
124 |
+ -DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF |
125 |
+ -DDEAL_II_COMPILE_EXAMPLES=OFF |
126 |
+ -DDEAL_II_DOCHTML_RELDIR="share/doc/${P}/html" |
127 |
+ -DDEAL_II_DOCREADME_RELDIR="share/doc/${P}" |
128 |
+ -DDEAL_II_COMPILE_EXAMPLES=OFF |
129 |
+ -DDEAL_II_EXAMPLES_RELDIR="share/doc/${P}/examples" |
130 |
+ -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)" |
131 |
+ -DDEAL_II_SHARE_RELDIR="share/${PN}" |
132 |
+ -DDEAL_II_WITH_ZLIB=ON |
133 |
+ -DDEAL_II_WITH_ADOLC="$(usex adolc)" |
134 |
+ -DDEAL_II_WITH_ARBORX="$(usex arborx)" |
135 |
+ -DDEAL_II_WITH_ASSIMP="$(usex assimp)" |
136 |
+ -DDEAL_II_WITH_ARPACK="$(usex arpack)" |
137 |
+ -DDEAL_II_WITH_CGAL="$(usex cgal)" |
138 |
+ -DDEAL_II_WITH_CUDA="$(usex cuda)" |
139 |
+ -DDEAL_II_WITH_GINKGO="$(usex ginkgo)" |
140 |
+ -DDEAL_II_COMPONENT_DOCUMENTATION="$(usex doc)" |
141 |
+ -DDEAL_II_COMPONENT_EXAMPLES="$(usex examples)" |
142 |
+ -DDEAL_II_WITH_GMSH="$(usex gmsh)" |
143 |
+ -DDEAL_II_WITH_GSL="$(usex gsl)" |
144 |
+ -DDEAL_II_WITH_HDF5="$(usex hdf5)" |
145 |
+ -DDEAL_II_WITH_KOKKOS="$(usex trilinos)" |
146 |
+ -DDEAL_II_WITH_LAPACK="$(usex lapack)" |
147 |
+ -DDEAL_II_WITH_METIS="$(usex metis)" |
148 |
+ -DDEAL_II_WITH_MPI="$(usex mpi)" |
149 |
+ -DDEAL_II_WITH_MUPARSER="$(usex muparser)" |
150 |
+ -DDEAL_II_WITH_OPENCASCADE="$(usex opencascade)" |
151 |
+ -DDEAL_II_WITH_P4EST="$(usex p4est)" |
152 |
+ -DDEAL_II_WITH_PETSC="$(usex petsc)" |
153 |
+ -DDEAL_II_WITH_SCALAPACK="$(usex scalapack)" |
154 |
+ -DDEAL_II_WITH_SLEPC="$(usex slepc)" |
155 |
+ -DDEAL_II_WITH_SUNDIALS="$(usex sundials)" |
156 |
+ -DDEAL_II_WITH_SYMENGINE="$(usex symengine)" |
157 |
+ -DDEAL_II_WITH_UMFPACK="$(usex sparse)" |
158 |
+ -DBUILD_SHARED_LIBS="$(usex !static-libs)" |
159 |
+ -DDEAL_II_PREFER_STATIC_LIBS="$(usex static-libs)" |
160 |
+ -DDEAL_II_WITH_TBB=ON |
161 |
+ -DDEAL_II_WITH_TRILINOS="$(usex trilinos)" |
162 |
+ ) |
163 |
+ |
164 |
+ use opencascade && mycmakeargs+=( |
165 |
+ -DCMAKE_PREFIX_PATH="/usr/$(get_libdir)/opencascade" |
166 |
+ ) |
167 |
+ |
168 |
+ # Do a little dance for purely cosmetic QA reasons. The build system |
169 |
+ # does query for the highest instruction set first and skips the other |
170 |
+ # variables if a "higher" variant is set |
171 |
+ if use cpu_flags_x86_avx512f; then |
172 |
+ mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) |
173 |
+ append-cxxflags "-mavx512f" |
174 |
+ elif use cpu_flags_x86_avx; then |
175 |
+ mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) |
176 |
+ append-cxxflags "-mavx2" |
177 |
+ elif use cpu_flags_x86_avx; then |
178 |
+ mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) |
179 |
+ append-cxxflags "-msse2" |
180 |
+ fi |
181 |
+ |
182 |
+ cmake_src_configure |
183 |
+} |
184 |
+ |
185 |
+src_install() { |
186 |
+ if use doc && [[ ${PV} != *9999* ]]; then |
187 |
+ # copy missing images to the build directory: |
188 |
+ cp -r "${WORKDIR}"/doc/doxygen/deal.II/images \ |
189 |
+ "${BUILD_DIR}"/doc/doxygen/deal.II || die |
190 |
+ # replace links: |
191 |
+ sed -i \ |
192 |
+ 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \ |
193 |
+ "${BUILD_DIR}"/doc/doxygen/deal.II/step_*.html || die "sed failed" |
194 |
+ fi |
195 |
+ cmake_src_install |
196 |
+ |
197 |
+ # decompress the installed example sources: |
198 |
+ use examples && docompress -x /usr/share/doc/${PF}/examples |
199 |
+} |
200 |
|
201 |
diff --git a/sci-libs/dealii/metadata.xml b/sci-libs/dealii/metadata.xml |
202 |
index 8b4433d57a7d..c25ce26eaf2c 100644 |
203 |
--- a/sci-libs/dealii/metadata.xml |
204 |
+++ b/sci-libs/dealii/metadata.xml |
205 |
@@ -17,7 +17,9 @@ to the complex data structures and algorithms required. |
206 |
</longdescription> |
207 |
<use> |
208 |
<flag name="adolc">Adds support for ADOL-C (<pkg>sci-libs/adolc</pkg>)</flag> |
209 |
+ <flag name="arborx">Adds support for ARBORX (<pkg>sci-libs/arborx</pkg>)</flag> |
210 |
<flag name="arpack">Adds support for ARPACK (<pkg>sci-libs/arpack</pkg>)</flag> |
211 |
+ <flag name="cgal">Adds support for CGAL (<pkg>sci-mathematics/cgal</pkg>)</flag> |
212 |
<flag name="debug"> |
213 |
Build an additional debug library with extra debug codepaths, like asserts |
214 |
and extra output. If you want to get meaningful backtraces see |