From c50323548d22aa649de2b8cf236d350816b536a4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 4 Jan 2014 13:02:23 +0000 Subject: binwalk: cleanup python usage. --- Library/Formula/binwalk.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/binwalk.rb b/Library/Formula/binwalk.rb index cdf0d1c20..65c625ba7 100644 --- a/Library/Formula/binwalk.rb +++ b/Library/Formula/binwalk.rb @@ -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 -- cgit v1.2.3