aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/szl.rb
blob: 628b921503b050c64af8ef3b4ac361c0d27723a9 (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
27
require 'formula'

class Szl < Formula
  homepage 'http://code.google.com/p/szl/'
  url 'http://szl.googlecode.com/files/szl-1.0.tar.gz'
  md5 'd25f73b2adf4b92229d8b451685506d1'

  depends_on 'binutils' # For objdump
  depends_on 'icu4c'
  depends_on 'protobuf' # for protoc
  depends_on 'pcre'

  fails_with :clang do
    build 318
    cause <<-EOS.undent
      engine/symboltable.cc:47:7: error: qualified reference to 'Proc' is a constructor name rather than a type wherever a constructor can be declared
      Proc::Proc* SymbolTable::init_proc_ = NULL;
    EOS
  end

  def install
    ENV['OBJDUMP'] = "#{HOMEBREW_PREFIX}/bin/gobjdump"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end