diff options
| author | Adam Vandenberg | 2012-09-03 12:20:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-03 12:27:31 -0700 |
| commit | 37c63e03c1fa59173e8bb0257c345830b5fe57ca (patch) | |
| tree | b72731e141686a908b445e0dbd32da5c8384a2df /Library/Formula | |
| parent | 2de9957bf78dc2075ee076291be26cc614f50273 (diff) | |
| download | homebrew-37c63e03c1fa59173e8bb0257c345830b5fe57ca.tar.bz2 | |
mtr: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mtr.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/mtr.rb b/Library/Formula/mtr.rb index d84ba4391..11c7513c9 100644 --- a/Library/Formula/mtr.rb +++ b/Library/Formula/mtr.rb @@ -5,11 +5,9 @@ class Mtr < Formula url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.82.tar.gz' sha1 'f1319de27324d85898a9df0a293a438bbaaa12b5' - depends_on 'gtk+' if ARGV.include? "--with-gtk" + option 'with-gtk', "Build with Gtk+ support" - def options - [['--with-gtk', "Build with Gtk+ support"]] - end + depends_on 'gtk+' => :optional if build.include? "with-gtk" def install # We need to add this because nameserver8_compat.h has been removed in Snow Leopard @@ -18,7 +16,7 @@ class Mtr < Formula --disable-dependency-tracking --prefix=#{prefix} ] - args << "--without-gtk" unless ARGV.include? "--with-gtk" + args << "--without-gtk" unless build.include? "with-gtk" system "./configure", *args system "make install" end |
