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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Mar 17 08:17:00 2011 UTC (3 years, 5 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
ppc stable wrt #326433

(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/nco/nco-3.9.9.ebuild,v 1.4 2010/08/12 08:27:46 maekke Exp $
4
5 EAPI=2
6 inherit eutils flag-o-matic
7
8 DESCRIPTION="Command line utilities for operating on netCDF files"
9 SRC_URI="http://dust.ess.uci.edu/nco/src/${P}.tar.gz"
10 HOMEPAGE="http://nco.sourceforge.net/"
11
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15
16 IUSE="doc mpi ncap2 udunits"
17
18 RDEPEND="sci-libs/netcdf
19 mpi? ( virtual/mpi )
20 udunits? ( >=sci-libs/udunits-2 )"
21
22 DEPEND="${RDEPEND}
23 ncap2? ( !mpi? ( dev-java/antlr:0 ) )
24 doc? ( virtual/latex-base )"
25
26 pkg_setup() {
27 if use mpi && use ncap2; then
28 elog
29 elog "mpi and ncap2 are still incompatible flags"
30 elog "nco configure will automatically disables ncap2"
31 elog
32 fi
33 }
34
35 src_configure() {
36 local myconf
37 if has_version ">=sci-libs/netcdf-4" && built_with_use sci-libs/netcdf hdf5; then
38 append-cppflags -DHAVE_NETCDF4_H
39 myconf="--enable-netcdf4"
40 else
41 myconf="--disable-netcdf4"
42 fi
43 econf \
44 ${myconf} \
45 --disable-udunits \
46 $(use_enable ncap2) \
47 $(use_enable udunits udunits2) \
48 $(use_enable mpi)
49 }
50
51 src_compile() {
52 emake || die "emake failed"
53 cd doc
54 emake clean info
55 if use doc; then
56 VARTEXFONTS="${T}/fonts" emake html pdf || die "emake doc failed"
57 fi
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install || die "emake install failed"
62 cd doc
63 dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \
64 || die "dodoc failed"
65 doinfo *.info* || die "doinfo failed"
66 if use doc; then
67 dohtml nco.html/* || die "dohtml failed"
68 insinto /usr/share/doc/${PF}
69 doins nco.pdf || die "pdf install failed"
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20