require 'formula' class Valgrind :build skip_clean 'lib' def install system "./autogen.sh" if File.exists? "autogen.sh" args = ["--prefix=#{prefix}", "--mandir=#{man}"] if snow_leopard_64? args << "--enable-only64bit" << "--build=amd64-darwin" end system "./configure", *args system "make install" end end