aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:02:23 +0000
committerMike McQuaid2014-01-04 13:19:20 +0000
commitc50323548d22aa649de2b8cf236d350816b536a4 (patch)
tree5d4ef8214ebbe253995494c2797e4b88e45a6470 /Library/Formula
parentbcfc6691b793598f924198d6d9d087a7d6e8d95a (diff)
downloadhomebrew-c50323548d22aa649de2b8cf236d350816b536a4.tar.bz2
binwalk: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/binwalk.rb9
1 files changed, 3 insertions, 6 deletions
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