summaryrefslogtreecommitdiff
blob: 7a0de9864e0927efcddcf96938fed81a52f0dd0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Tod M. Neidt <tneidt@fidnet.com>
# $Header: /var/cvsroot/gentoo-x86/app-misc/netcdf/netcdf-3.5.0.ebuild,v 1.3 2001/08/31 03:23:38 pm Exp $


A=${P}.tar.Z
S=${WORKDIR}/${P}/src
DESCRIPTION="interface for array oriented data access"
#Note orig source archive does not have version #
SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/"${A}
HOMEPAGE="http://www.unidaa.ucar.edu/packages/netcdf/"

DEPEND="virtual/glibc"

src_compile() {
  export CPPFLAGS=-Df2cFortran
  ./configure --prefix=/usr --mandir=/usr/share/man
  try make
  unset CPPFLAGS
  try make test
}

src_install() {
  dodir /usr/{lib,share}
  try make install prefix=${D}/usr MANDIR=${D}/usr/share/man
  dodoc COMPATIBILITY COPYRIGHT INSTALL.html MANIFEST
  dodoc README RELEASE_NOTES VERSION
}