Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/
Date: Sun, 30 Sep 2018 10:10:23
Message-Id: 1538302192.899f0e6bf88c3dc6693f93f7fad486ef8e7f185e.pacho@gentoo
1 commit: 899f0e6bf88c3dc6693f93f7fad486ef8e7f185e
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 30 10:06:59 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 30 10:09:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=899f0e6b
7
8 sci-libs/netcdf: Update subslot (#654036 by Jouni Kosonen)
9
10 Package-Manager: Portage-2.3.50, Repoman-2.3.11
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 sci-libs/netcdf/netcdf-4.6.1-r1.ebuild | 53 ++++++++++++++++++++++++++++++++++
14 1 file changed, 53 insertions(+)
15
16 diff --git a/sci-libs/netcdf/netcdf-4.6.1-r1.ebuild b/sci-libs/netcdf/netcdf-4.6.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..f4ebee1029c
19 --- /dev/null
20 +++ b/sci-libs/netcdf/netcdf-4.6.1-r1.ebuild
21 @@ -0,0 +1,53 @@
22 +# Copyright 1999-2018 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit eutils
28 +
29 +DESCRIPTION="Scientific library and interface for array oriented data access"
30 +HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
31 +SRC_URI="https://github.com/Unidata/netcdf-c/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 +
33 +LICENSE="UCAR-Unidata"
34 +SLOT="0/13"
35 +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
36 +IUSE="+dap examples hdf +hdf5 mpi static-libs szip test tools"
37 +
38 +RDEPEND="
39 + dap? ( net-misc/curl:0= )
40 + hdf? ( sci-libs/hdf:0= sci-libs/hdf5:0= )
41 + hdf5? ( sci-libs/hdf5:0=[hl(+),mpi=,szip=,zlib] )"
42 +DEPEND="${RDEPEND}"
43 +# doc generation is missing many doxygen files in tar ball
44 +# doc? ( app-doc/doxygen[dot] )"
45 +
46 +REQUIRED_USE="test? ( tools ) szip? ( hdf5 ) mpi? ( hdf5 )"
47 +
48 +S="${WORKDIR}/${PN}-c-${PV}"
49 +
50 +src_configure() {
51 + local myconf
52 + if use mpi; then
53 + export CC=mpicc
54 + fi
55 + econf "${myconf}" \
56 + --disable-examples \
57 + --disable-dap-remote-tests \
58 + $(use_enable dap) \
59 + $(use_enable hdf hdf4) \
60 + $(use_enable hdf5 netcdf-4) \
61 + $(use_enable static-libs static) \
62 + $(use_enable tools utilities)
63 +}
64 +
65 +src_test() {
66 + # fails parallel tests: bug #621486
67 + emake check -j1
68 +}
69 +
70 +src_install() {
71 + default
72 + use examples && dodoc -r examples
73 + prune_libtool_files
74 +}