/[gentoo-x86]/sci-misc/nco/nco-4.4.2.ebuild
Gentoo

Contents of /sci-misc/nco/nco-4.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 31 07:45:44 2015 UTC (5 years, 4 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Add missing USE-dep, bug #542704

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)

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-misc/nco/nco-4.4.2.ebuild,v 1.3 2014/08/07 16:45:53 mgorny Exp $
4
5 EAPI=5
6
7 AUTOTOOLS_IN_SOURCE_BUILD=1
8 inherit autotools-utils eutils flag-o-matic
9
10 DESCRIPTION="Command line utilities for operating on netCDF files"
11 HOMEPAGE="http://nco.sourceforge.net/"
12 SRC_URI="http://nco.sf.net/src/${P}.tar.gz"
13
14 LICENSE="GPL-3"
15 SLOT="0/${PV}"
16 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
17
18 IUSE="dap doc gsl ncap2 static-libs test udunits"
19
20 RDEPEND="
21 >=sci-libs/netcdf-4:=[dap=,tools]
22 gsl? ( sci-libs/gsl:= )
23 udunits? ( >=sci-libs/udunits-2 )"
24
25 DEPEND="${RDEPEND}
26 ncap2? ( dev-java/antlr:0 )
27 test? ( >=sci-libs/netcdf-4[tools] )"
28
29 src_configure() {
30 local myeconfargs=(
31 --disable-udunits
32 $(use_enable dap dap-netcdf)
33 $(use_enable gsl)
34 $(use_enable ncap2)
35 $(use_enable udunits udunits2)
36 )
37 if has_version '>=sci-libs/netcdf-4[hdf5]'; then
38 myeconfargs+=( --enable-netcdf4 )
39 append-cppflags -DHAVE_NETCDF4_H
40 else
41 myeconfargs+=( --disable-netcdf4 )
42 fi
43 autotools-utils_src_configure
44 }
45
46 src_install() {
47 autotools-utils_src_install
48 cd doc
49 doinfo *.info*
50 use doc && dohtml nco.html && dodoc nco.pdf
51 }

  ViewVC Help
Powered by ViewVC 1.1.20