homebrew-core/Formula/pcre.rb
Viktor Szakáts 0aa26a8ffe pcre: use http mirror (was ftp)
Closes Homebrew/homebrew#37324.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-02 17:05:12 +00:00

43 lines
1.3 KiB
Ruby

class Pcre < Formula
homepage "http://www.pcre.org/"
url "https://downloads.sourceforge.net/project/pcre/pcre/8.36/pcre-8.36.tar.bz2"
mirror "http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.bz2"
sha256 "ef833457de0c40e82f573e34528f43a751ff20257ad0e86d272ed5637eb845bb"
bottle do
cellar :any
sha1 "b3e7d1cb382ab41fe260cb8c75e96ba45167044f" => :yosemite
sha1 "3b585fa4fdcd0e1906f6a732809c2e6b015fec2c" => :mavericks
sha1 "4d48f013859cc1ca72467d4802d1d5d6b06ad542" => :mountain_lion
end
option :universal
fails_with :llvm do
build 2326
cause "Bus error in ld on SL 10.6.4"
end
def install
ENV.universal_binary if build.universal?
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