public
Created

Homebrew Formula for h5utils

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require 'formula'
 
class H5utils < Formula
url 'http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz'
homepage 'http://ab-initio.mit.edu/wiki/index.php/H5utils'
md5 '46a6869fee6e6bf87fbba9ab8a99930e'
 
depends_on 'hdf5'
 
def install
ENV.x11 # enable libpng support
# patch for libpng 1.5 as described by https://github.com/mxcl/homebrew/pull/6944
inreplace 'writepng.c', 'png_ptr->jmpbuf', 'png_jmpbuf (png_ptr)'
inreplace 'writepng.c', 'free(info_ptr->palette);', '/* free(info_ptr->palette); */'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.