From 07cb22a03fbb2da002821da0608f7de120d69539 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 8 Aug 2012 22:07:31 -0700 Subject: babl: use options dsl --- Library/Formula/babl.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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' -- cgit v1.2.3