2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-31 05:31:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pcre < Formula
|
2010-02-04 23:07:44 +00:00
|
|
|
homepage 'http://www.pcre.org/'
|
2012-02-16 17:45:05 +00:00
|
|
|
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'
|
2012-01-05 18:11:11 +00:00
|
|
|
md5 '0a7b592bea64b7aa7f4011fc7171a730'
|
2009-08-31 05:31:16 +00:00
|
|
|
|
2011-08-26 15:53:16 +00:00
|
|
|
fails_with_llvm "Bus error in ld on SL 10.6.4", :build => 2326
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2010-10-17 15:52:14 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2009-08-31 05:31:16 +00:00
|
|
|
def install
|
2011-04-21 16:42:27 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
2010-08-09 23:57:35 +00:00
|
|
|
|
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"
|
2009-08-31 05:31:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|