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