homebrew-core/Formula/snappy.rb
Brandon Harvey (bbook) 248e7ddad7 snappy: add --universal option
Closes Homebrew/homebrew#13473.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-18 23:21:45 -05:00

20 lines
513 B
Ruby

require 'formula'
class Snappy < Formula
homepage 'http://snappy.googlecode.com'
url 'http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz'
sha1 '3a3df859cf33f78f8e945c3f67f28685f0f38bb1'
depends_on 'pkg-config' => :build
def options
[["--universal", "Builds a universal binary"]]
end
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end