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/libsc/
Date: Fri, 26 May 2017 17:12:06
Message-Id: 1495818700.ec9971f53e8494a72310820ff95732712ef4f472.tamiko@gentoo
1 commit: ec9971f53e8494a72310820ff95732712ef4f472
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 26 16:32:55 2017 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Fri May 26 17:11:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec9971f5
7
8 sci-libs/libsc: Initial commit, move from science overlay
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 sci-libs/libsc/Manifest | 2 +
13 sci-libs/libsc/libsc-1.0.ebuild | 68 ++++++++++++++++++++++++++++++
14 sci-libs/libsc/libsc-1.1.ebuild | 70 +++++++++++++++++++++++++++++++
15 sci-libs/libsc/libsc-9999.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++
16 sci-libs/libsc/metadata.xml | 22 ++++++++++
17 5 files changed, 252 insertions(+)
18
19 diff --git a/sci-libs/libsc/Manifest b/sci-libs/libsc/Manifest
20 new file mode 100644
21 index 00000000000..475f0dc527b
22 --- /dev/null
23 +++ b/sci-libs/libsc/Manifest
24 @@ -0,0 +1,2 @@
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
28 diff --git a/sci-libs/libsc/libsc-1.0.ebuild b/sci-libs/libsc/libsc-1.0.ebuild
29 new file mode 100644
30 index 00000000000..f20b97e1195
31 --- /dev/null
32 +++ b/sci-libs/libsc/libsc-1.0.ebuild
33 @@ -0,0 +1,68 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit autotools eutils
40 +
41 +DESCRIPTION="Support for parallel scientific applications"
42 +HOMEPAGE="http://www.p4est.org/"
43 +SRC_URI="https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-2.1+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="debug examples mpi romio static-libs"
49 +
50 +REQUIRED_USE="romio? ( mpi )"
51 +
52 +RDEPEND="
53 + dev-lang/lua:*
54 + sys-apps/util-linux
55 + virtual/blas
56 + virtual/lapack
57 + mpi? ( virtual/mpi[romio?] )"
58 +
59 +DEPEND="
60 + ${RDEPEND}
61 + virtual/pkgconfig"
62 +
63 +DOCS=( AUTHORS NEWS README )
64 +
65 +src_prepare() {
66 + default
67 +
68 + # Inject a version number into the build system
69 + echo "${PV}" > ${S}/.tarball-version
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 + local myeconfargs=(
75 + $(use_enable debug)
76 + $(use_enable mpi)
77 + $(use_enable romio mpiio)
78 + $(use_enable static-libs static)
79 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
80 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
81 + )
82 + econf "${myeconfargs[@]}"
83 +}
84 +
85 +src_install() {
86 + default
87 +
88 + if use examples; then
89 + docinto examples
90 + dodoc -r example/*
91 + docompress -x /usr/share/doc/${PF}/examples
92 + else
93 + # Remove compiled example binaries in case of -examples:
94 + rm -r "${ED}"/usr/bin || die "rm failed"
95 + fi
96 +
97 + # Fix wrong installation paths:
98 + dodir /usr/share/libsc
99 + mv "${ED}"/etc/* "${ED}"/usr/share/libsc || die "mv failed"
100 + rmdir "${ED}"/etc/ || die "rmdir failed"
101 +}
102
103 diff --git a/sci-libs/libsc/libsc-1.1.ebuild b/sci-libs/libsc/libsc-1.1.ebuild
104 new file mode 100644
105 index 00000000000..58390d3dedd
106 --- /dev/null
107 +++ b/sci-libs/libsc/libsc-1.1.ebuild
108 @@ -0,0 +1,70 @@
109 +# Copyright 1999-2017 Gentoo Foundation
110 +# Distributed under the terms of the GNU General Public License v2
111 +
112 +EAPI=6
113 +
114 +inherit autotools eutils
115 +
116 +DESCRIPTION="Support for parallel scientific applications"
117 +HOMEPAGE="http://www.p4est.org/"
118 +SRC_URI="https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
119 +
120 +LICENSE="LGPL-2.1+"
121 +SLOT="0"
122 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
123 +IUSE="debug examples mpi romio static-libs"
124 +
125 +REQUIRED_USE="romio? ( mpi )"
126 +
127 +RDEPEND="
128 + dev-lang/lua:*
129 + sys-apps/util-linux
130 + virtual/blas
131 + virtual/lapack
132 + mpi? ( virtual/mpi[romio?] )"
133 +
134 +DEPEND="
135 + ${RDEPEND}
136 + virtual/pkgconfig"
137 +
138 +DOCS=( AUTHORS NEWS README )
139 +
140 +AUTOTOOLS_AUTORECONF=true
141 +
142 +src_prepare() {
143 + default
144 +
145 + # Inject a version number into the build system
146 + echo "${PV}" > ${S}/.tarball-version
147 + eautoreconf
148 +}
149 +
150 +src_configure() {
151 + local myeconfargs=(
152 + $(use_enable debug)
153 + $(use_enable mpi)
154 + $(use_enable romio mpiio)
155 + $(use_enable static-libs static)
156 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
157 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
158 + )
159 + econf "${myeconfargs[@]}"
160 +}
161 +
162 +src_install() {
163 + default
164 +
165 + if use examples; then
166 + docinto examples
167 + dodoc -r example/*
168 + docompress -x /usr/share/doc/${PF}/examples
169 + else
170 + # Remove compiled example binaries in case of -examples:
171 + rm -r "${ED}"/usr/bin || die "rm failed"
172 + fi
173 +
174 + # Fix wrong installation paths:
175 + dodir /usr/share/libsc
176 + mv "${ED}"/etc/* "${ED}"/usr/share/libsc || die "mv failed"
177 + rmdir "${ED}"/etc/ || die "rmdir failed"
178 +}
179
180 diff --git a/sci-libs/libsc/libsc-9999.ebuild b/sci-libs/libsc/libsc-9999.ebuild
181 new file mode 100644
182 index 00000000000..b6090443790
183 --- /dev/null
184 +++ b/sci-libs/libsc/libsc-9999.ebuild
185 @@ -0,0 +1,90 @@
186 +# Copyright 1999-2017 Gentoo Foundation
187 +# Distributed under the terms of the GNU General Public License v2
188 +
189 +EAPI=6
190 +
191 +inherit autotools toolchain-funcs eutils
192 +
193 +DESCRIPTION="Support for parallel scientific applications"
194 +HOMEPAGE="http://www.p4est.org/"
195 +
196 +if [[ ${PV} = *9999* ]]; then
197 + inherit git-r3
198 + EGIT_REPO_URI="git://github.com/cburstedde/libsc.git"
199 + EGIT_BRANCH="develop"
200 + SRC_URI=""
201 + KEYWORDS=""
202 +else
203 + SRC_URI="https://github.com/cburstedde/libsc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
204 + KEYWORDS="~amd64 ~x86"
205 +fi
206 +
207 +LICENSE="LGPL-2.1+"
208 +SLOT="0"
209 +IUSE="debug examples mpi openmp romio static-libs threads"
210 +
211 +REQUIRED_USE="romio? ( mpi )"
212 +
213 +RDEPEND="
214 + dev-lang/lua:*
215 + sys-apps/util-linux
216 + virtual/blas
217 + virtual/lapack
218 + mpi? ( virtual/mpi[romio?] )"
219 +
220 +DEPEND="
221 + ${RDEPEND}
222 + virtual/pkgconfig"
223 +
224 +DOCS=( AUTHORS NEWS README )
225 +
226 +AUTOTOOLS_AUTORECONF=true
227 +
228 +pkg_pretend() {
229 + if [[ ${MERGE_TYPE} != "binary" ]] && use openmp; then
230 + tc-has-openmp || \
231 + die "Please select an openmp capable compiler like gcc[openmp]"
232 + fi
233 +}
234 +
235 +src_prepare() {
236 + default
237 +
238 + # Inject a version number into the build system
239 + echo "${PV}" > ${S}/.tarball-version
240 + eautoreconf
241 +}
242 +
243 +src_configure() {
244 + local myeconfargs=(
245 + $(use_enable debug)
246 + $(use_enable mpi)
247 + $(use_enable openmp openmp)
248 + $(use_enable romio mpiio)
249 + $(use_enable static-libs static)
250 + $(use_enable threads pthread)
251 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
252 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
253 + )
254 + econf "${myeconfargs[@]}"
255 +}
256 +
257 +src_install() {
258 + default
259 +
260 + if use examples; then
261 + docinto examples
262 + dodoc -r example/*
263 + docompress -x /usr/share/doc/${PF}/examples
264 + else
265 + # Remove compiled example binaries in case of -examples:
266 + rm -r "${ED}"/usr/bin || die "rm failed"
267 + fi
268 +
269 + # Fix wrong installation paths:
270 + dodir /usr/share/libsc
271 + mv "${ED}"/etc/* "${ED}"/usr/share/libsc || die "mv failed"
272 + rmdir "${ED}"/etc/ || die "rmdir failed"
273 + mv "${ED}"/usr/share/ini/* "${ED}"/usr/share/libsc || die "mv failed"
274 + rmdir "${ED}"/usr/share/ini || die "rmdir failed"
275 +}
276
277 diff --git a/sci-libs/libsc/metadata.xml b/sci-libs/libsc/metadata.xml
278 new file mode 100644
279 index 00000000000..18bfaa1e547
280 --- /dev/null
281 +++ b/sci-libs/libsc/metadata.xml
282 @@ -0,0 +1,22 @@
283 +<?xml version='1.0' encoding='UTF-8'?>
284 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
285 +<pkgmetadata>
286 + <maintainer type="person">
287 + <email>tamiko@g.o</email>
288 + <name>Matthias Maier</name>
289 + </maintainer>
290 + <maintainer type="project">
291 + <email>sci@g.o</email>
292 + <name>Gentoo Science Project</name>
293 + </maintainer>
294 + <longdescription lang="en">
295 +The SC Library provides support for parallel scientific applications.
296 +This support library is primarily used by sci-libs/p4est.
297 + </longdescription>
298 + <use>
299 + <flag name="romio">Build with support for the ROMIO MPI-IO component</flag>
300 + </use>
301 + <upstream>
302 + <remote-id type="github">cburstedde/libsc</remote-id>
303 + </upstream>
304 +</pkgmetadata>