diff options
| author | Jack Nagel | 2014-05-31 18:53:00 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-31 18:53:07 -0500 |
| commit | 1a1a9aad48172d45680a95bb9c25e20b48aa282e (patch) | |
| tree | cca8f53848ca71fb3a53b56066ace5a97a0f5e36 /Library/Formula | |
| parent | f150573fa12aa3fd90fd37a852fedace1ca89c03 (diff) | |
| download | homebrew-1a1a9aad48172d45680a95bb9c25e20b48aa282e.tar.bz2 | |
wireshark: modernize autotools deps
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wireshark.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb index 8bda045fa..ec0e10ae7 100644 --- a/Library/Formula/wireshark.rb +++ b/Library/Formula/wireshark.rb @@ -16,9 +16,9 @@ class Wireshark < Formula head do url 'https://code.wireshark.org/review/wireshark', :using => :git - depends_on :autoconf - depends_on :automake - depends_on :libtool + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build end devel do @@ -46,18 +46,20 @@ class Wireshark < Formula depends_on :x11 if build.with? "gtk+" 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" if build.without?("gtk+") && build.without?("qt") args << "--disable-gtktest" if build.without? "gtk+" args << "--with-qt" if build.with? "qt" + if build.head? + args << "--disable-warnings-as-errors" + system "./autogen.sh" + end + system "./configure", *args system "make" ENV.deparallelize # parallel install fails |
