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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 30 04:10:40 2011 UTC (2 years, 11 months ago) by bicatali
Branch: MAIN
Version bump. Removed mpi flag, since it was quite buggy on compilation

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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"
15
16 IUSE="dap doc gsl ncap2 static-libs udunits"
17
18 RDEPEND=">=sci-libs/netcdf-4[dap=]
19 gsl? ( sci-libs/gsl )
20 udunits? ( >=sci-libs/udunits-2 )"
21
22 DEPEND="${RDEPEND}
23 ncap2? ( dev-java/antlr:0 )
24 doc? ( virtual/latex-base )"
25
26 src_configure() {
27 local myconf
28 if has_version '>=sci-libs/netcdf-4[hdf5]'; then
29 myconf="--enable-netcdf4"
30 append-flags -DHAVE_NETCDF4_H
31 else
32 myconf="--disable-netcdf4"
33 fi
34 if use dap; then
35 myconf="${myconf} --enable-dap-netcdf --disable-dap-opendap"
36 else
37 myconf="${myconf} --disable-dap-netcdf --disable-dap-opendap"
38 fi
39 econf \
40 --disable-udunits \
41 $(use_enable gsl) \
42 $(use_enable ncap2) \
43 $(use_enable static-libs static) \
44 $(use_enable udunits udunits2) \
45 ${myconf}
46 }
47
48 src_compile() {
49 # TODO: workout -j1 to make sure lex generation is done
50 emake -j1
51 cd doc
52 emake clean info
53 use doc && VARTEXFONTS="${T}/fonts" emake html pdf
54 }
55
56 src_install() {
57 default
58 cd doc
59 dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt
60 doinfo *.info*
61 use doc && dohtml nco.html/* && dodoc nco.pdf
62 }

  ViewVC Help
Powered by ViewVC 1.1.20