From baef71eed6058d43d7fcd7a73b0d17cf2d14c55e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 8 Aug 2012 22:16:23 -0700 Subject: blast: use options dsl --- Library/Formula/blast.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/blast.rb b/Library/Formula/blast.rb index 2c90fd407..95205cde0 100644 --- a/Library/Formula/blast.rb +++ b/Library/Formula/blast.rb @@ -10,9 +10,7 @@ class Blast < Formula build 421 end - def options - [['--with-dll', "Create dynamic binaries instead of static"]] - end + option 'with-dll', "Create dynamic binaries instead of static" # fixes to 2.2.25 acknowledged upstream by Aaron U. per email # inform configure about -Os @@ -22,7 +20,7 @@ class Blast < Formula def install args = ["--prefix=#{prefix}"] - args << "--with-dll" if ARGV.include? '--with-dll' + args << "--with-dll" if build.include? '--with-dll' cd 'c++' do system "./configure", *args -- cgit v1.2.3