diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb index 96f2a1a582c8..427cfe86beec 100644 --- a/Library/Formula/wireshark.rb +++ b/Library/Formula/wireshark.rb @@ -6,6 +6,16 @@ class Wireshark < Formula mirror 'http://www.wireshark.org/download/src/wireshark-1.10.0.tar.bz2' sha1 'c78a5d5e589edc8ebc702eb00a284ccbca7721bc' + head 'http://anonsvn.wireshark.org/wireshark/trunk/', :using => :svn + + if build.head? + # These are required on the HEAD build because the configure + # script doesn't live on the subversion repository. + depends_on :autoconf + depends_on :automake + depends_on :libtool + end + option 'with-x', 'Include X11 support' option 'with-qt', 'Use QT for GUI instead of GTK+' @@ -29,11 +39,14 @@ class Wireshark < Formula end def install + system "./autogen.sh" if build.head? + args = ["--disable-dependency-tracking", "--prefix=#{prefix}", "--with-gnutls", "--with-ssl"] + args << "--disable-warnings-as-errors" if build.head? args << "--disable-wireshark" unless build.with? "x" or build.with? "qt" args << "--disable-gtktest" unless build.with? "x" args << "--with-qt" if build.with? "qt"