require 'formula' class Mdbtools :optional # To generate docs def install inreplace 'autogen.sh', 'libtool', 'glibtool' system "NOCONFIGURE='yes' ACLOCAL_FLAGS='-I#{HOMEBREW_PREFIX}/share/aclocal' ./autogen.sh" system "./configure", "--prefix=#{prefix}", "--mandir=#{man}" system "make install" end end