diff options
| author | Jack Nagel | 2012-08-12 12:55:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 12:55:58 -0500 |
| commit | 97412254c7cebcbe356127b54d6eef4d9de95e64 (patch) | |
| tree | 1649d5f595be4c6f80fc09f87f6fbf3cc418f858 /Library/Formula | |
| parent | 783019d02f8aa581d11e79fe99aa7e8952dcbceb (diff) | |
| download | homebrew-97412254c7cebcbe356127b54d6eef4d9de95e64.tar.bz2 | |
libsndfile: use option DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libsndfile.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/libsndfile.rb b/Library/Formula/libsndfile.rb index 7f548f551..cc4a80925 100644 --- a/Library/Formula/libsndfile.rb +++ b/Library/Formula/libsndfile.rb @@ -7,9 +7,7 @@ class Libsndfile < Formula depends_on 'pkg-config' => :build - def options - [["--universal", "Build a universal binary."]] - end + option :universal def patches # libsndfile doesn't find Carbon.h using XCode 4.3: @@ -18,7 +16,7 @@ class Libsndfile < Formula end 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" |
