aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-10 15:36:53 -0700
committerAdam Vandenberg2012-08-10 15:36:53 -0700
commit16983984f6a656b8499e5cb1bd63df8c3af84a9e (patch)
treed510f7a727f2356ae0356ad3e38fd71dae1bff75 /Library/Formula
parent97418e8e1203e8da9e39417070cc6302a20d31bc (diff)
downloadhomebrew-16983984f6a656b8499e5cb1bd63df8c3af84a9e.tar.bz2
mtr: Make GTK+ opt-in.
This is what MacPorts does.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mtr.rb11
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