binwalk: cleanup python usage.

This commit is contained in:
Mike McQuaid 2014-01-04 13:02:23 +00:00
parent f9083e0a8d
commit 9f68dcf286

View file

@ -8,15 +8,12 @@ class Binwalk < Formula
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
depends_on 'matplotlib' => :python if build.with? 'matplotlib'
depends_on :python
def install
cd "src" do
system python, "setup.py", "install", "--no-prereq-checks", "--prefix=#{prefix}"
system "python", "setup.py", "install", "--no-prereq-checks", "--prefix=#{prefix}"
end
end
end