homebrew-core/Formula/pcre.rb

26 lines
761 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Pcre < Formula
2011-02-16 20:54:54 +00:00
url 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.bz2'
homepage 'http://www.pcre.org/'
2011-02-16 20:54:54 +00:00
md5 'f14a9fef3c92f3fc6c5ac92d7a2c7eb3'
def options
[["--universal", "Build a universal binary."]]
end
def install
fails_with_llvm "Bus error in ld on SL 10.6.4"
ENV.universal_binary if ARGV.include? "--universal"
2010-06-25 17:06:19 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-utf8",
"--enable-unicode-properties",
"--enable-pcregrep-libz",
"--enable-pcregrep-libbz2"
2010-08-02 11:59:26 +00:00
system "make test"
system "make install"
end
end