--- /usr/portage/app-misc/netcdf/netcdf-3.5.0.ebuild Thu Aug 30 22:23:38 2001 +++ ./netcdf-3.5.0-r1.ebuild Fri Jan 4 20:40:11 2002 @@ -1,29 +1,44 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Tod M. Neidt -# /space/gentoo/cvsroot/gentoo-x86/app-misc/netcdf/netcdf-3.5.0.ebuild,v 1.3 2001/08/31 03:23:38 pm Exp +# /home/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} + +DESCRIPTION="Interface for array oriented data access" + +#Note orig source archive does not have version # in filename, +#SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/${PN}.tar.Z" +#but most of the mirrors do. +SRC_URI="ftp://ftp.cs.rpi.edu/.2/FreeBSD/ports/distfiles/${P}.tar.Z" + 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 + + CPPFLAGS=-Df2cFortran \ + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man || die + +#emake kills the compile + make || die + + make test || die + } 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 + + dodir /usr/{lib,share} + + make prefix=${D}/usr \ + MANDIR=${D}/usr/share/man \ + install || die + + dodoc COMPATIBILITY COPYRIGHT INSTALL.html MANIFEST \ + README RELEASE_NOTES VERSION + }