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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Feb 13 20:59:15 2009 UTC (11 years, 9 months ago) by phosphan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Setting VARTEXFONTS (see bug #223077) and removing unnecessary version.
(Portage version: 2.1.6.4/cvs/Linux 2.6.26-gentoo-r4 i686)

1 # Copyright 1999-2008 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.2.ebuild,v 1.2 2008/05/04 15:41:44 markusle 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-3"
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/latex-base )"
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 # let more experimental options enabling via EXTRA_ECONF
34 econf \
35 $(use_enable ncap2 ncoxx) \
36 $(use_enable udunits) \
37 $(use_enable mpi) \
38 || die "econf failed"
39 emake || die "emake failed"
40 cd doc
41 emake clean info
42 if use doc; then
43 emake html pdf || die "emake doc failed"
44 fi
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" install || die "emake install failed"
49 cd doc
50 dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \
51 || die "dodoc failed"
52 doinfo *.info* || die "doinfo failed"
53 if use doc; then
54 dohtml nco.html/* || die "dohtml failed"
55 insinto /usr/share/doc/${PF}
56 doins nco.pdf || die "pdf install failed"
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20