3c5604b7d6
Closes Homebrew/homebrew#39184. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
class Pcre2 < Formula
|
|
homepage "http://www.pcre.org/"
|
|
url "https://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.10.tar.bz2"
|
|
sha256 "5f45e5550a8c055a8a02b20c50060b16e71bec8440e5c86013c6b272c242ff42"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "9a4896919f904bea9e6c9537b9e857603181ee8c33ae0198b89c2fff98f7108a" => :yosemite
|
|
sha256 "8691bf0337543eb899d42ff68455a595835cd45859a682a324f5b54905e638cf" => :mavericks
|
|
sha256 "15de436975d7b9409442c128c30aeec9e63c0c6ff4286f2abeea8706c0336730" => :mountain_lion
|
|
end
|
|
|
|
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
|