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/'
|
2013-11-15 10:20:18 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.bz2'
|
|
|
|
mirror 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.bz2'
|
2013-06-01 15:34:10 +00:00
|
|
|
sha256 'c603957a4966811c04af5f6048c71cfb4966ec93312d7b3118116ed9f3bc0478'
|
2009-08-31 05:31:16 +00:00
|
|
|
|
2012-08-12 17:58:16 +00:00
|
|
|
option :universal
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
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
|
|
|
|
2009-08-31 05:31:16 +00:00
|
|
|
def install
|
2012-08-12 19:55:20 +00:00
|
|
|
ENV.universal_binary if 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",
|
2013-06-01 15:34:10 +00:00
|
|
|
"--enable-pcregrep-libbz2",
|
|
|
|
"--enable-jit"
|
2013-06-01 19:38:22 +00:00
|
|
|
system "make"
|
|
|
|
ENV.deparallelize
|
2010-08-02 11:59:26 +00:00
|
|
|
system "make test"
|
2009-08-31 05:31:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|