homebrew-core/Formula/wireshark.rb
Craig Bernstein 9630f84df1 Update Wireshark to 1.4.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-26 09:20:27 -08:00

29 lines
714 B
Ruby

require 'formula'
class Wireshark <Formula
url 'http://media-2.cacetech.com/wireshark/src/wireshark-1.4.2.tar.bz2'
md5 '5429561935ea0d1ee572793b55446918'
homepage 'http://www.wireshark.org'
depends_on 'gnutls' => :optional
depends_on 'pcre' => :optional
depends_on 'glib'
depends_on 'gtk+' if ARGV.include? "--with-x"
def options
[["--with-x", "Include X11 support"]]
end
def install
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
# actually just disables the GTK GUI
args << "--disable-wireshark" if not ARGV.include? "--with-x"
system "./configure", *args
system "make"
ENV.j1 # Install failed otherwise.
system "make install"
end
end