mtr: use new dsl
This commit is contained in:
parent
2c400c3bac
commit
729ba5a40b
1 changed files with 3 additions and 5 deletions
|
@ -5,11 +5,9 @@ class Mtr < Formula
|
|||
url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.82.tar.gz'
|
||||
sha1 'f1319de27324d85898a9df0a293a438bbaaa12b5'
|
||||
|
||||
depends_on 'gtk+' if ARGV.include? "--with-gtk"
|
||||
option 'with-gtk', "Build with Gtk+ support"
|
||||
|
||||
def options
|
||||
[['--with-gtk', "Build with Gtk+ support"]]
|
||||
end
|
||||
depends_on 'gtk+' => :optional if build.include? "with-gtk"
|
||||
|
||||
def install
|
||||
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
|
||||
|
@ -18,7 +16,7 @@ class Mtr < Formula
|
|||
--disable-dependency-tracking
|
||||
--prefix=#{prefix}
|
||||
]
|
||||
args << "--without-gtk" unless ARGV.include? "--with-gtk"
|
||||
args << "--without-gtk" unless build.include? "with-gtk"
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue