2011-03-23 05:50:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Snappy < Formula
|
|
|
|
homepage 'http://snappy.googlecode.com'
|
2012-06-12 05:49:20 +00:00
|
|
|
url 'http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz'
|
|
|
|
sha1 '3a3df859cf33f78f8e945c3f67f28685f0f38bb1'
|
2011-03-23 05:50:53 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2012-07-18 18:50:25 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Builds a universal binary"]]
|
|
|
|
end
|
|
|
|
|
2011-03-23 05:50:53 +00:00
|
|
|
def install
|
2012-07-18 18:50:25 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
2011-03-23 05:50:53 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|