diff options
| author | Jack Nagel | 2012-08-12 19:02:43 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 19:02:43 -0500 |
| commit | d618018b8cf2f3abcdde7f2c64502a53016bd852 (patch) | |
| tree | 0871fd9a63ae40e685e1e99e47c588a67f12af7e /Library | |
| parent | e6445db55068753ffcd51daa0d4e246fa3caf3c9 (diff) | |
| download | homebrew-d618018b8cf2f3abcdde7f2c64502a53016bd852.tar.bz2 | |
libmikmod: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libmikmod.rb | 8 |
1 files changed, 3 insertions, 5 deletions
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" |
