···1+diff -rc hdf5-1.8.5/configure hdf5-1.8.5-new/configure
2+*** hdf5-1.8.5/configure 2010-06-04 20:26:04.000000000 +0200
3+--- hdf5-1.8.5-new/configure 2010-08-02 10:30:26.000000000 +0200
4+***************
5+*** 30587,30598 ****
6+ sed 's/#define /#define H5_/' <src/H5config.h |\
7+ sed 's/#undef /#undef H5_/' >pubconf
8+ if test ! -f src/H5pubconf.h; then
9+! /bin/mv -f pubconf src/H5pubconf.h
10+ elif (diff pubconf src/H5pubconf.h >/dev/null); then
11+ rm -f pubconf
12+ echo "src/H5pubconf.h is unchanged"
13+ else
14+! /bin/mv -f pubconf src/H5pubconf.h
15+ fi
16+ echo "Post process src/libhdf5.settings"
17+ sed '/^#/d' < src/libhdf5.settings > libhdf5.settings.TMP
18+--- 30587,30598 ----
19+ sed 's/#define /#define H5_/' <src/H5config.h |\
20+ sed 's/#undef /#undef H5_/' >pubconf
21+ if test ! -f src/H5pubconf.h; then
22+! mv -f pubconf src/H5pubconf.h
23+ elif (diff pubconf src/H5pubconf.h >/dev/null); then
24+ rm -f pubconf
25+ echo "src/H5pubconf.h is unchanged"
26+ else
27+! mv -f pubconf src/H5pubconf.h
28+ fi
29+ echo "Post process src/libhdf5.settings"
30+ sed '/^#/d' < src/libhdf5.settings > libhdf5.settings.TMP
+26
pkgs/tools/misc/hdf5/default.nix
···00000000000000000000000000
···1+2+{ stdenv
3+, fetchurl
4+}:
5+stdenv.mkDerivation {
6+ name = "hdf5";
7+ src = fetchurl {
8+ url = http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.5.tar.gz ;
9+ sha256 = "0nykbpxg154akgp6va6fkab7kjvybbvpsr7n7i1l8xxmv3h3hbsa";
10+ };
11+ buildInputs = [] ;
12+13+ patches = [./bin-mv.patch];
14+15+ meta = {
16+ description = "HDF5 is a data model, library, and file format for storing and managing data.";
17+ longDescription = ''
18+ It supports an unlimited variety of datatypes, and is designed for flexible and efficient
19+ I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
20+ applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
21+ applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
22+ '';
23+ homepage = http://www.hdfgroup.org/HDF5/;
24+ # license = "GPLv2";
25+ };
26+}