2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-21 19:24:04 +00:00
|
|
|
|
|
|
|
class Protobuf <Formula
|
2010-01-31 03:16:52 +00:00
|
|
|
url 'http://protobuf.googlecode.com/files/protobuf-2.3.0.tar.bz2'
|
|
|
|
sha1 'db0fbdc58be22a676335a37787178a4dfddf93c6'
|
|
|
|
homepage 'http://code.google.com/p/protobuf/'
|
2009-09-21 19:24:04 +00:00
|
|
|
|
|
|
|
def install
|
2010-01-31 03:16:52 +00:00
|
|
|
ENV.gcc_4_2
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-zlib"
|
|
|
|
system "make"
|
2009-09-21 19:24:04 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|