aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mtr.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/mtr.rb b/Library/Formula/mtr.rb
index 11c7513c9..a65610550 100644
--- a/Library/Formula/mtr.rb
+++ b/Library/Formula/mtr.rb
@@ -5,9 +5,7 @@ class Mtr < Formula
url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.82.tar.gz'
sha1 'f1319de27324d85898a9df0a293a438bbaaa12b5'
- option 'with-gtk', "Build with Gtk+ support"
-
- depends_on 'gtk+' => :optional if build.include? "with-gtk"
+ depends_on 'gtk+' => :optional
def install
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
@@ -16,7 +14,7 @@ class Mtr < Formula
--disable-dependency-tracking
--prefix=#{prefix}
]
- args << "--without-gtk" unless build.include? "with-gtk"
+ args << "--without-gtk" if build.without? 'gtk+'
system "./configure", *args
system "make install"
end