From 8f626e696fc807c65c5a14e04f266c32a5cbc53a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 13 Aug 2012 15:46:38 -0500 Subject: Fix build.include? usage Signed-off-by: Jack Nagel --- Library/Formula/blast.rb | 2 +- Library/Formula/yasm.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/blast.rb b/Library/Formula/blast.rb index 95205cde0..bc2227da1 100644 --- a/Library/Formula/blast.rb +++ b/Library/Formula/blast.rb @@ -20,7 +20,7 @@ class Blast < Formula def install args = ["--prefix=#{prefix}"] - args << "--with-dll" if build.include? '--with-dll' + args << "--with-dll" if build.include? 'with-dll' cd 'c++' do system "./configure", *args diff --git a/Library/Formula/yasm.rb b/Library/Formula/yasm.rb index ef3a16d36..3751418b7 100644 --- a/Library/Formula/yasm.rb +++ b/Library/Formula/yasm.rb @@ -14,7 +14,7 @@ class Yasm < Formula depends_on :automake end - depends_on 'Cython' => :python if build.include? '--enable-python' + depends_on 'Cython' => :python if build.include? 'enable-python' def install args = %W[ @@ -22,7 +22,7 @@ class Yasm < Formula --prefix=#{prefix} ] - if build.include? '--enable-python' + if build.include? 'enable-python' args << '--enable-python' args << '--enable-python-bindings' end @@ -36,7 +36,7 @@ class Yasm < Formula end def caveats - if build.include? '--enable-python' then <<-EOS.undent + if build.include? 'enable-python' then <<-EOS.undent Python bindings installed to: #{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages -- cgit v1.2.3