require 'formula' class Pcre < Formula homepage 'http://www.pcre.org/' url 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.bz2' mirror 'http://downloads.sourceforge.net/project/pcre/pcre/8.21/pcre-8.21.tar.bz2' md5 '0a7b592bea64b7aa7f4011fc7171a730' fails_with_llvm "Bus error in ld on SL 10.6.4", :build => 2326 def options [["--universal", "Build a universal binary."]] end def install ENV.universal_binary if ARGV.build_universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--enable-utf8", "--enable-unicode-properties", "--enable-pcregrep-libz", "--enable-pcregrep-libbz2" system "make test" system "make install" end end