Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Homebrew Formula for h5utils
require 'formula'
class H5utils < Formula
url ''
homepage ''
md5 '46a6869fee6e6bf87fbba9ab8a99930e'
depends_on 'hdf5'
def install
ENV.x11 # enable libpng support
# patch for libpng 1.5 as described by
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",
system "make install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment