Skip to content

Commit

Permalink
wireshark: Add support for building --HEAD.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <[email protected]>

Conflicts:
	Library/Formula/wireshark.rb
  • Loading branch information
darconeous authored and adamv committed Jul 19, 2013
1 parent aa0ba6a commit 0037a8a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Library/Formula/wireshark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ class Wireshark < Formula
mirror 'http:https://www.wireshark.org/download/src/wireshark-1.10.0.tar.bz2'
sha1 'c78a5d5e589edc8ebc702eb00a284ccbca7721bc'

head 'http:https://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+'

Expand All @@ -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"
Expand Down

0 comments on commit 0037a8a

Please sign in to comment.