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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Nov 8 09:27:39 2007 UTC (13 years ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.3.16)

1 # Copyright 1999-2007 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.2.0.ebuild,v 1.3 2007/04/29 18:42:15 tove Exp $
4
5 DESCRIPTION="Command line utilities for operating on netCDF files"
6 SRC_URI="http://dust.ess.uci.edu/nco/src/${P}.tar.gz"
7 HOMEPAGE="http://nco.sourceforge.net/"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="~amd64 ~x86 ~ppc"
12
13 IUSE="mpi doc ncap2 udunits"
14
15 RDEPEND="sci-libs/netcdf
16 mpi? ( virtual/mpi )
17 udunits? ( sci-libs/udunits )"
18
19 DEPEND="${RDEPEND}
20 ncap2? ( !mpi? ( dev-java/antlr ) )
21 doc? ( virtual/tetex )"
22
23 pkg_setup() {
24 if use mpi && use ncap2; then
25 elog
26 elog "mpi and ncap2 are still incompatible flags"
27 elog "nco configure will automatically disables ncap2"
28 elog
29 fi
30 }
31
32 src_compile() {
33 # force disabling experimental and not implemented features
34 econf \
35 --disable-dap \
36 --disable-netcdf4 \
37 --disable-i18n \
38 --enable-regex \
39 --enable-nco_cplusplus \
40 $(use_enable ncap2 ncoxx) \
41 $(use_enable udunits) \
42 $(use_enable mpi) \
43 || die "econf failed"
44 emake || die "emake failed"
45 cd "${S}"/doc
46 make clean info
47 if use doc; then
48 make html pdf || die "make doc failed"
49 fi
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed"
54 cd doc
55 dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \
56 || die "dodoc failed"
57 doinfo *.info* || die "doinfo failed"
58 if use doc; then
59 dohtml nco.html/*
60 insinto /usr/share/doc/${PF}
61 doins nco.pdf
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20