2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Protobuf < Formula
|
2011-05-25 21:43:12 +00:00
|
|
|
url 'http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2'
|
2010-01-31 03:16:52 +00:00
|
|
|
homepage 'http://code.google.com/p/protobuf/'
|
2011-05-25 21:43:12 +00:00
|
|
|
sha1 'df5867e37a4b51fb69f53a8baf5b994938691d6d'
|
2011-03-26 06:25:28 +00:00
|
|
|
|
2011-09-05 01:57:38 +00:00
|
|
|
fails_with_llvm :build => 2334
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2011-04-21 16:34:47 +00:00
|
|
|
def options
|
|
|
|
[['--universal', 'Do a universal build']]
|
|
|
|
end
|
|
|
|
|
2009-09-21 19:24:04 +00:00
|
|
|
def install
|
2011-04-21 16:42:27 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2010-01-31 03:16:52 +00:00
|
|
|
"--with-zlib"
|
|
|
|
system "make"
|
2009-09-21 19:24:04 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|