cf606f7317
I presume this means it will also work on 10.6 etc. as long as the LLVM version is new enough. But we may be proved wrong.
26 lines
770 B
Ruby
26 lines
770 B
Ruby
require 'formula'
|
|
|
|
class Pcre < Formula
|
|
url 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.bz2'
|
|
homepage 'http://www.pcre.org/'
|
|
md5 'f14a9fef3c92f3fc6c5ac92d7a2c7eb3'
|
|
|
|
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
|