# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/netcdf/netcdf-3.5.0-r2.ebuild,v 1.6 2004/02/22 19:53:08 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/netcdf/netcdf-3.5.0-r2.ebuild,v 1.7 2004/03/10 08:20:41 phosphan Exp $
DESCRIPTION="Scientific library and interface for array oriented data access"
SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/${P}.tar.Z"
unpack ${A}
cd ${S}
# welcome to ANSI C++ coding with sed
- cp configure configure~ && sed \
+ sed \
-e 's/iostream\.h/iostream/g' \
-e 's/cout/std::cout/g' \
- -e 's/^extern "C".*//g' <configure~ >configure || die
+ -e 's/^extern "C".*//g' -i configure || die
- cd cxx && patch -p1 <${FILESDIR}/gcc3-gentoo.patch || die
+ cd cxx && epatch ${FILESDIR}/gcc3-gentoo.patch
}
src_compile() {
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/netcdf/netcdf-3.5.0-r3.ebuild,v 1.7 2004/03/03 13:37:45 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/netcdf/netcdf-3.5.0-r3.ebuild,v 1.8 2004/03/10 08:20:41 phosphan Exp $
DESCRIPTION="Scientific library and interface for array oriented data access"
SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/${P}.tar.Z"
unpack ${A}
cd ${S}
# welcome to ANSI C++ coding with sed
- cp configure configure~ && sed \
+ sed \
-e 's/iostream\.h/iostream/g' \
-e 's/cout/std::cout/g' \
- -e 's/^extern "C".*//g' <configure~ >configure || die
+ -e 's/^extern "C".*//g' -i configure || die
- cd cxx && patch -p1 <${FILESDIR}/gcc3-gentoo.patch || die
+ cd cxx && epatch ${FILESDIR}/gcc3-gentoo.patch
}
src_compile() {