From 16983984f6a656b8499e5cb1bd63df8c3af84a9e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 10 Aug 2012 15:36:53 -0700 Subject: mtr: Make GTK+ opt-in. This is what MacPorts does. --- Library/Formula/mtr.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3