aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander P2013-01-28 17:07:59 +0200
committerAdam Vandenberg2013-01-29 22:08:11 -0800
commit0cf22192f5bd2bdf912b657c8f11377400965e36 (patch)
treee13c76110b181366f008865be8fcee7712588fab
parent6797ae057aa3f9ea0a62c68b90e604c98ed85518 (diff)
downloadhomebrew-0cf22192f5bd2bdf912b657c8f11377400965e36.tar.bz2
h5utils 1.12.1
Closes #17378. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/h5utils.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/h5utils.rb b/Library/Formula/h5utils.rb
new file mode 100644
index 000000000..7f37cfe38
--- /dev/null
+++ b/Library/Formula/h5utils.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class H5utils < Formula
+ homepage 'http://ab-initio.mit.edu/wiki/index.php/H5utils'
+ url 'http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz'
+ sha1 '1bd8ef8c50221da35aafb5424de9b5f177250d2d'
+
+ depends_on :libpng
+ depends_on 'hdf5'
+
+ # A patch is required in order to build h5utils with libpng 1.5
+ def patches
+ {:p0 =>
+ "https://trac.macports.org/export/102291/trunk/dports/science/h5utils/files/patch-writepng.c"
+ }
+ end
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--without-octave"
+ system "make install"
+ end
+end