From fb6ca79d35130202abce88d4a330c08a864e2c8a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 2 Aug 2010 08:58:53 +0000 Subject: [PATCH] HDF5 1.8.5 svn path=/nixpkgs/trunk/; revision=22861 --- pkgs/tools/misc/hdf5/bin-mv.patch | 30 ++++++++++++++++++++++++++++++ pkgs/tools/misc/hdf5/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 60 insertions(+) create mode 100644 pkgs/tools/misc/hdf5/bin-mv.patch create mode 100644 pkgs/tools/misc/hdf5/default.nix diff --git a/pkgs/tools/misc/hdf5/bin-mv.patch b/pkgs/tools/misc/hdf5/bin-mv.patch new file mode 100644 index 00000000000..45649977e56 --- /dev/null +++ b/pkgs/tools/misc/hdf5/bin-mv.patch @@ -0,0 +1,30 @@ +diff -rc hdf5-1.8.5/configure hdf5-1.8.5-new/configure +*** hdf5-1.8.5/configure 2010-06-04 20:26:04.000000000 +0200 +--- hdf5-1.8.5-new/configure 2010-08-02 10:30:26.000000000 +0200 +*************** +*** 30587,30598 **** + sed 's/#define /#define H5_/' pubconf + if test ! -f src/H5pubconf.h; then +! /bin/mv -f pubconf src/H5pubconf.h + elif (diff pubconf src/H5pubconf.h >/dev/null); then + rm -f pubconf + echo "src/H5pubconf.h is unchanged" + else +! /bin/mv -f pubconf src/H5pubconf.h + fi + echo "Post process src/libhdf5.settings" + sed '/^#/d' < src/libhdf5.settings > libhdf5.settings.TMP +--- 30587,30598 ---- + sed 's/#define /#define H5_/' pubconf + if test ! -f src/H5pubconf.h; then +! mv -f pubconf src/H5pubconf.h + elif (diff pubconf src/H5pubconf.h >/dev/null); then + rm -f pubconf + echo "src/H5pubconf.h is unchanged" + else +! mv -f pubconf src/H5pubconf.h + fi + echo "Post process src/libhdf5.settings" + sed '/^#/d' < src/libhdf5.settings > libhdf5.settings.TMP diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix new file mode 100644 index 00000000000..74e123d9945 --- /dev/null +++ b/pkgs/tools/misc/hdf5/default.nix @@ -0,0 +1,26 @@ + +{ stdenv +, fetchurl +}: +stdenv.mkDerivation { + name = "hdf5"; + src = fetchurl { + url = http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.5.tar.gz ; + sha256 = "0nykbpxg154akgp6va6fkab7kjvybbvpsr7n7i1l8xxmv3h3hbsa"; + }; + buildInputs = [] ; + + patches = [./bin-mv.patch]; + + meta = { + description = "HDF5 is a data model, library, and file format for storing and managing data."; + longDescription = '' + It supports an unlimited variety of datatypes, and is designed for flexible and efficient + I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing + applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and + applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. + ''; + homepage = http://www.hdfgroup.org/HDF5/; + # license = "GPLv2"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7a1914ca0d7..bffa8f5d8d8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -948,6 +948,10 @@ let inherit fetchurl stdenv; }; + hdf5 = import ../tools/misc/hdf5 { + inherit fetchurl stdenv; + }; + hevea = import ../tools/typesetting/hevea { inherit fetchurl stdenv ocaml; };