diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-12-22 17:36:29 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-12-22 17:36:29 +0000 |
commit | ca602d507fba1424ec131fa6870d16c72632bebc (patch) | |
tree | 79a9d836481d296c0de7af7199121ccd40bcbcb9 /sci-libs | |
parent | Version bump. (diff) | |
download | gentoo-2-ca602d507fba1424ec131fa6870d16c72632bebc.tar.gz gentoo-2-ca602d507fba1424ec131fa6870d16c72632bebc.tar.bz2 gentoo-2-ca602d507fba1424ec131fa6870d16c72632bebc.zip |
Version bump
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/hdf/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/hdf/files/4.2.6-autotools.patch | 140 | ||||
-rw-r--r-- | sci-libs/hdf/hdf-4.2.6.ebuild | 48 |
3 files changed, 195 insertions, 1 deletions
diff --git a/sci-libs/hdf/ChangeLog b/sci-libs/hdf/ChangeLog index 103427cd0324..b1d00ed040cc 100644 --- a/sci-libs/hdf/ChangeLog +++ b/sci-libs/hdf/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-libs/hdf # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v 1.21 2011/06/21 15:17:25 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v 1.22 2011/12/22 17:36:28 bicatali Exp $ + +*hdf-4.2.6 (22 Dec 2011) + + 22 Dec 2011; Sébastien Fabbro <bicatali@gentoo.org> + +files/4.2.6-autotools.patch, +hdf-4.2.6.ebuild: + Version bump 21 Jun 2011; Justin Lecher <jlec@gentoo.org> hdf-4.2_p4.ebuild: Add dependency on virtual/fortran diff --git a/sci-libs/hdf/files/4.2.6-autotools.patch b/sci-libs/hdf/files/4.2.6-autotools.patch new file mode 100644 index 000000000000..c3b8bb7112b7 --- /dev/null +++ b/sci-libs/hdf/files/4.2.6-autotools.patch @@ -0,0 +1,140 @@ +diff -Nur hdf-4.2.6.orig/configure.ac hdf-4.2.6/configure.ac +--- hdf-4.2.6.orig/configure.ac 2011-12-21 23:40:35.000000000 +0000 ++++ hdf-4.2.6/configure.ac 2011-12-22 00:36:53.000000000 +0000 +@@ -199,20 +199,6 @@ + dnl Build static libraries by default. Furthermore, fortran shared libraries + dnl are unsupported. Disallow a user from enabling both shared libraries and + dnl fortran. +-if test "X${enable_shared}" != "Xyes"; then +- enable_shared="no" +-fi +- +-if test "X${enable_shared}" = "Xyes"; then +- if test "X${BUILD_FORTRAN}" = "Xyes"; then +- AC_MSG_ERROR([Cannot build shared fortran libraries. Please configure with --disable-fortran flag.]) +- fi +-fi +- +-AC_PROG_INSTALL +-AC_PROG_LN_S +- +-AC_CHECK_PROGS([AR], [ar xar], [:], [$PATH]) + + AC_CHECK_PROGS([YACC], ['bison -y' byacc yacc], [none], []) + +@@ -389,7 +375,7 @@ + + dnl ---------------------------------------------------------------------- + dnl Is the szip library present? +-AC_SUBST(USE_COMP_SZIP) USE_COMP_SZIP="no" ++AC_SUBST([USE_COMP_SZIP]) USE_COMP_SZIP="no" + AC_ARG_WITH([szlib], + [AC_HELP_STRING([--with-szlib=DIR], + [Use szlib library [default=no]])],, +@@ -445,14 +431,13 @@ + fi + + AC_CHECK_LIB([sz], [SZ_BufftoBuffCompress],, [unset HAVE_SZIP]) +- ++ ;; ++esac + if test -z "$HAVE_SZIP"; then + AC_MSG_ERROR([couldn't find szlib library]) + else + USE_COMP_SZIP="yes" + fi +- ;; +-esac + + dnl Check to see if SZIP has encoder + if test "X$HAVE_SZIP" = "Xyes"; then +@@ -702,7 +687,7 @@ + dnl ====================================================================== + dnl Libtool initialization + dnl ====================================================================== +-LT_INIT(dlopen disable-shared) ++LT_INIT(dlopen) + LT_OUTPUT + + dnl ====================================================================== +@@ -780,11 +765,6 @@ + dnl ------------------------------------------------------------------------ + dnl Check to see if libtool has enabled shared libraries. Set a conditional + dnl as some Makefiles will build based on availability of shared libraries. +-if (./libtool --features | grep '^enable shared libraries' > /dev/null); then +- enable_shared=yes +-else +- enable_shared=no +-fi + + dnl ------------------------------------------------------------------------ + dnl Specify shared library extension the host machine should recognize. +@@ -841,26 +821,7 @@ + dnl Strip anything that looks like a flag off of $F77 + dnl Report anything stripped as a flag in RFLAGS and + dnl only the compiler in F77_VERSION. +-F77_NOFLAGS=`echo $F77 | sed 's/ -.*//'` +-FFLAGS_TO_ADD=`echo $F77 | grep - | sed 's/.* -/-/'` +-if test -n $FFLAGS_TO_ADD; then +- FFLAGS="$FFLAGS_TO_ADD$FFLAGS" +-fi +- +-if `echo $F77_NOFLAGS | grep ^/ >/dev/null 2>&1`; then +- F77_VERSION="$F77_NOFLAGS" +-else +- F77_VERSION="$F77"; +- for x in `echo $PATH | sed -e 's/:/ /g'`; do +- if test -x $x/$F77_NOFLAGS; then +- F77_VERSION="$x/$F77_NOFLAGS" +- break +- fi +- done +-fi +-if test -n "$fc_version_info"; then +- F77_VERSION="$F77_VERSION ( $fc_version_info)" +-fi ++F77_VERSION="$F77"; + + + dnl This part doesn't work yet since HDF4 config files do not contain +diff -Nur hdf-4.2.6.orig/hdf/test/fortestF.f hdf-4.2.6/hdf/test/fortestF.f +--- hdf-4.2.6.orig/hdf/test/fortestF.f 2011-12-21 23:40:35.000000000 +0000 ++++ hdf-4.2.6/hdf/test/fortestF.f 2011-12-21 23:47:04.000000000 +0000 +@@ -203,7 +203,7 @@ + + if (cmd .NE. 'Test' .AND. cmd .NE. 'test') then + print *, 'Unknown Command: ', cmd, param +- print *, 'Try one of "Skip", "Test", "Verbosity" or "Cleanup"' ++ print *, 'Try one of Skip, Test, Verbosity or Cleanup' + retcode = -1 + return + endif +diff -Nur hdf-4.2.6.orig/mfhdf/libsrc/Makefile.am hdf-4.2.6/mfhdf/libsrc/Makefile.am +--- hdf-4.2.6.orig/mfhdf/libsrc/Makefile.am 2011-12-21 23:40:35.000000000 +0000 ++++ hdf-4.2.6/mfhdf/libsrc/Makefile.am 2011-12-21 23:48:07.000000000 +0000 +@@ -32,10 +32,11 @@ + else + libmfhdf_la_SOURCES = $(CSOURCES) + endif ++libmfhdf_la_LIBADD = $(top_builddir)/hdf/src/libdf.la + + if HDF_BUILD_XDR + XDRLIB = ../xdr/libxdr.la +-libmfhdf_la_LIBADD = $(XDRLIB) ++libmfhdf_la_LIBADD += $(XDRLIB) + endif + + if HDF_BUILD_NETCDF +@@ -50,11 +51,7 @@ + # fortran has been disabled in configure. The Fortran linker gets confused + # when shared libraries are enabled, so when Fortran is not enabled, + # this replaces the Fortran link macro with the C link macro. +-if HDF_BUILD_FORTRAN +- # do nothing +-else +- F77LINK = $(LINK) +-endif ++ + + ############################################################################# + ## And the cleanup ## diff --git a/sci-libs/hdf/hdf-4.2.6.ebuild b/sci-libs/hdf/hdf-4.2.6.ebuild new file mode 100644 index 000000000000..e117743fa098 --- /dev/null +++ b/sci-libs/hdf/hdf-4.2.6.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/hdf-4.2.6.ebuild,v 1.1 2011/12/22 17:36:28 bicatali Exp $ + +EAPI=4 +inherit eutils fortran-2 toolchain-funcs autotools flag-o-matic + +DESCRIPTION="General purpose library and format for storing scientific data" +HOMEPAGE="http://www.hdfgroup.org/hdf4.html" +SRC_URI="ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/${P}.tar.bz2" + +LICENSE="NCSA-HDF" +KEYWORDS="~amd64 ~ppc ~x86" +SLOT="0" +IUSE="fortran szip static-libs" + +RDEPEND="virtual/jpeg + sys-libs/zlib + fortran? ( virtual/jpeg ) + szip? ( >=sci-libs/szip-2 )" + +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-autotools.patch + eautoreconf + [[ $(tc-getFC) = *gfortran ]] && append-fflags -fno-range-check +} + +src_configure() { + econf \ + --enable-shared \ + --enable-production=gentoo \ + --disable-netcdf \ + $(use_enable fortran) \ + $(use_enable static-libs static) \ + $(use_with szip szlib) +} + +src_install() { + default + dodoc release_notes/{RELEASE,HISTORY,bugs_fixed,misc_docs}.txt + cd "${ED}"usr + mv bin/ncgen{,-hdf} || die + mv bin/ncdump{,-hdf} || die + mv share/man/man1/ncgen{,-hdf}.1 || die + mv share/man/man1/ncdump{,-hdf}.1 || die +} |