aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pcre.rb
blob: e8e01b73827fdc8ea93ac9b7d21ce984c20e22c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class Pcre < Formula
  url 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.bz2'
  homepage 'http://www.pcre.org/'
  md5 '5e595edbcded141813fa1a10dbce05cb'

  fails_with_llvm "Bus error in ld on SL 10.6.4", :build => 2326

  def options
    [["--universal", "Build a universal binary."]]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-utf8",
                          "--enable-unicode-properties",
                          "--enable-pcregrep-libz",
                          "--enable-pcregrep-libbz2"
    system "make test"
    system "make install"
  end
end