Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/dealii/, sci-libs/dealii/files/
Date: Tue, 07 Sep 2021 16:19:35
Message-Id: 1631031556.75caa1d7f7c57dfbe32bc1220ec79bbf7cc1b02e.asturm@gentoo
1 commit: 75caa1d7f7c57dfbe32bc1220ec79bbf7cc1b02e
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 10:18:10 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 16:19:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75caa1d7
7
8 sci-libs/dealii: Drop 9.2.0-r1, cmake-utils--
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-libs/dealii/Manifest | 2 -
14 sci-libs/dealii/dealii-9.2.0-r1.ebuild | 160 ---------------------
15 .../dealii-9.2.0-fix-boost-include-file.patch | 25 ----
16 sci-libs/dealii/metadata.xml | 2 -
17 4 files changed, 189 deletions(-)
18
19 diff --git a/sci-libs/dealii/Manifest b/sci-libs/dealii/Manifest
20 index 9dc09aab7ee..1ba2ba2ea65 100644
21 --- a/sci-libs/dealii/Manifest
22 +++ b/sci-libs/dealii/Manifest
23 @@ -1,5 +1,3 @@
24 -DIST dealii-9.2.0-offline_documentation.tar.gz 277987911 BLAKE2B d14e15bc252f481707b04e9ca3fd05b5469035537a099466a8272fa1d56833c99d845871534df75bbb2efb29063e738700a5a2815b653cdd14b49b3a93add368 SHA512 9680731b4d837561c3682a65391b442cfb8d2a947b0e4e37cad1df83877b371997d084eac52e2bf34b190ea54996d41ddd89bee79fff24d710199417f3f345ab
25 -DIST dealii-9.2.0.tar.gz 24688964 BLAKE2B 60a8ede72a49cb2e658b3d6d53fb332a96f44a7fb9bb499ba54175138d49f38a9b75d9bea2eaddcaa3f50d97ce53961692b35f89578f535d32301680e6f1d68b SHA512 7c76435e45c9c302c4f95f588229f5a9b81f0450bd029729553c706a25dfd16f5c02c50fd2618d7e285d18927b63426110d2c6a074242b91cf789bd4bc77acc5
26 DIST dealii-9.3.0-offline_documentation.tar.gz 342390250 BLAKE2B 5ed1e5d5f7cd6a44f0dccc4b092c241fadc430facb77ec2a9ffb30d00dc13751f0ac08e2f05960584fbb60b26b64fa070c437f392e2e62b4ba1328e4efcd0677 SHA512 ff04cf3690160119041a9dc102ece81c351c41809fe1717cbc95aa97f2f1fe2ccc36e1b4b3045b73056a54fc7e3a27d3d734908760e9c34203b566b328b104b7
27 DIST dealii-9.3.0.tar.gz 24458373 BLAKE2B 27cdaee4e7ec9c170e11c5ba9bff8fd654bb2a9452df3402d5639268a6fe31565faa38d240810a0323b7253f2ed665c25fa0948c56b9924f1836531f2414bc92 SHA512 d558b5dda1067f7d995bc5f265614e3bc5e70190d24c1c61047af1ddc52fa007013c51901b9b8eacfbe8b360dffcb22aca87e0019ee09581b928e00c39198c98
28 DIST dealii-9.3.1-offline_documentation.tar.gz 342389060 BLAKE2B 71b47816dd22f490168f91c667308ecf10d5733bb4e4d6f7f214dfa729f47e6f44bf32382167f2f6c864038d04c994cab7ef91ae647b4188c53995c5c2904bf3 SHA512 7ab70b7821924a4383f2d46bcb44e702858206a8444870d3e2282d726b2c1cf3009f615888206312aed34eae9595ff19664da422e33c47720cce5c5fd37c1e18
29
30 diff --git a/sci-libs/dealii/dealii-9.2.0-r1.ebuild b/sci-libs/dealii/dealii-9.2.0-r1.ebuild
31 deleted file mode 100644
32 index fa6f92f0b59..00000000000
33 --- a/sci-libs/dealii/dealii-9.2.0-r1.ebuild
34 +++ /dev/null
35 @@ -1,160 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -inherit cmake-utils multilib
42 -
43 -# deal.II uses its own FindLAPACK.cmake file that calls into the system
44 -# FindLAPACK.cmake module and does additional internal setup. Do not remove
45 -# any of these modules:
46 -CMAKE_REMOVE_MODULES_LIST=""
47 -
48 -DESCRIPTION="Solving partial differential equations with the finite element method"
49 -HOMEPAGE="https://www.dealii.org/"
50 -
51 -if [[ ${PV} = *9999* ]]; then
52 - inherit git-r3
53 - EGIT_REPO_URI="https://github.com/dealii/dealii.git"
54 - SRC_URI=""
55 -else
56 - SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz
57 - doc? (
58 - https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}-offline_documentation.tar.gz
59 - )"
60 - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
61 -fi
62 -
63 -LICENSE="LGPL-2.1+"
64 -SLOT="0"
65 -IUSE="
66 - adolc assimp arpack cpu_flags_x86_avx cpu_flags_x86_avx512f
67 - cpu_flags_x86_sse2 cuda +debug doc +examples ginkgo gmsh +gsl hdf5
68 - +lapack metis mpi muparser nanoflann opencascade p4est petsc
69 - scalapack slepc +sparse static-libs sundials symengine +tbb trilinos
70 -"
71 -
72 -# TODO: add slepc use flag once slepc is packaged for gentoo-science
73 -REQUIRED_USE="
74 - p4est? ( mpi )
75 - slepc? ( petsc )
76 - trilinos? ( mpi )"
77 -
78 -RDEPEND="dev-libs/boost
79 - app-arch/bzip2
80 - sys-libs/zlib
81 - adolc? ( sci-libs/adolc )
82 - arpack? ( sci-libs/arpack[mpi=] )
83 - assimp? ( media-libs/assimp )
84 - cuda? ( dev-util/nvidia-cuda-sdk )
85 - ginkgo? ( sci-libs/ginkgo )
86 - gmsh? ( sci-libs/gmsh )
87 - gsl? ( sci-libs/gsl:= )
88 - hdf5? ( sci-libs/hdf5[mpi=] )
89 - lapack? ( virtual/lapack )
90 - metis? (
91 - >=sci-libs/metis-5
92 - mpi? ( >=sci-libs/parmetis-4 )
93 - )
94 - mpi? ( virtual/mpi )
95 - muparser? ( dev-cpp/muParser )
96 - nanoflann? ( sci-libs/nanoflann )
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-4:= )
104 - symengine? ( >=sci-libs/symengine-0.4:= )
105 - tbb? ( dev-cpp/tbb )
106 - trilinos? ( sci-libs/trilinos )"
107 -
108 -DEPEND="${RDEPEND}
109 - virtual/pkgconfig
110 - doc? ( app-doc/doxygen[dot] dev-lang/perl )"
111 -
112 -PATCHES=(
113 - "${FILESDIR}"/${PN}-9.1.1-no-ld-flags.patch
114 - "${FILESDIR}"/${PN}-9.2.0-fix-boost-include-file.patch
115 -)
116 -
117 -src_configure() {
118 - # deal.II needs a custom build type:
119 - local CMAKE_BUILD_TYPE=$(usex debug DebugRelease Release)
120 -
121 - local mycmakeargs=(
122 - -DDEAL_II_PACKAGE_VERSION="${PV}"
123 - -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF
124 - -DDEAL_II_ALLOW_AUTODETECTION=OFF
125 - -DDEAL_II_ALLOW_BUNDLED=OFF
126 - -DDEAL_II_ALLOW_PLATFORM_INTROSPECTION=OFF
127 - -DDEAL_II_COMPILE_EXAMPLES=OFF
128 - -DDEAL_II_DOCHTML_RELDIR="share/doc/${P}/html"
129 - -DDEAL_II_DOCREADME_RELDIR="share/doc/${P}"
130 - -DDEAL_II_COMPILE_EXAMPLES=OFF
131 - -DDEAL_II_EXAMPLES_RELDIR="share/doc/${P}/examples"
132 - -DDEAL_II_LIBRARY_RELDIR="$(get_libdir)"
133 - -DDEAL_II_SHARE_RELDIR="share/${PN}"
134 - -DDEAL_II_WITH_ZLIB=ON
135 - -DDEAL_II_WITH_ADOLC="$(usex adolc)"
136 - -DDEAL_II_WITH_ASSIMP="$(usex assimp)"
137 - -DDEAL_II_WITH_ARPACK="$(usex arpack)"
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_LAPACK="$(usex lapack)"
146 - -DDEAL_II_WITH_METIS="$(usex metis)"
147 - -DDEAL_II_WITH_MPI="$(usex mpi)"
148 - -DDEAL_II_WITH_MUPARSER="$(usex muparser)"
149 - -DDEAL_II_WITH_NANOFLANN="$(usex nanoflann)"
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_THREADS="$(usex tbb)"
161 - -DDEAL_II_WITH_TRILINOS="$(usex trilinos)"
162 - )
163 -
164 - # Do a little dance for purely cosmetic "QA" reasons.
165 - use opencascade && mycmakeargs+=( -DOPENCASCADE_DIR="${CASROOT}" )
166 -
167 - # Do a little dance for purely cosmetic "QA" reasons. The build system
168 - # does query for the highest instruction set first and skips the other
169 - # variables if a "higher" variant is set
170 - if use cpu_flags_x86_avx512f; then
171 - mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes )
172 - elif use cpu_flags_x86_avx; then
173 - mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes )
174 - elif use cpu_flags_x86_avx; then
175 - mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes )
176 - fi
177 -
178 - cmake-utils_src_configure
179 -}
180 -
181 -src_install() {
182 - if use doc && [[ ${PV} != *9999* ]]; then
183 - # copy missing images to the build directory:
184 - cp -r "${WORKDIR}"/doc/doxygen/deal.II/images \
185 - "${BUILD_DIR}"/doc/doxygen/deal.II || die
186 - # replace links:
187 - sed -i \
188 - 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' \
189 - "${BUILD_DIR}"/doc/doxygen/deal.II/step_*.html || die "sed failed"
190 - fi
191 - cmake-utils_src_install
192 -
193 - # decompress the installed example sources:
194 - use examples && docompress -x /usr/share/doc/${PF}/examples
195 -}
196
197 diff --git a/sci-libs/dealii/files/dealii-9.2.0-fix-boost-include-file.patch b/sci-libs/dealii/files/dealii-9.2.0-fix-boost-include-file.patch
198 deleted file mode 100644
199 index 9fc6365d01c..00000000000
200 --- a/sci-libs/dealii/files/dealii-9.2.0-fix-boost-include-file.patch
201 +++ /dev/null
202 @@ -1,25 +0,0 @@
203 -From 9c1a580139f557433a226da437382b3f4307f7c8 Mon Sep 17 00:00:00 2001
204 -From: Luca Heltai <luca.heltai@×××××.it>
205 -Date: Wed, 30 Dec 2020 09:54:02 +0100
206 -Subject: [PATCH] Fix boost include file.
207 -
208 ----
209 - source/fe/mapping.cc | 2 ++
210 - 1 file changed, 2 insertions(+)
211 -
212 -diff --git a/source/fe/mapping.cc b/source/fe/mapping.cc
213 -index 288a9debcb..4ef3ef7714 100644
214 ---- a/source/fe/mapping.cc
215 -+++ b/source/fe/mapping.cc
216 -@@ -20,6 +20,8 @@
217 -
218 - #include <deal.II/grid/tria.h>
219 -
220 -+#include <boost/geometry.hpp>
221 -+
222 - DEAL_II_NAMESPACE_OPEN
223 -
224 -
225 ---
226 -2.26.3
227 -
228
229 diff --git a/sci-libs/dealii/metadata.xml b/sci-libs/dealii/metadata.xml
230 index cfcb25d9e50..6bb4348a7cd 100644
231 --- a/sci-libs/dealii/metadata.xml
232 +++ b/sci-libs/dealii/metadata.xml
233 @@ -28,12 +28,10 @@ and extra output. If you want to get meaningful backtraces see
234 <flag name="opencascade">Add support for opencascade (<pkg>sci-libs/opencascade</pkg>)</flag>
235 <flag name="p4est">Add support for p4est (<pkg>sci-libs/p4est</pkg>)</flag>
236 <flag name="petsc">Add support for petsc (<pkg>sci-mathematics/petsc</pkg>)</flag>
237 - <flag name="nanoflann">Adds support for nanoflann (<pkg>sci-libs/nanoflann</pkg>)</flag>
238 <flag name="scalapack">Add support for ScaLAPACK (<pkg>sci-libs/scalapack</pkg>)</flag>
239 <flag name="slepc">Add support for slepc (<pkg>sci-mathematics/slepc</pkg>)</flag>
240 <flag name="sparse">Add support for suitesparse (<pkg>sci-libs/suitesparse</pkg>)</flag>
241 <flag name="symengine">Add support for symengine (<pkg>sci-libs/symengine</pkg>)</flag>
242 - <flag name="tbb">Add threading support with the help of the tbb library (<pkg>dev-cpp/tbb</pkg>)</flag>
243 <flag name="trilinos">Add support for trilinos (<pkg>sci-libs/trilinos</pkg>)</flag>
244 <flag name="assimp">Add support for assimp (<pkg>media-libs/assimp</pkg>)</flag>
245 <flag name="cuda">Add support for cuda (<pkg>dev-util/nvidia-cuda-sdk</pkg>)</flag>