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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 27 18:58:17 2014 UTC (6 years, 9 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

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

  ViewVC Help
Powered by ViewVC 1.1.20