diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mtr.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/mtr.rb b/Library/Formula/mtr.rb index 5f9059aea..d84ba4391 100644 --- a/Library/Formula/mtr.rb +++ b/Library/Formula/mtr.rb @@ -5,17 +5,20 @@ class Mtr < Formula url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.82.tar.gz' sha1 'f1319de27324d85898a9df0a293a438bbaaa12b5' - depends_on 'gtk+' unless ARGV.include? "--no-gtk" + depends_on 'gtk+' if ARGV.include? "--with-gtk" def options - [['--no-gtk', "Don't build with Gtk+ support"]] + [['--with-gtk', "Build with Gtk+ support"]] end def install # We need to add this because nameserver8_compat.h has been removed in Snow Leopard ENV['LIBS'] = "-lresolv" - args = %W[--prefix=#{prefix} --disable-dependency-tracking] - args << "--without-gtk" if ARGV.include? "--no-gtk" + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + ] + args << "--without-gtk" unless ARGV.include? "--with-gtk" system "./configure", *args system "make install" end |
