Lines 1-29
Link Here
|
1 |
# Copyright 1999-2000 Gentoo Technologies, Inc. |
1 |
# Copyright 1999-2000 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License, v2 or later |
2 |
# Distributed under the terms of the GNU General Public License, v2 or later |
3 |
# Author Tod M. Neidt <tneidt@fidnet.com> |
3 |
# Author Tod M. Neidt <tneidt@fidnet.com> |
4 |
# /space/gentoo/cvsroot/gentoo-x86/app-misc/netcdf/netcdf-3.5.0.ebuild,v 1.3 2001/08/31 03:23:38 pm Exp |
4 |
# /home/cvsroot/gentoo-x86/app-misc/netcdf/netcdf-3.5.0.ebuild,v 1.3 2001/08/31 03:23:38 pm Exp |
5 |
|
5 |
|
6 |
|
|
|
7 |
A=${P}.tar.Z |
8 |
S=${WORKDIR}/${P}/src |
6 |
S=${WORKDIR}/${P}/src |
9 |
DESCRIPTION="interface for array oriented data access" |
7 |
|
10 |
#Note orig source archive does not have version # |
8 |
DESCRIPTION="Interface for array oriented data access" |
11 |
SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/"${A} |
9 |
|
|
|
10 |
#Note orig source archive does not have version # in filename, |
11 |
#SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/${PN}.tar.Z" |
12 |
#but most of the mirrors do. |
13 |
SRC_URI="ftp://ftp.cs.rpi.edu/.2/FreeBSD/ports/distfiles/${P}.tar.Z" |
14 |
|
12 |
HOMEPAGE="http://www.unidaa.ucar.edu/packages/netcdf/" |
15 |
HOMEPAGE="http://www.unidaa.ucar.edu/packages/netcdf/" |
13 |
|
16 |
|
14 |
DEPEND="virtual/glibc" |
17 |
DEPEND="virtual/glibc" |
15 |
|
18 |
|
16 |
src_compile() { |
19 |
src_compile() { |
17 |
export CPPFLAGS=-Df2cFortran |
20 |
|
18 |
./configure --prefix=/usr --mandir=/usr/share/man |
21 |
CPPFLAGS=-Df2cFortran \ |
19 |
try make |
22 |
./configure \ |
20 |
unset CPPFLAGS |
23 |
--prefix=/usr \ |
21 |
try make test |
24 |
--mandir=/usr/share/man || die |
|
|
25 |
|
26 |
#emake kills the compile |
27 |
make || die |
28 |
|
29 |
make test || die |
30 |
|
22 |
} |
31 |
} |
23 |
|
32 |
|
24 |
src_install() { |
33 |
src_install() { |
25 |
dodir /usr/{lib,share} |
34 |
|
26 |
try make install prefix=${D}/usr MANDIR=${D}/usr/share/man |
35 |
dodir /usr/{lib,share} |
27 |
dodoc COMPATIBILITY COPYRIGHT INSTALL.html MANIFEST |
36 |
|
28 |
dodoc README RELEASE_NOTES VERSION |
37 |
make prefix=${D}/usr \ |
|
|
38 |
MANDIR=${D}/usr/share/man \ |
39 |
install || die |
40 |
|
41 |
dodoc COMPATIBILITY COPYRIGHT INSTALL.html MANIFEST \ |
42 |
README RELEASE_NOTES VERSION |
43 |
|
29 |
} |
44 |
} |