44 lines
1.5 KiB
Ruby
44 lines
1.5 KiB
Ruby
class Pcre < Formula
|
|
desc "Perl compatible regular expressions library"
|
|
homepage "https://www.pcre.org/"
|
|
url "https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.bz2"
|
|
mirror "https://www.mirrorservice.org/sites/ftp.exim.org/pub/pcre/pcre-8.43.tar.bz2"
|
|
sha256 "91e762520003013834ac1adb4a938d53b22a216341c061b0cf05603b290faf6b"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "08e7414a7641d1e184c936537ff67f72f52649374d2308b896d4146ccc2c08fe" => :mojave
|
|
sha256 "0389911a93a88efd4a69b52dea8ecb872fdb55bcfff45d2f7313be5f79730861" => :high_sierra
|
|
sha256 "02966e199e627803e700bc1905bf30a07f87f82bdd627cc7e915966af727fd21" => :sierra
|
|
end
|
|
|
|
head do
|
|
url "svn://vcs.exim.org/pcre/code/trunk"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
def install
|
|
system "./autogen.sh" if build.head?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--enable-utf8",
|
|
"--enable-pcre8",
|
|
"--enable-pcre16",
|
|
"--enable-pcre32",
|
|
"--enable-unicode-properties",
|
|
"--enable-pcregrep-libz",
|
|
"--enable-pcregrep-libbz2",
|
|
"--enable-jit"
|
|
system "make"
|
|
ENV.deparallelize
|
|
system "make", "test"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/pcregrep", "regular expression", "#{prefix}/README"
|
|
end
|
|
end
|