From d618018b8cf2f3abcdde7f2c64502a53016bd852 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Aug 2012 19:02:43 -0500 Subject: libmikmod: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/libmikmod.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libmikmod.rb b/Library/Formula/libmikmod.rb index b4acccd4d..183ad4239 100644 --- a/Library/Formula/libmikmod.rb +++ b/Library/Formula/libmikmod.rb @@ -7,12 +7,10 @@ class Libmikmod < Formula depends_on :x11 - def options - [[ '--with-debug', 'Enable debugging symbols']] - end + option 'with-debug', 'Enable debugging symbols' def install - if ARGV.include? '--with-debug' then + if build.include? 'with-debug' (ENV.compiler == :clang) ? ENV.Og : ENV.O2 end @@ -23,7 +21,7 @@ class Libmikmod < Formula --disable-sam9407 --disable-ultra ] - args << '--with-debug' if ARGV.include? '--with-debug' + args << '--with-debug' if build.include? 'with-debug' mkdir 'macbuild' do system "../configure", *args system "make install" -- cgit v1.2.3