diff options
| author | Adam Vandenberg | 2012-08-09 22:16:46 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 22:16:46 -0700 |
| commit | 8e26401c7580912cb0f5341c9fce769f3061efa7 (patch) | |
| tree | 64633eac6978b42f86d327a0114f1199114cc760 | |
| parent | 6e3bf3c41d00e9b9640f34b7af60303b816baeca (diff) | |
| download | homebrew-8e26401c7580912cb0f5341c9fce769f3061efa7.tar.bz2 | |
snappy: use options dsl
| -rw-r--r-- | Library/Formula/snappy.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/snappy.rb b/Library/Formula/snappy.rb index 8d7874532..944e8152b 100644 --- a/Library/Formula/snappy.rb +++ b/Library/Formula/snappy.rb @@ -5,14 +5,12 @@ class Snappy < Formula url 'http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz' sha1 '3a3df859cf33f78f8e945c3f67f28685f0f38bb1' - depends_on 'pkg-config' => :build + option :universal - def options - [["--universal", "Builds a universal binary"]] - end + depends_on 'pkg-config' => :build def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" |
