2010-11-07 22:26:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Szl < Formula
|
2010-11-07 22:26:17 +00:00
|
|
|
homepage 'http://code.google.com/p/szl/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://szl.googlecode.com/files/szl-1.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'e4c6d4aec1afc025257d41dd77b8f5c25ea120d4'
|
2010-11-07 22:26:17 +00:00
|
|
|
|
|
|
|
depends_on 'binutils' # For objdump
|
|
|
|
depends_on 'icu4c'
|
2010-11-08 01:23:58 +00:00
|
|
|
depends_on 'protobuf' # for protoc
|
2011-08-23 07:29:04 +00:00
|
|
|
depends_on 'pcre'
|
2010-11-07 22:26:17 +00:00
|
|
|
|
2012-04-24 03:27:58 +00:00
|
|
|
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
|
|
|
|
|
2010-11-07 22:26:17 +00:00
|
|
|
def install
|
|
|
|
ENV['OBJDUMP'] = "#{HOMEBREW_PREFIX}/bin/gobjdump"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|