Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/p4est/
Date: Fri, 26 May 2017 17:12:05
Message-Id: 1495818701.f66d4f0696a62958f1d78eb60012cd2c44207b06.tamiko@gentoo
1 commit: f66d4f0696a62958f1d78eb60012cd2c44207b06
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 26 17:07:41 2017 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Fri May 26 17:11:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f66d4f06
7
8 sci-libs/p4est: Initial commit, move from science overlay
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 sci-libs/p4est/Manifest | 4 ++
13 sci-libs/p4est/metadata.xml | 25 +++++++++
14 sci-libs/p4est/p4est-1.0.ebuild | 99 +++++++++++++++++++++++++++++++++
15 sci-libs/p4est/p4est-1.1.ebuild | 99 +++++++++++++++++++++++++++++++++
16 sci-libs/p4est/p4est-9999.ebuild | 117 +++++++++++++++++++++++++++++++++++++++
17 5 files changed, 344 insertions(+)
18
19 diff --git a/sci-libs/p4est/Manifest b/sci-libs/p4est/Manifest
20 new file mode 100644
21 index 00000000000..13859d7595c
22 --- /dev/null
23 +++ b/sci-libs/p4est/Manifest
24 @@ -0,0 +1,4 @@
25 +DIST libsc-1.0.tar.gz 257930 SHA256 a9f8a0f342a4a92c4031735e044e7ee73d9fd7e6df3e50a51c4c5016e27ed1ba SHA512 bf5af600e9cbd4038b1bd40c88776b21be5d474e34f9aacf287b890d262a22dc50ca27982c2eb9adba9735c8d9bb1fc31de2a27b24cdab534e3b2f610d76db7d WHIRLPOOL 56f89fcaf90bc8d4f872cee4fe150f692933b39376758c42b67d2e42659c19a9332a1d5e6d2d81c011dade0c6ab40c526c69ce2168fe41060f5d4be1a6595b1b
26 +DIST libsc-1.1.tar.gz 263643 SHA256 99c3fb3b7d6514ccaa667bdc848a7308c00f05bf6fdc0561ce286db9644ee03e SHA512 a3d8bea406a1987e68e88dd587aebe28c796f2a5bddfc381b34b5eb1448e0ac23889cc6f97fc1e4010289f83996180db42cbb001d0518360349b993dd37d4579 WHIRLPOOL b6c123cd245e4beb4cd6479e9d781d86784fab6975edc20562c14b5ecc59dbc824aca10fb02e4fa7612f0b2743fd7c7d3799f203546c5859896812a21e1362df
27 +DIST p4est-1.0.tar.gz 695027 SHA256 d669b0487eb0d2765c77adcab551c447f2cfa49d60a5a9016eaf48526ece74b6 SHA512 781240bbca2779f4076c310575ad99e8b526ecf6a3da8b7b5f096615bbfb570dd0556e607797715b69c95c6dd73baf837f1c632be763efae835941107f1fe3df WHIRLPOOL 690e350c3960b48cf5ac6bbc9aeff49557da25a69e152b7dca8fdb91b424f1669e9cf603903fb3f4de01078b964c63f7811b63000cacc5d56845ba96f6c516bf
28 +DIST p4est-1.1.tar.gz 1241423 SHA256 14a4ba6c5883ece611c90fae29bc60a454c20db43df646b232bd5aa552acd5cf SHA512 11eb576a16a4cc959eff8894d6cb11d8bae092951be9cf9d71b538825bdf675af7fd77d79505b9e896ec1810c1f8e9391447a79263c6d2e33fef780e97d07f29 WHIRLPOOL 38253d7dd01d5406c5e7e773afdabcac85d49bedd86d3a325c227b32e9d09ddb5397a77e8485489a2e46c582ea242d5eaad877c139504088246d2b8d31b86c63
29
30 diff --git a/sci-libs/p4est/metadata.xml b/sci-libs/p4est/metadata.xml
31 new file mode 100644
32 index 00000000000..a7e30547b05
33 --- /dev/null
34 +++ b/sci-libs/p4est/metadata.xml
35 @@ -0,0 +1,25 @@
36 +<?xml version='1.0' encoding='UTF-8'?>
37 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
38 +<pkgmetadata>
39 + <maintainer type="person">
40 + <email>tamiko@g.o</email>
41 + <name>Matthias Maier</name>
42 + </maintainer>
43 + <maintainer type="project">
44 + <email>sci@g.o</email>
45 + <name>Gentoo Science Project</name>
46 + </maintainer>
47 + <longdescription lang="en">
48 +The p4est software library enables the dynamic management of a collection
49 +of adaptive octrees, conveniently called a forest of octrees. p4est is
50 +designed to work in parallel and scale to hundreds of thousands of
51 +processor cores.
52 + </longdescription>
53 + <use>
54 + <flag name="vtk-binary">Enable binary vtk output. If disabled vtk files will be written in ASCII text format.</flag>
55 + <flag name="romio">Build with support for the ROMIO MPI-IO component</flag>
56 + </use>
57 + <upstream>
58 + <remote-id type="github">cburstedde/libsc</remote-id>
59 + </upstream>
60 +</pkgmetadata>
61
62 diff --git a/sci-libs/p4est/p4est-1.0.ebuild b/sci-libs/p4est/p4est-1.0.ebuild
63 new file mode 100644
64 index 00000000000..637628420bf
65 --- /dev/null
66 +++ b/sci-libs/p4est/p4est-1.0.ebuild
67 @@ -0,0 +1,99 @@
68 +# Copyright 1999-2017 Gentoo Foundation
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=6
72 +
73 +# The build system currently fails with everything newer than 1.11.
74 +WANT_AUTOMAKE=1.11
75 +
76 +inherit autotools eutils
77 +
78 +DESCRIPTION="Scalable Algorithms for Parallel Adaptive Mesh Refinement on Forests of Octrees"
79 +HOMEPAGE="http://www.p4est.org/"
80 +SRC_URI="
81 + https://github.com/cburstedde/p4est/archive/v${PV}.tar.gz -> ${P}.tar.gz
82 + https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> libsc-${PV}.tar.gz"
83 +
84 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
85 +
86 +LICENSE="GPL-2+"
87 +SLOT="0"
88 +
89 +IUSE="debug doc examples mpi romio static-libs +vtk-binary"
90 +REQUIRED_USE="romio? ( mpi )"
91 +
92 +RDEPEND="
93 + ~sci-libs/libsc-${PV}[mpi=,romio=,static-libs=]
94 + dev-lang/lua:*
95 + sys-apps/util-linux
96 + virtual/blas
97 + virtual/lapack
98 + mpi? ( virtual/mpi[romio=] )"
99 +
100 +DEPEND="
101 + ${RDEPEND}
102 + sys-devel/automake:1.11
103 + virtual/pkgconfig"
104 +
105 +DOCS=( AUTHORS NEWS README )
106 +
107 +src_prepare() {
108 + default
109 +
110 + # Inject libsc to get all parts of the build system...
111 + rmdir "${S}/sc" || die "rmdir failed"
112 + mv "${WORKDIR}/libsc-${PV}" "${S}/sc" || die "mv failed"
113 +
114 + # Inject a version number into the build system
115 + echo "${PV}" > ${S}/.tarball-version
116 +
117 + AT_M4DIR="${WORKDIR}/${P}/config ${WORKDIR}/${P}/sc/config"
118 + eautoreconf
119 +
120 + sed -i \
121 + "s/P4EST_SC_DIR\/etc/P4EST_SC_DIR\/share\/libsc/" \
122 + "${S}"/configure || die "sed failed"
123 +
124 + sed -i \
125 + "s/libsc\.la/libsc\.so/" \
126 + "${S}"/configure || die "sed failed"
127 +}
128 +
129 +src_configure() {
130 + # avoid underlinkage
131 + LDFLAGS="${LDFLAGS} -lsc"
132 +
133 + local myeconfargs=(
134 + $(use_enable debug)
135 + $(use_enable mpi)
136 + $(use_enable romio mpiio)
137 + $(use_enable static-libs static)
138 + $(use_enable vtk-binary)
139 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
140 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
141 + --with-sc="${EPREFIX}/usr"
142 + )
143 + econf "${myeconfargs[@]}"
144 +}
145 +
146 +src_install() {
147 + default
148 +
149 + use doc && dodoc -r doc/*
150 +
151 + if use examples
152 + then
153 + docinto examples
154 + dodoc -r example/*
155 + docompress -x /usr/share/doc/${PF}/examples
156 + else
157 + # Remove compiled example binaries in case of -examples:
158 + rm -r "${ED}"/usr/bin || die "rm failed"
159 + fi
160 +
161 + # Fix wrong installation paths:
162 + dodir /usr/share/p4est
163 + mv "${ED}"/usr/share/data "${ED}"/usr/share/p4est/data || die "mv failed"
164 + mv "${ED}"/etc/* "${ED}"/usr/share/p4est || die "mv failed"
165 + rmdir "${ED}"/etc/ || die "rmdir failed"
166 +}
167
168 diff --git a/sci-libs/p4est/p4est-1.1.ebuild b/sci-libs/p4est/p4est-1.1.ebuild
169 new file mode 100644
170 index 00000000000..637628420bf
171 --- /dev/null
172 +++ b/sci-libs/p4est/p4est-1.1.ebuild
173 @@ -0,0 +1,99 @@
174 +# Copyright 1999-2017 Gentoo Foundation
175 +# Distributed under the terms of the GNU General Public License v2
176 +
177 +EAPI=6
178 +
179 +# The build system currently fails with everything newer than 1.11.
180 +WANT_AUTOMAKE=1.11
181 +
182 +inherit autotools eutils
183 +
184 +DESCRIPTION="Scalable Algorithms for Parallel Adaptive Mesh Refinement on Forests of Octrees"
185 +HOMEPAGE="http://www.p4est.org/"
186 +SRC_URI="
187 + https://github.com/cburstedde/p4est/archive/v${PV}.tar.gz -> ${P}.tar.gz
188 + https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> libsc-${PV}.tar.gz"
189 +
190 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
191 +
192 +LICENSE="GPL-2+"
193 +SLOT="0"
194 +
195 +IUSE="debug doc examples mpi romio static-libs +vtk-binary"
196 +REQUIRED_USE="romio? ( mpi )"
197 +
198 +RDEPEND="
199 + ~sci-libs/libsc-${PV}[mpi=,romio=,static-libs=]
200 + dev-lang/lua:*
201 + sys-apps/util-linux
202 + virtual/blas
203 + virtual/lapack
204 + mpi? ( virtual/mpi[romio=] )"
205 +
206 +DEPEND="
207 + ${RDEPEND}
208 + sys-devel/automake:1.11
209 + virtual/pkgconfig"
210 +
211 +DOCS=( AUTHORS NEWS README )
212 +
213 +src_prepare() {
214 + default
215 +
216 + # Inject libsc to get all parts of the build system...
217 + rmdir "${S}/sc" || die "rmdir failed"
218 + mv "${WORKDIR}/libsc-${PV}" "${S}/sc" || die "mv failed"
219 +
220 + # Inject a version number into the build system
221 + echo "${PV}" > ${S}/.tarball-version
222 +
223 + AT_M4DIR="${WORKDIR}/${P}/config ${WORKDIR}/${P}/sc/config"
224 + eautoreconf
225 +
226 + sed -i \
227 + "s/P4EST_SC_DIR\/etc/P4EST_SC_DIR\/share\/libsc/" \
228 + "${S}"/configure || die "sed failed"
229 +
230 + sed -i \
231 + "s/libsc\.la/libsc\.so/" \
232 + "${S}"/configure || die "sed failed"
233 +}
234 +
235 +src_configure() {
236 + # avoid underlinkage
237 + LDFLAGS="${LDFLAGS} -lsc"
238 +
239 + local myeconfargs=(
240 + $(use_enable debug)
241 + $(use_enable mpi)
242 + $(use_enable romio mpiio)
243 + $(use_enable static-libs static)
244 + $(use_enable vtk-binary)
245 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
246 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
247 + --with-sc="${EPREFIX}/usr"
248 + )
249 + econf "${myeconfargs[@]}"
250 +}
251 +
252 +src_install() {
253 + default
254 +
255 + use doc && dodoc -r doc/*
256 +
257 + if use examples
258 + then
259 + docinto examples
260 + dodoc -r example/*
261 + docompress -x /usr/share/doc/${PF}/examples
262 + else
263 + # Remove compiled example binaries in case of -examples:
264 + rm -r "${ED}"/usr/bin || die "rm failed"
265 + fi
266 +
267 + # Fix wrong installation paths:
268 + dodir /usr/share/p4est
269 + mv "${ED}"/usr/share/data "${ED}"/usr/share/p4est/data || die "mv failed"
270 + mv "${ED}"/etc/* "${ED}"/usr/share/p4est || die "mv failed"
271 + rmdir "${ED}"/etc/ || die "rmdir failed"
272 +}
273
274 diff --git a/sci-libs/p4est/p4est-9999.ebuild b/sci-libs/p4est/p4est-9999.ebuild
275 new file mode 100644
276 index 00000000000..38e6d195684
277 --- /dev/null
278 +++ b/sci-libs/p4est/p4est-9999.ebuild
279 @@ -0,0 +1,117 @@
280 +# Copyright 1999-2017 Gentoo Foundation
281 +# Distributed under the terms of the GNU General Public License v2
282 +
283 +EAPI=6
284 +
285 +inherit autotools toolchain-funcs eutils
286 +
287 +DESCRIPTION="Scalable Algorithms for Parallel Adaptive Mesh Refinement on Forests of Octrees"
288 +HOMEPAGE="http://www.p4est.org/"
289 +
290 +if [[ ${PV} = *9999* ]]; then
291 + inherit git-r3
292 + EGIT_REPO_URI="git://github.com/cburstedde/p4est.git"
293 + EGIT_BRANCH="develop"
294 + SRC_URI=""
295 + KEYWORDS=""
296 +else
297 + SRC_URI="
298 + https://github.com/cburstedde/p4est/archive/v${PV}.tar.gz -> ${P}.tar.gz
299 + https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> libsc-${PV}.tar.gz"
300 + KEYWORDS="~amd64 ~x86"
301 +fi
302 +
303 +LICENSE="GPL-2+"
304 +SLOT="0"
305 +
306 +# TODO petsc
307 +IUSE="debug doc examples mpi openmp romio static-libs threads +vtk-binary"
308 +REQUIRED_USE="romio? ( mpi )"
309 +
310 +RDEPEND="
311 + ~sci-libs/libsc-${PV}[mpi=,openmp=,romio=,static-libs=,threads=]
312 + dev-lang/lua:*
313 + sys-apps/util-linux
314 + virtual/blas
315 + virtual/lapack
316 + mpi? ( virtual/mpi[romio=] )"
317 +
318 +DEPEND="
319 + ${RDEPEND}
320 + sys-devel/automake:1.11
321 + virtual/pkgconfig"
322 +
323 +DOCS=( AUTHORS NEWS README )
324 +
325 +pkg_pretend() {
326 + if [[ ${MERGE_TYPE} != "binary" ]] && use openmp; then
327 + tc-has-openmp || \
328 + die "Please select an openmp capable compiler like gcc[openmp]"
329 + fi
330 +}
331 +
332 +src_prepare() {
333 + default
334 +
335 + # Inject libsc to get all parts of the build system...
336 + if ! [[ ${PV} = *9999* ]]; then
337 + rmdir "${S}/sc" || die "rmdir failed"
338 + mv "${WORKDIR}/libsc-${PV}" "${S}/sc" || die "mv failed"
339 + fi
340 +
341 + # Inject a version number into the build system
342 + echo "${PV}" > ${S}/.tarball-version
343 +
344 + AT_M4DIR="${WORKDIR}/${P}/config ${WORKDIR}/${P}/sc/config"
345 + eautoreconf
346 +
347 + sed -i \
348 + "s/P4EST_SC_DIR\/etc/P4EST_SC_DIR\/share\/libsc/" \
349 + "${S}"/configure || die "sed failed"
350 +
351 + sed -i \
352 + "s/libsc\.la/libsc\.so/" \
353 + "${S}"/configure || die "sed failed"
354 +
355 +}
356 +
357 +src_configure() {
358 + # avoid underlinkage
359 + LDFLAGS="${LDFLAGS} -lsc"
360 +
361 + local myeconfargs=(
362 + $(use_enable debug)
363 + $(use_enable mpi)
364 + $(use_enable openmp)
365 + $(use_enable romio mpiio)
366 + $(use_enable static-libs static)
367 + $(use_enable threads pthread)
368 + $(use_enable vtk-binary)
369 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
370 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
371 + --with-sc="${EPREFIX}/usr"
372 + )
373 + econf "${myeconfargs[@]}"
374 +}
375 +
376 +src_install() {
377 + default
378 +
379 + use doc && dodoc -r doc/*
380 +
381 + if use examples
382 + then
383 + docinto examples
384 + dodoc -r example/*
385 + docompress -x /usr/share/doc/${PF}/examples
386 + else
387 + # Remove compiled example binaries in case of -examples:
388 + rm -r "${ED}"/usr/bin || die "rm failed"
389 + fi
390 +
391 + # Fix wrong installation paths:
392 + dodir /usr/share/p4est
393 + mv "${ED}"/usr/share/data "${ED}"/usr/share/p4est/data || die "mv failed"
394 + mv "${ED}"/etc/* "${ED}"/usr/share/p4est || die "mv failed"
395 + rmdir "${ED}"/etc/ || die "rmdir failed"
396 +}