diff options
| author | Adam Vandenberg | 2012-08-08 22:07:31 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:07:31 -0700 |
| commit | 07cb22a03fbb2da002821da0608f7de120d69539 (patch) | |
| tree | 265a38868323127e5f915253cb66ae8b17e5a614 | |
| parent | b06b3cbea60ae3f732235af30b0e308c759c49c1 (diff) | |
| download | homebrew-07cb22a03fbb2da002821da0608f7de120d69539.tar.bz2 | |
babl: use options dsl
| -rw-r--r-- | Library/Formula/babl.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/babl.rb b/Library/Formula/babl.rb index a34304607..c91f94e61 100644 --- a/Library/Formula/babl.rb +++ b/Library/Formula/babl.rb @@ -9,9 +9,7 @@ class Babl < Formula depends_on 'pkg-config' => :build - def options - [["--universal", "Builds a universal binary"]] - end + option :universal def patches # There are two patches. @@ -22,7 +20,7 @@ class Babl < Formula end def install - if ARGV.build_universal? + if build.universal? ENV.universal_binary if ENV.compiler == :gcc opoo 'Compilation may fail at babl-cpuaccel.c using gcc for a universal build' |
