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/'
|
2014-04-13 17:31:33 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.bz2'
|
|
|
|
mirror 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.tar.bz2'
|
|
|
|
sha256 'a961c1c78befef263cc130756eeca7b674b4e73a81533293df44e4265236865b'
|
2009-08-31 05:31:16 +00:00
|
|
|
|
2014-02-22 12:06:01 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-04-13 17:35:10 +00:00
|
|
|
sha1 "be65f007b73eeede8b965c0d7fc1c3d1a4bce087" => :mavericks
|
|
|
|
sha1 "a0358dc5793923703258bd6a4fb9e5a5e44a358e" => :mountain_lion
|
|
|
|
sha1 "6f7043ff5e9ad854dfe98e0399045d0f62209402" => :lion
|
2014-02-22 12:06:01 +00:00
|
|
|
end
|
|
|
|
|
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",
|
2014-01-10 12:27:41 +00:00
|
|
|
"--enable-pcre8",
|
|
|
|
"--enable-pcre16",
|
|
|
|
"--enable-pcre32",
|
2010-06-25 17:06:19 +00:00
|
|
|
"--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
|