From 3b737271b47cfa765e7e369cca9d90c048c14ab3 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 18 Mar 2014 20:23:19 -0700 Subject: [PATCH] wireshark: use stable block --- Formula/wireshark.rb | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Formula/wireshark.rb b/Formula/wireshark.rb index 7bd7a761eb..ac6a903fcb 100644 --- a/Formula/wireshark.rb +++ b/Formula/wireshark.rb @@ -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?