diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2010-01-28 22:19:50 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2010-01-28 22:19:50 +0000 |
commit | 29e2dfa8c123976dfaa830a1c93a736bb3ad4810 (patch) | |
tree | 66dd45de3aac9a23526daee6028855af6d06a0bf /sci-libs/netcdf | |
parent | Only define epause and ebeep in EAPIs 0 1 2. Mark built_with_use as deprecated. (diff) | |
download | gentoo-2-29e2dfa8c123976dfaa830a1c93a736bb3ad4810.tar.gz gentoo-2-29e2dfa8c123976dfaa830a1c93a736bb3ad4810.tar.bz2 gentoo-2-29e2dfa8c123976dfaa830a1c93a736bb3ad4810.zip |
Fixed for mpi, now uses exclusively system cfortran, and cleaned the pkg-config files. Thanks Xarthisius for his help.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/netcdf')
-rw-r--r-- | sci-libs/netcdf/ChangeLog | 12 | ||||
-rw-r--r-- | sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch | 34 | ||||
-rw-r--r-- | sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch | 45 | ||||
-rw-r--r-- | sci-libs/netcdf/netcdf-4.0.1-r1.ebuild (renamed from sci-libs/netcdf/netcdf-4.0.1.ebuild) | 29 |
4 files changed, 112 insertions, 8 deletions
diff --git a/sci-libs/netcdf/ChangeLog b/sci-libs/netcdf/ChangeLog index b25a33a1bdeb..2641d62cb681 100644 --- a/sci-libs/netcdf/ChangeLog +++ b/sci-libs/netcdf/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-libs/netcdf -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/ChangeLog,v 1.63 2009/12/07 17:53:00 bicatali Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/ChangeLog,v 1.64 2010/01/28 22:19:50 bicatali Exp $ + +*netcdf-4.0.1-r1 (28 Jan 2010) + + 28 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> -netcdf-4.0.1.ebuild, + +netcdf-4.0.1-r1.ebuild, +files/netcdf-4.0.1-cfortran.patch, + +files/netcdf-4.0.1-pkgconfig.patch: + Fixed for mpi, now uses exclusively system cfortran, and cleaned the + pkg-config files. Thanks Xarthisius for his help. 07 Dec 2009; Sébastien Fabbro <bicatali@gentoo.org> -files/netcdf-3.6.2-as-needed.patch, -files/netcdf-3.6.2-gcc43.patch, diff --git a/sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch b/sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch new file mode 100644 index 000000000000..56b761df1be3 --- /dev/null +++ b/sci-libs/netcdf/files/netcdf-4.0.1-cfortran.patch @@ -0,0 +1,34 @@ +--- netcdf-4.0.1.orig/configure.ac 2009-03-26 13:10:02.000000000 +0100 ++++ netcdf-4.0.1/configure.ac 2010-01-28 19:01:47.156238559 +0100 +@@ -801,7 +801,7 @@ + *) + # If it's a gnu compiler, guess f2c. + if test "x$ac_cv_fc_compiler_gnu" = xyes; then +- AC_DEFINE(f2cFortran, [1], [Turned on by netCDF configure.]) ++ AC_DEFINE(gFortran, [1], [Turned on by netCDF configure.]) + fi + ;; + esac + +--- netcdf-4.0.1.orig/fortran/ncfortran.h 2009-02-19 13:50:25.000000000 +0100 ++++ netcdf-4.0.1/fortran/ncfortran.h 2009-09-24 21:10:08.000000000 +0200 +@@ -660,7 +660,7 @@ + * The following is for f2c-support only. + */ + +-#if defined(f2cFortran) && !defined(pgiFortran) ++#if defined(f2cFortran) && !defined(pgiFortran) && !defined(gFortran) + + /* + * The f2c(1) utility on BSD/OS and Linux systems adds an additional +--- netcdf-4.0.1.orig/nf_test/fortlib.c 2009-09-24 21:11:12.000000000 +0200 ++++ netcdf-4.0.1/nf_test/fortlib.c 2009-09-24 21:11:36.000000000 +0200 +@@ -14,7 +14,7 @@ + #include "../fortran/ncfortran.h" + + +-#if defined(f2cFortran) && !defined(pgiFortran) ++#if defined(f2cFortran) && !defined(pgiFortran) && !defined(gFortran) + /* + * The f2c(1) utility on BSD/OS and Linux systems adds an additional + * underscore suffix (besides the usual one) to global names that have diff --git a/sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch b/sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch new file mode 100644 index 000000000000..4bd940fee82e --- /dev/null +++ b/sci-libs/netcdf/files/netcdf-4.0.1-pkgconfig.patch @@ -0,0 +1,45 @@ +diff -Nru netcdf-4.0.1.orig/configure.ac netcdf-4.0.1/configure.ac +--- netcdf-4.0.1.orig/configure.ac 2009-03-26 12:10:02.000000000 +0000 ++++ netcdf-4.0.1/configure.ac 2010-01-28 22:10:56.000000000 +0000 +@@ -1159,11 +1159,11 @@ + fi + if test "x$enable_netcdf_4" = xyes ; then + if test "x$HDF5DIR" != x ; then +- NC_LIBS="$NC_LIBS -L$HDF5DIR" ++ NC_LIBS="$NC_LIBS -L$HDF5DIR/lib" + fi + NC_LIBS="$NC_LIBS -lhdf5_hl -lhdf5 $SZLIB_LIBS" + if test "x$ZLIBDIR" != x ; then +- NC_LIBS="$NC_LIBS -L$ZLIBDIR" ++ NC_LIBS="$NC_LIBS -L$ZLIBDIR/lib" + fi + NC_LIBS="$NC_LIBS -lz $LIBS" + fi +diff -Nru netcdf-4.0.1.orig/nc-config.in netcdf-4.0.1/nc-config.in +--- netcdf-4.0.1.orig/nc-config.in 2009-03-18 20:28:46.000000000 +0000 ++++ netcdf-4.0.1/nc-config.in 2010-01-28 21:48:02.000000000 +0000 +@@ -4,9 +4,9 @@ + # + + prefix=@prefix@ +-exec_prefix=${prefix} +-libdir=${exec_prefix}/lib +-includedir=${prefix}/include ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ + + cc="@CC@" + cxx="@CXX@" +diff -Nru netcdf-4.0.1.orig/netcdf.pc.in netcdf-4.0.1/netcdf.pc.in +--- netcdf-4.0.1.orig/netcdf.pc.in 2009-03-19 12:22:33.000000000 +0000 ++++ netcdf-4.0.1/netcdf.pc.in 2010-01-28 22:11:32.000000000 +0000 +@@ -6,7 +6,7 @@ + cppcompiler=@CXX@ + fcompiler=@FC@ + fflags=@FFLAGS@ -I${includedir} +-flibs=@FLIBS@ @NC_FLIBS@ ++flibs=@NC_FLIBS@ + + Name: @PACKAGE@ + Description: NetCDF Client Library diff --git a/sci-libs/netcdf/netcdf-4.0.1.ebuild b/sci-libs/netcdf/netcdf-4.0.1-r1.ebuild index 8962aba915de..9ab0d7dfdfe8 100644 --- a/sci-libs/netcdf/netcdf-4.0.1.ebuild +++ b/sci-libs/netcdf/netcdf-4.0.1-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/netcdf-4.0.1.ebuild,v 1.1 2009/12/07 08:59:30 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/netcdf-4.0.1-r1.ebuild,v 1.1 2010/01/28 22:19:50 bicatali Exp $ EAPI=2 @@ -12,17 +12,34 @@ HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/" LICENSE="UCAR-Unidata" SLOT="0" -IUSE="doc fortran hdf5 mpi szip" +IUSE="doc fortran hdf5 mpi szip cxx" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -RDEPEND="hdf5? ( >=sci-libs/hdf5-1.8[zlib,szip?,mpi?] )" +RDEPEND="hdf5? ( >=sci-libs/hdf5-1.8[zlib,szip?,mpi=] )" DEPEND="${RDEPEND} >=sys-devel/libtool-2.2 doc? ( virtual/latex-base ) - fortran? ( dev-lang/cfortran )" + fortran? ( dev-lang/cfortran ) + mpi? ( virtual/mpi[cxx?,fortran?] )" + +pkg_setup() { + if use mpi; then + export CC=mpicc + if use cxx; then + export CXX=mpicxx + fi + if use fortran; then + export FC=mpif90 + export F77=mpif77 + fi + fi +} src_prepare() { epatch "${FILESDIR}"/${P}-as-needed.patch + epatch "${FILESDIR}"/${P}-cfortran.patch + epatch "${FILESDIR}"/${P}-pkgconfig.patch + # use system cfortran rm -f fortran/cfortran.h || die eautoreconf } @@ -33,12 +50,12 @@ src_configure() { myconf="--with-hdf5=/usr --with-zlib=/usr" use szip && myconf="${myconf} --with-szlib=/usr" fi - econf \ --docdir=/usr/share/doc/${PF} \ --enable-shared \ $(use_enable fortran f77) \ $(use_enable fortran f90) \ + $(use_enable cxx) \ $(use_enable fortran separate-fortran) \ $(use_enable hdf5 netcdf-4) \ $(use_enable hdf5 ncgen4) \ |