diff options
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 |
