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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Dec 30 04:10:40 2011 UTC (8 years, 11 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
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-2009 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.4.ebuild,v 1.3 2009/03/24 19:16:47 betelgeuse Exp $
4
5 EAPI="1"
6
7 DESCRIPTION="Command line utilities for operating on netCDF files"
8 SRC_URI="http://dust.ess.uci.edu/nco/src/${P}.tar.gz"
9 HOMEPAGE="http://nco.sourceforge.net/"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86 ~ppc"
14
15 IUSE="mpi doc ncap2 udunits"
16
17 RDEPEND="sci-libs/netcdf
18 mpi? ( virtual/mpi )
19 udunits? ( sci-libs/udunits )"
20
21 DEPEND="${RDEPEND}
22 ncap2? ( !mpi? ( dev-java/antlr:0 ) )
23 doc? ( virtual/latex-base )"
24
25 pkg_setup() {
26 if use mpi && use ncap2; then
27 elog
28 elog "mpi and ncap2 are still incompatible flags"
29 elog "nco configure will automatically disables ncap2"
30 elog
31 fi
32 }
33
34 src_compile() {
35 # let more experimental options enabling via EXTRA_ECONF
36 econf \
37 $(use_enable ncap2 ncoxx) \
38 $(use_enable udunits) \
39 $(use_enable mpi) \
40 || die "econf failed"
41 emake || die "emake failed"
42 cd doc
43 emake clean info
44 if use doc; then
45 VARTEXFONTS="${T}/fonts" emake html pdf || die "emake doc failed"
46 fi
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install || die "emake install failed"
51 cd doc
52 dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \
53 || die "dodoc failed"
54 doinfo *.info* || die "doinfo failed"
55 if use doc; then
56 dohtml nco.html/* || die "dohtml failed"
57 insinto /usr/share/doc/${PF}
58 doins nco.pdf || die "pdf install failed"
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20