diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-12-12 18:25:32 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-12-12 18:25:32 +0000 |
commit | bb862947486188358d59b8055867b9c63329a870 (patch) | |
tree | 3f250ca5433e03d4d2b3277d7936416b213f5eea /sci-misc/nco/nco-3.9.9.ebuild | |
parent | version bump (diff) | |
download | gentoo-2-bb862947486188358d59b8055867b9c63329a870.tar.gz gentoo-2-bb862947486188358d59b8055867b9c63329a870.tar.bz2 gentoo-2-bb862947486188358d59b8055867b9c63329a870.zip |
Version bump
(Portage version: 2.2_rc58/cvs/Linux x86_64)
Diffstat (limited to 'sci-misc/nco/nco-3.9.9.ebuild')
-rw-r--r-- | sci-misc/nco/nco-3.9.9.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-misc/nco/nco-3.9.9.ebuild b/sci-misc/nco/nco-3.9.9.ebuild new file mode 100644 index 000000000000..b09c7e9df93b --- /dev/null +++ b/sci-misc/nco/nco-3.9.9.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/nco/nco-3.9.9.ebuild,v 1.1 2009/12/12 18:25:32 bicatali Exp $ + +EAPI=2 +inherit eutils flag-o-matic + +DESCRIPTION="Command line utilities for operating on netCDF files" +SRC_URI="http://dust.ess.uci.edu/nco/src/${P}.tar.gz" +HOMEPAGE="http://nco.sourceforge.net/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc" + +IUSE="doc mpi ncap2 udunits" + +RDEPEND="sci-libs/netcdf + mpi? ( virtual/mpi ) + dap? ( sci-libs/netcdf ) + udunits? ( >=sci-libs/udunits-2 )" + +DEPEND="${RDEPEND} + ncap2? ( !mpi? ( dev-java/antlr:0 ) ) + doc? ( virtual/latex-base )" + +pkg_setup() { + if use mpi && use ncap2; then + elog + elog "mpi and ncap2 are still incompatible flags" + elog "nco configure will automatically disables ncap2" + elog + fi +} + +src_configure() { + local myconf + if has_version ">=sci-libs/netcdf-4" && built_with_use sci-libs/netcdf hdf5; then + append-cppflags -DHAVE_NETCDF4_H + myconf="--enable-netcdf4" + else + myconf="--disable-netcdf4" + fi + econf \ + ${myconf} \ + --disable-udunits \ + $(use_enable ncap2) \ + $(use_enable udunits udunits2) \ + $(use_enable mpi) +} + +src_compile() { + emake || die "emake failed" + cd doc + emake clean info + if use doc; then + VARTEXFONTS="${T}/fonts" emake html pdf || die "emake doc failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + cd doc + dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \ + || die "dodoc failed" + doinfo *.info* || die "doinfo failed" + if use doc; then + dohtml nco.html/* || die "dohtml failed" + insinto /usr/share/doc/${PF} + doins nco.pdf || die "pdf install failed" + fi +} |