aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-01-26 11:57:11 -0600
committerJack Nagel2013-01-26 12:28:30 -0600
commit86ee546abfca03e75114a3135380d5f0120289b3 (patch)
tree8478fe90bd6be0e8c6d694ea12127b15ef13b458 /Library/Formula
parent9acf2b62dd639a2ca8581c7e2993f3769b86e17a (diff)
downloadhomebrew-86ee546abfca03e75114a3135380d5f0120289b3.tar.bz2
mtr: use new optional deps support
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-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