homebrew-core/Formula/protobuf.rb

36 lines
963 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Protobuf < Formula
2010-01-31 03:16:52 +00:00
homepage 'http://code.google.com/p/protobuf/'
url 'http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2'
sha1 'df5867e37a4b51fb69f53a8baf5b994938691d6d'
2011-03-26 06:25:28 +00:00
option :universal
fails_with :llvm do
build 2334
end
2009-09-21 19:24:04 +00:00
def install
2012-01-29 05:19:48 +00:00
# Don't build in debug mode. See:
# https://github.com/mxcl/homebrew/issues/9279
# http://code.google.com/p/protobuf/source/browse/trunk/configure.ac#61
ENV.prepend 'CXXFLAGS', '-DNDEBUG'
ENV.universal_binary if build.universal?
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"
# Install editor support and examples
doc.install %w( editors examples )
end
def caveats; <<-EOS.undent
Editor support and examples have been installed to:
#{doc}/protobuf
EOS
2009-09-21 19:24:04 +00:00
end
2011-03-10 05:11:03 +00:00
end