aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBrock Batsell2013-10-29 17:15:26 -0500
committerAdam Vandenberg2013-10-29 20:06:10 -0700
commit9f8c1eb9469200059e52e0c4d90445bdcc433b96 (patch)
tree6a186c9f1a878df4f3fd10edce6ff696854b42b9 /Library
parent4095c5bfcbf74f7958b88c09438a537596f052f5 (diff)
downloadhomebrew-9f8c1eb9469200059e52e0c4d90445bdcc433b96.tar.bz2
binwalk 1.2.2-1
Closes #23750. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/binwalk.rb17
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Formula/binwalk.rb b/Library/Formula/binwalk.rb
index bfdc166a9..cdf0d1c20 100644
--- a/Library/Formula/binwalk.rb
+++ b/Library/Formula/binwalk.rb
@@ -2,16 +2,21 @@ require 'formula'
class Binwalk < Formula
homepage 'http://code.google.com/p/binwalk/'
- url 'http://binwalk.googlecode.com/files/binwalk-0.5.0.tar.gz'
- sha1 'e7ffb447f932fb33b5c7c9b4ca8f8ddbead7f6db'
+ url 'https://binwalk.googlecode.com/files/binwalk-1.2.2-1.tar.gz'
+ sha1 '3422427a326f58a5b04616111ee66a8c2fddec1d'
- depends_on 'libmagic'
+ depends_on 'libmagic' => 'with-python'
+
+ option 'with-matplotlib', 'Check for presence of matplotlib, which is required for entropy graphing support'
+ if build.with? 'matplotlib'
+ depends_on :python => 'matplotlib'
+ else
+ depends_on :python
+ end
def install
cd "src" do
- system "./configure", "--prefix=#{prefix}"
- system "make"
- system "make install"
+ system python, "setup.py", "install", "--no-prereq-checks", "--prefix=#{prefix}"
end
end
end