homebrew-core/Formula/pcre.rb
denji 4bc4264e9e pcre: {8,16,32}bit support regexp
Closes Homebrew/homebrew#25788.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-16 09:59:50 +00:00

34 lines
1 KiB
Ruby

require 'formula'
class Pcre < Formula
homepage 'http://www.pcre.org/'
url 'http://downloads.sourceforge.net/project/pcre/pcre/8.34/pcre-8.34.tar.bz2'
mirror 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.34.tar.bz2'
sha256 'b6043ae1ff2720be665ffa28dc22b7c637cdde96f389a116c0c3020caeae583f'
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
end