homebrew-core/Formula/pcre.rb

31 lines
874 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Pcre < Formula
homepage 'http://www.pcre.org/'
url 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.bz2'
mirror 'http://downloads.sourceforge.net/project/pcre/pcre/8.30/pcre-8.30.tar.bz2'
md5 '98e8928cccc945d04279581e778fbdff'
fails_with :llvm do
build 2326
cause "Bus error in ld on SL 10.6.4"
end
2011-03-21 21:24:22 +00:00
def options
[["--universal", "Build a universal binary."]]
end
def install
2011-04-21 16:42:27 +00:00
ENV.universal_binary if ARGV.build_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