2015-01-23 05:06:06 +00:00
|
|
|
class Pcre2 < Formula
|
|
|
|
homepage "http://www.pcre.org/"
|
2015-03-06 18:20:09 +00:00
|
|
|
url "http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.10.tar.bz2"
|
|
|
|
sha256 "5f45e5550a8c055a8a02b20c50060b16e71bec8440e5c86013c6b272c242ff42"
|
2015-01-23 05:06:06 +00:00
|
|
|
|
2015-01-25 09:50:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-03-06 22:24:55 +00:00
|
|
|
sha256 "9a4896919f904bea9e6c9537b9e857603181ee8c33ae0198b89c2fff98f7108a" => :yosemite
|
|
|
|
sha256 "8691bf0337543eb899d42ff68455a595835cd45859a682a324f5b54905e638cf" => :mavericks
|
|
|
|
sha256 "15de436975d7b9409442c128c30aeec9e63c0c6ff4286f2abeea8706c0336730" => :mountain_lion
|
2015-01-25 09:50:35 +00:00
|
|
|
end
|
|
|
|
|
2015-01-23 05:06:06 +00:00
|
|
|
option :universal
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-pcre2-16",
|
|
|
|
"--enable-pcre2-32",
|
|
|
|
"--enable-pcre2grep-libz",
|
|
|
|
"--enable-pcre2grep-libbz2",
|
|
|
|
"--enable-jit"
|
|
|
|
system "make"
|
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/pcre2grep", "regular expression", "#{prefix}/README"
|
|
|
|
end
|
|
|
|
end
|