summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-08-17 15:25:52 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-08-17 15:25:52 +0000
commit91bb645e2e7cdf4b9ac2e3d4f89a4d4a40850399 (patch)
tree99a619deadc9ea8810b996d8afdaf03227876ae8 /sci-libs/hdf5
parentamd64/x86 stable, bug #234795 (diff)
downloadhistorical-91bb645e2e7cdf4b9ac2e3d4f89a4d4a40850399.tar.gz
historical-91bb645e2e7cdf4b9ac2e3d4f89a4d4a40850399.tar.bz2
historical-91bb645e2e7cdf4b9ac2e3d4f89a4d4a40850399.zip
Version bump and replaced 'which' with 'type -p'. Removed obsolete ebuild.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-SENTINEL-2 i686
Diffstat (limited to 'sci-libs/hdf5')
-rw-r--r--sci-libs/hdf5/ChangeLog9
-rw-r--r--sci-libs/hdf5/Manifest15
-rw-r--r--sci-libs/hdf5/hdf5-1.6.5.ebuild90
-rw-r--r--sci-libs/hdf5/hdf5-1.6.7.ebuild251
4 files changed, 262 insertions, 103 deletions
diff --git a/sci-libs/hdf5/ChangeLog b/sci-libs/hdf5/ChangeLog
index b43f6970ed8e..2e0c9eed76a6 100644
--- a/sci-libs/hdf5/ChangeLog
+++ b/sci-libs/hdf5/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-libs/hdf5
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.30 2008/08/07 07:09:18 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.31 2008/08/17 15:25:52 markusle Exp $
+
+*hdf5-1.6.7 (17 Aug 2008)
+
+ 17 Aug 2008; Markus Dittrich <markusle@gentoo.org> -hdf5-1.6.5.ebuild,
+ +hdf5-1.6.7.ebuild:
+ Version bump and replaced "which" with "type -p". Removed obsolete
+ ebuild.
07 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
Add USE flag description to metadata wrt GLEP 56.
diff --git a/sci-libs/hdf5/Manifest b/sci-libs/hdf5/Manifest
index 0e8abf131311..be30661fc5bb 100644
--- a/sci-libs/hdf5/Manifest
+++ b/sci-libs/hdf5/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX hdf5-1.6.6-gcc4.3.patch 355 RMD160 109811c4e4d434bfa09ea156e67623e50b0f89a5 SHA1 c0fe43c262723e117572b687d9f3c94910e4fddc SHA256 ca1a16f1df4c58410001ca4b06886f9df47b475100078c5e9208ff7a21ca22c1
AUX hdf5-mpich2.patch 488 RMD160 f8ab476eed88267c4b79cc56ae683dc485255921 SHA1 a3f7ee6a2f682982d8a562bcc117c7fc09b69224 SHA256 a154a32a7b6dbc8edac7c72f1a6100b9f0532d2f9591681f505e949b0db6a1e5
AUX mpd.conf 48 RMD160 289de9bb40759e3f71229cf47e4d2af83703a85f SHA1 244eee76dbf4ff269e4489d5cc7c3577c6c1fa6b SHA256 ae740cacaf2cb798921cb2092f5af98de67445e27af3f88858f3e6d2bbb127f4
@@ -8,17 +5,11 @@ DIST hdf5-1.6.2.tar.gz 3879147 RMD160 75678e8859e783dbb274cdabee3d916724c46780 S
DIST hdf5-1.6.4.tar.gz 4862437 RMD160 8175af3153bb0a5a1278c01af2d3940f4fd5084f SHA1 e419e81097b8093d16d96708b764bd85db053e86 SHA256 11ab0d81575f333067ae091d39c28fbf446c8ecafdfe70cf92b3c35ceffbfc97
DIST hdf5-1.6.5.tar.gz 4930666 RMD160 70db16a832f77aa6d0c97da517353665304b7b27 SHA1 c5b7b375c0eb23dcab0c66d39b1b06c263048546 SHA256 85b7cfc1e34db544fa93f5bf7effe189a5e1eb97f0cfa7b212adc11915a756b2
DIST hdf5-1.6.6.tar.gz 5299558 RMD160 e7cf3f8d6aa5f34ef10cabf650ed43d644e54f1b SHA1 c8a9ec598cf0debb694a1d7034fd85bbd67f173b SHA256 432d02f2d6988999d3d18caa6680af3cef14c8a7537c98e7adbaa8f873fba2a7
+DIST hdf5-1.6.7.tar.gz 5299219 RMD160 2dbbcccd32986dcd66ce804c5e90ac6c949b71f6 SHA1 9c26fe09cdad269c9a6757933f70ca164a47b8e8 SHA256 9d9a98204f8c7d82f767f27f84db2520c04f5c73a4a6348c781a0d91a296e9a2
EBUILD hdf5-1.6.2.ebuild 1837 RMD160 2c7e527ade607fd3d98222787db400bc86c28d37 SHA1 a1b5e54d886d09074665512428c7a1ea23f28437 SHA256 612db1a50d632dd5b0d1c63d557888c4e5765a0debf774552443cdb1dde3a49c
EBUILD hdf5-1.6.4.ebuild 2098 RMD160 348a6f05d7677e372688ca5ecdcdea36c90df7c9 SHA1 aaeed445389bad0630f518e0778f900af9614fb1 SHA256 469176113ea60bc95a7efa63ca24e6d53baeab71660a44eaa23088fedfd911af
EBUILD hdf5-1.6.5-r1.ebuild 6638 RMD160 b19d0ec9f56fa0ba1423a494798ab79bccc1380d SHA1 ca0a6106c94fd1745e6852b89f4e119d7d10f461 SHA256 c59e90e1383173906eb59d78bb48a57acebc94530e596501db8f6d5ee8268226
-EBUILD hdf5-1.6.5.ebuild 2718 RMD160 34c64e74f0a39be11afe0615d6e012e4bac06527 SHA1 56b099effc664f6d31d84c64163bb86d0e049f59 SHA256 7709f6054d0ecbda3f246315d850b9d7d8d455b7006652591e19da0e073176de
EBUILD hdf5-1.6.6.ebuild 7810 RMD160 784379ad99dc84c2e28d16a87ff7fb3c295638a9 SHA1 e2a8e1a58f51746a0bf0983b4ae8ec5042becf11 SHA256 1c80d372ddefb8308ec0282f36a5f430dec2096fee79eb23af94a11d244cc0d6
-MISC ChangeLog 7748 RMD160 a4c6839b879f56c30196dd546427e6c6bfae6c7f SHA1 270e0e3eb7e48e56d9ae29e204572aa5c993e11b SHA256 7a6ef2ea6a3fcb63e1538f9f8b71e4d8db5c319b7e0e084d328b1d639f942cda
+EBUILD hdf5-1.6.7.ebuild 7806 RMD160 5fdc949f7642bf81289ce982cd1583f3fe7d1d0a SHA1 d29943a803d68039e01591192d6bb997b1da27a6 SHA256 bdd50b92f02e030c80cf22cb416645a5b3558080b6a2dcabe20cfd6d76c3ab8a
+MISC ChangeLog 7955 RMD160 688d10c6d95ff5bfc0f2b6df2de2f1807574ba98 SHA1 684b138bf798e8b21be92f7c5f4bf92b73324caa SHA256 0463fae19be74becd49e03e6eda95c1ec5a9dc4172ef4ea92866dfc22f7203ec
MISC metadata.xml 360 RMD160 a2917233c5a10f6639fb8c4a295609852c2be473 SHA1 6629277bccaaeb0a3bec1720cd1641afb5570e56 SHA256 a6024d09f6d50aba588c4d121e1dcc16659fc4c5df28f9667f0e32b9809b809c
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
-
-iEYEARECAAYFAkian68ACgkQOeoy/oIi7uy0CwCeN7BC9yiB/5S9ncg60/i43A1K
-5b8An3r8RlNl/fYbbwR3XVfbo1hZJ7p9
-=7vip
------END PGP SIGNATURE-----
diff --git a/sci-libs/hdf5/hdf5-1.6.5.ebuild b/sci-libs/hdf5/hdf5-1.6.5.ebuild
deleted file mode 100644
index 4c27cb12bf68..000000000000
--- a/sci-libs/hdf5/hdf5-1.6.5.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.6.5.ebuild,v 1.6 2008/02/04 07:58:32 nerdboy Exp $
-
-inherit eutils
-
-DESCRIPTION="General purpose library and file format for storing scientific data"
-HOMEPAGE="http://hdf.ncsa.uiuc.edu/HDF5/"
-SRC_URI="ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/${P}.tar.gz"
-
-LICENSE="NCSA-HDF"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
-# need to update szip to get sparc, alpha, and ia64 back in here,
-# as well as work out the mpi issues
-IUSE="static zlib ssl mpi hlapi szip threads debug"
-
-DEPEND="zlib? ( sys-libs/zlib )
- szip? ( sci-libs/szip )
- mpi? ( virtual/mpi )"
-
-src_compile() {
- local myconf="--with-pic"
-
- #--disable-static conflicts with --enable-cxx, so we have to do either or
- use static && myconf="${myconf} --enable-cxx" || \
- myconf="${myconf} --disable-static"
- # fortran needs f90 support
- #myconf="${myconf} $(use_enable fortran)"
- use threads && myconf="${myconf} --with-pthread"
- use debug && myconf="${myconf} --enable-debug=all"
- use mpi && myconf="${myconf} --enable-parallel --disable-cxx"
- use hlapi || myconf="${myconf} --disable-hl"
-
- # NOTE: the hdf5 configure script has its own interpretation of
- # the ARCH environment variable which conflicts with that of
- # ebuild/emerge. As a work around, we save the ARCH variable as
- # EBUILD_ARCH and restore it when we are done.
- EBUILD_ARCH=${ARCH}
- unset ARCH
-
- if use mpi ; then
- export CC="/usr/bin/mpicc"
- fi
- ./configure --prefix=/usr ${myconf} \
- $(use_enable zlib) \
- $(use_with ssl) \
- --enable-linux-lfs \
- --sysconfdir=/etc \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man || die "configure failed"
-
- # restore the ARCH environment variable
- ARCH=${EBUILD_ARCH}
-
- make || die "make failed"
-}
-
-src_install() {
- make \
- prefix="${D}"/usr \
- mandir="${D}"/usr/share/man \
- docdir="${D}"/usr/share/doc/${PF} \
- libdir="${D}"/usr/$(get_libdir)/ \
- infodir="${D}"/usr/share/info \
- install || die "make install failed"
-
- dolib.so "${S}"/test/.libs/lib*so* || die "dolib.so failed"
-
- if use static ; then
- dolib.a "${S}"/tools/lib/.libs/libh5tools.a \
- "${S}"/test/.libs/libh5test.a || die "dolib.a failed"
- insinto /usr/$(get_libdir)
- doins "${S}"/tools/lib/libh5tools.la \
- "${S}"/test/libh5test.la || die "doins failed"
- fi
-
- dobin "${S}"/bin/iostats || die "dobin failed"
-
- dodoc README.txt MANIFEST
- dohtml doc/html/*
-
- if use mpi ; then
- mv "${D}"usr/bin/h5pcc "${D}"usr/bin/h5cc
- fi
- # change the SHLIB default for C
- if ! use static ; then
- dosed "s/SHLIB:-no/SHLIB:-yes/g" "${D}"usr/bin/h5cc || die "dosed failed"
- fi
-}
diff --git a/sci-libs/hdf5/hdf5-1.6.7.ebuild b/sci-libs/hdf5/hdf5-1.6.7.ebuild
new file mode 100644
index 000000000000..c621de7777af
--- /dev/null
+++ b/sci-libs/hdf5/hdf5-1.6.7.ebuild
@@ -0,0 +1,251 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.6.7.ebuild,v 1.1 2008/08/17 15:25:52 markusle Exp $
+
+inherit eutils fixheadtails flag-o-matic fortran toolchain-funcs
+
+DESCRIPTION="General purpose library and file format for storing scientific data"
+HOMEPAGE="http://hdf.ncsa.uiuc.edu/HDF5/"
+SRC_URI="ftp://ftp.hdfgroup.org/HDF5/current/src/${P}.tar.gz"
+
+LICENSE="NCSA-HDF"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~sparc"
+# need to update szip to get alpha, ia64, etc back in here,
+IUSE="cxx debug fortran mpi ssl szip threads tools zlib "
+
+DEPEND="mpi? ( >=sys-cluster/mpich2-1.0.6
+ net-fs/nfs-utils )
+ ssl? ( dev-libs/openssl )
+ szip? ( sci-libs/szip )
+ zlib? ( sys-libs/zlib )
+ threads? ( virtual/libc )
+ sys-apps/coreutils
+ sys-process/time"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl"
+
+pkg_setup() {
+ if has test ${FEATURES} && use mpi ; then
+ elog ""
+ elog "Parallel tests will launch 3 mpd processes on this box,"
+ elog "so it may take some time on a slow machine (only a few"
+ elog "minutes on a reasonably fast machine). Hit Ctl-C now"
+ elog "and emerge with FEATURES=-test if you'd rather not..."
+ elog ""
+ epause 9
+ fi
+
+ # The above gcc dep is a hack to insure at least one Fortran 90
+ # compiler is installed if the user enables fortran support. Feel
+ # free to improve it...
+ if use fortran ; then
+ fortran_pkg_setup
+ case "${FORTRANC}" in
+ gfortran|ifc|ifort|f95|pgf90)
+ export F9X="${FORTRANC}"
+ ;;
+ g77|f77|f2c)
+ export F9X=""
+ ;;
+ esac
+ fi
+
+ # if anyone knows of a better way to do this...
+ if use mpi && ! built_with_use sys-cluster/mpich2 pvfs2 ; then
+ ewarn "Your MPI library needs parallel IO support for HDF5. You"
+ ewarn "must re-emerge mpich2 with USE=pvfs2."
+ die "requires parallel IO support"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-1.6.6-gcc4.3.patch
+ if use mpi; then
+ # this is required for mpich2, and should be safe otherwise
+ epatch "${FILESDIR}/${PN}-mpich2.patch"
+ fi
+
+ # fix test script stuff
+ ht_fix_file "${S}"/bin/release "${S}"/tools/h5dump/testh5dump.sh.in
+ sed -i -e "s:+4l:+4:g" tools/h5dump/testh5dump.sh.in || die "oops"
+
+ # fix sort key
+ sed -i -e "s:sort +2:sort -k 2:g" bin/ltmain.sh || die "sed failed"
+
+}
+
+src_compile() {
+ local myconf
+
+ # a better way to do this would also be nice, but i can't think of one
+ if use cxx && ! use mpi ; then
+ myconf="${myconf} --enable-cxx"
+ elif use cxx && use mpi ; then
+ ewarn "C++ support is not compatible with the mpi interface."
+ die "Please disable either cxx or mpi."
+ else
+ myconf="${myconf} --disable-cxx"
+ fi
+
+ if use fortran && use mpi ; then
+ ewarn "Requires Fortran 90 support in your mpi library..."
+ myconf="${myconf} --enable-fortran --enable-parallel"
+ fi
+
+ use threads && myconf="${myconf} --with-pthread --enable-threadsafe"
+
+ if use debug ; then
+ myconf="${myconf} --enable-debug=all"
+ else
+ myconf="${myconf} --enable-production"
+ fi
+
+ # NOTE: the hdf5 configure script has its own interpretation of
+ # the ARCH environment variable which conflicts with that of
+ # ebuild/emerge. As a work around, we save the ARCH variable as
+ # EBUILD_ARCH and restore it when we are done.
+ EBUILD_ARCH="${ARCH}"
+
+ unset ARCH
+
+ if use mpi ; then
+ EBUILD_CC="${CC}"
+ # set NPROCS explicitly if needed
+ export NPROCS=${NPROCS:=2}
+ export CC="$(type -p mpicc)"
+ if [[ ${FORTRANC} == gfortran ]] ; then
+ export F9X="$(type -p mpif90)"
+ fi
+ if built_with_use sys-cluster/mpich2 pvfs2 ; then
+ export LIBS="${LIBS} $(sh pvfs2-config --libs) -lmpich"
+ else
+ export LIBS="${LIBS} -lmpich"
+ fi
+ append-ldflags "${LIBS}"
+ fi
+
+ econf --prefix=/usr \
+ $(use_enable zlib) \
+ $(use_enable fortran) \
+ $(use_enable mpi parallel) \
+ $(use_with ssl) \
+ --enable-linux-lfs \
+ --sysconfdir=/etc \
+ --infodir=/usr/share/info \
+ --libdir=/usr/$(get_libdir) \
+ --mandir=/usr/share/man \
+ --enable-shared --with-pic \
+ ${myconf} || die "configure failed"
+
+ # restore the ARCH environment variable
+ ARCH="${EBUILD_ARCH}"
+
+ # emake has occasional segfaults
+ make || die "make failed"
+ use mpi && CC="${EBUILD_CC}"
+}
+
+src_test() {
+ # all tests pass; a few are skipped, and MPI skips parts if it sees
+ # only one process on the build host.
+ export HDF5_Make_Ignore=yes
+ if use mpi ; then
+ EBUILD_CC="${CC}"
+ export HDF5_PARAPREFIX="${S}/testpar"
+ export CC="$(type -p mpicc)"
+ export MPI_UNIVERSE="localhost 4"
+ export NPROCS=3
+ install -g portage -o portage -m 0600 "${FILESDIR}"/mpd.conf "${HOME}"/.mpd.conf
+ mpd --daemon --listenport=4268
+ mpd --daemon -h localhost -p 4268 -n
+ mpd --daemon -h localhost -p 4268 -n
+ elog "NPROCS = ${NPROCS}"
+ elog "mpdtrace output:"
+ mpdtrace
+ fi
+ make check || die "make test failed"
+ use mpi && mpdallexit
+ use mpi && CC="${EBUILD_CC}"
+ export HDF5_Make_Ignore=no
+}
+
+src_install() {
+ # emake install and einstall cause sandbox violations here
+ make \
+ prefix="${D}"usr \
+ mandir="${D}"usr/share/man \
+ docdir="${D}"usr/share/doc/"${PF}" \
+ libdir="${D}"usr/$(get_libdir) \
+ infodir="${D}usr"/share/info \
+ install || die "make install failed"
+
+ if use tools ; then
+ dolib.a "${S}"/tools/lib/.libs/libh5tools.a \
+ "${S}"/test/.libs/libh5test.a || die "dolib.a failed"
+ insinto /usr/$(get_libdir)
+ doins "${S}"/tools/lib/libh5tools.la \
+ "${S}"/test/libh5test.la || die "doins failed"
+ dolib.so "${S}"/test/.libs/libh5test.so.0.0.0 \
+ "${S}"/test/.libs/libh5test.so.0 \
+ "${S}"/test/.libs/libh5test.so \
+ || die "dolib.so failed"
+
+ exeinto /usr/bin
+ newexe "${S}"/bin/iostats iostats.pl || die "newexe failed"
+
+ exeinto /usr/share/"${PN}/test-tools"
+ cd "${S}"/test
+ doexe big bittests fillval lheap file_handle istore set_extent \
+ srb_append cache flush1 srb_read cmpd_dset flush2 srb_write \
+ dangle gass_append links stab dsets dtypes enum extend external \
+ gass_read mount gass_write getname gheap hyperslab mtime ntypes \
+ ohdr reserved stream_test testhdf5 ttsafe unlink
+ cd "${S}"
+ use mpi && doexe testpar/testphdf5 testpar/t_mpi
+ fi
+
+ dodoc README.txt
+ dohtml doc/html/*
+
+ if use mpi ; then
+ mv "${D}"usr/bin/h5pcc "${D}"usr/bin/h5cc
+ fi
+ if use fortran ; then
+ mv "${D}"usr/bin/h5pfc "${D}"usr/bin/h5fc
+ fi
+ # change the SHLIB default for C
+ dosed "s/SHLIB:-no/SHLIB:-yes/g" "${D}"usr/bin/h5cc || die "dosed failed"
+}
+
+pkg_postinst() {
+ echo
+ elog "Use the fortran flag for gfortran or ifc, and add the f90"
+ elog "flag to override the fortran flag if you have a different"
+ elog "f90 compiler installed (gfortran requires gcc 4.x). Note that"
+ elog "gfortran only works as mpif90 and is not detected properly by"
+ elog "configure without the mpi wrapper."
+ echo
+ elog "There should not be any more test errors in the mpi tests,"
+ elog "and all C++, Fortran, and other tests pass successfully."
+ elog "Suggested USE flags for fortran and mpi support using"
+ elog "gfortran: USE=\"fortran mpi -cxx\""
+ echo
+ ewarn "Note 1: Needs more SMP and cluster testing, as well as"
+ ewarn "more testing on a virtual (parallel) filesystem."
+ echo
+ ewarn "Note 2: currently testing pvfs2 support (with mpi). Please"
+ ewarn "report any problems in the usual way."
+ elog
+ ewarn "Note 3: you'll need rawio support enabled in your kernel or"
+ ewarn "certain asynchronous IO operations may fail. Either enable"
+ ewarn "the RAW driver (under Character Devices) or patch your kernel"
+ ewarn "with the new PAIO drivers and use libposix-aio. See both:"
+ ewarn "http://sourceforge.net/projects/paiol and"
+ ewarn "http://www.bullopensource.org/posix for more info."
+ elog
+}