1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Scientific library and interface for array oriented data access"
9 HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
10 SRC_URI="https://github.com/Unidata/netcdf-c/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="UCAR-Unidata"
14 KEYWORDS="amd64 ~arm ~ia64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
15 IUSE="+dap examples hdf +hdf5 mpi static-libs szip test tools"
16 RESTRICT="!test? ( test )"
19 dap? ( net-misc/curl:0= )
20 hdf? ( sci-libs/hdf:0= sci-libs/hdf5:0= )
21 hdf5? ( sci-libs/hdf5:0=[hl(+),mpi=,szip=,zlib] )"
23 # doc generation is missing many doxygen files in tar ball
24 # doc? ( app-doc/doxygen[dot] )"
26 REQUIRED_USE="test? ( tools ) szip? ( hdf5 ) mpi? ( hdf5 )"
28 S="${WORKDIR}/${PN}-c-${PV}"
37 --disable-dap-remote-tests \
39 $(use_enable hdf hdf4) \
40 $(use_enable hdf5 netcdf-4) \
41 $(use_enable static-libs static) \
42 $(use_enable tools utilities)
46 # fails parallel tests: bug #621486
52 use examples && dodoc -r examples