Fix build.include? usage

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-13 15:46:38 -05:00
parent 6039613661
commit 00c48faa3c
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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