homebrew-core/Formula/mtr.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

15 lines
463 B
Ruby

require 'formula'
class Mtr <Formula
@url='ftp://ftp.bitwizard.nl/mtr/mtr-0.75.tar.gz'
@homepage='http://www.bitwizard.nl/mtr/'
@md5='23baca52d0922c2ecba7eba05317868c'
def install
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
ENV['LIBS']= "-lresolv"
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
bin.install "mtr"
end
end