blob: 53e0002d83404e3dc2c16dbd71a545dfbb566a73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  | 
require 'formula'
class Wireshark < Formula
  url 'http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.4.6.tar.bz2'
  md5 'fd301004ebc5fac8e56c2f0d4ef6173f'
  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
  |