wireshark: use stable block

This commit is contained in:
Adam Vandenberg 2014-03-18 20:23:19 -07:00
parent 9b36fb1e47
commit 3b737271b4

View file

@ -2,9 +2,16 @@ require 'formula'
class Wireshark < Formula
homepage 'http://www.wireshark.org'
url 'http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.10.6.tar.bz2'
mirror 'http://www.wireshark.org/download/src/wireshark-1.10.6.tar.bz2'
sha1 '081a2daf85e3257d7a2699e84a330712e3e5b9bb'
stable do
url 'http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.10.6.tar.bz2'
mirror 'http://www.wireshark.org/download/src/wireshark-1.10.6.tar.bz2'
sha1 '081a2daf85e3257d7a2699e84a330712e3e5b9bb'
# Removes SDK checks that prevent the build from working on CLT-only systems
# Reported upstream: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9290
patch :DATA
end
head do
url 'https://code.wireshark.org/review/wireshark', :using => :git
@ -42,14 +49,6 @@ class Wireshark < Formula
depends_on 'gtk+'
end
def patches
if build.stable?
# Removes SDK checks that prevent the build from working on CLT-only systems
# Reported upstream: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9290
{ :p1 => DATA }
end
end
def install
system "./autogen.sh" if build.head?