require 'formula' class Autoconf267 "11255" depends_on 'pkg-config' depends_on 'boost' def install args = ["--prefix=#{prefix}", "--mandir=#{man}"] if MACOS_VERSION >= 10.6 # OS X comes with 2.61, which is too old ac_prefix = Pathname.pwd+'ac267' Autoconf267.new.brew do |f| system "./configure", "--prefix=#{ac_prefix}" system "make install" end ENV.prepend "PATH", ac_prefix+'bin', ":" system "./autogen.sh" if File.exists? "autogen.sh" args << "--enable-only64bit" << "--build=amd64-darwin" end system "./configure", *args system "make install" end end