/[gentoo-x86]/sci-libs/netcdf/netcdf-4.3.2-r1.ebuild
Gentoo

Contents of /sci-libs/netcdf/netcdf-4.3.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 22 10:58:10 2015 UTC (5 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
amd64/ppc/ppc64/x86 stable, bug #540494

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/netcdf-4.3.2-r1.ebuild,v 1.2 2014/10/24 14:19:46 aballier Exp $
4
5 EAPI=5
6
7 inherit autotools-utils
8
9 DESCRIPTION="Scientific library and interface for array oriented data access"
10 HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/"
11 SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/${P}.tar.gz"
12
13 LICENSE="UCAR-Unidata"
14 SLOT="0/7"
15 KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux"
16 IUSE="+dap examples hdf +hdf5 mpi static-libs szip test tools"
17
18 RDEPEND="
19 dap? ( net-misc/curl:0= )
20 hdf? ( sci-libs/hdf:0= sci-libs/hdf5:0= )
21 hdf5? ( sci-libs/hdf5:0=[mpi=,szip=,zlib] )"
22 DEPEND="${RDEPEND}"
23 # doc generation is missing many doxygen files in tar ball
24 # doc? ( app-doc/doxygen[dot] )"
25
26 REQUIRED_USE="test? ( tools ) szip? ( hdf5 ) mpi? ( hdf5 )"
27
28 PATCHES=( "${FILESDIR}/${P}-HDF5-1.8.13+-compat.patch" )
29
30 src_configure() {
31 # --docdir="${EPREFIX}"/usr/share/doc/${PF}
32 # $(use_enable doc doxygen)
33 local myeconfargs=(
34 --disable-examples
35 --disable-dap-remote-tests
36 $(use_enable dap)
37 $(use_enable hdf hdf4)
38 $(use_enable hdf5 netcdf-4)
39 $(use_enable tools utilities)
40 )
41 if use mpi; then
42 export CC=mpicc
43 myeconfargs+=( --enable-parallel )
44 use test && myeconfargs+=( --enable-parallel-tests )
45 fi
46 autotools-utils_src_configure
47 }
48
49 src_test() {
50 autotools-utils_src_test -j1
51 }
52
53 src_install() {
54 autotools-utils_src_install
55 if use examples; then
56 insinto /usr/share/doc/${PF}
57 doins -r examples
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20