aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRobert Quattlebaum2013-06-26 11:55:24 -0700
committerAdam Vandenberg2013-07-19 10:58:57 -0700
commit0037a8afd083486fb99f05899a7c4510a89aa4c0 (patch)
treeabc2ad0f9ac64e1733aa810cdcaf85d32211079b /Library/Formula
parentaa0ba6aea38d1686e74f0234f903234df00e81b9 (diff)
downloadhomebrew-0037a8afd083486fb99f05899a7c4510a89aa4c0.tar.bz2
wireshark: Add support for building `--HEAD`.
Signed-off-by: Adam Vandenberg <flangy@gmail.com> Conflicts: Library/Formula/wireshark.rb
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/wireshark.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb
index 96f2a1a58..427cfe86b 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"