aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/audiofile.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-07-30 14:05:34 -0700
committerAdam Vandenberg2012-08-08 22:01:39 -0700
commitfd85db5f2a527f03cfb70198f475d2fd91e4eab3 (patch)
tree8c786236a717a8bad0d47debe3b5c57dbb20bbe3 /Library/Formula/audiofile.rb
parentdbd7abac811e351aacc5b45a17643e85b822246c (diff)
downloadhomebrew-fd85db5f2a527f03cfb70198f475d2fd91e4eab3.tar.bz2
audiofile: use options dsl
Diffstat (limited to 'Library/Formula/audiofile.rb')
-rw-r--r--Library/Formula/audiofile.rb16
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/audiofile.rb b/Library/Formula/audiofile.rb
index 99e661415..a89d4de90 100644
--- a/Library/Formula/audiofile.rb
+++ b/Library/Formula/audiofile.rb
@@ -5,21 +5,17 @@ class Audiofile < Formula
url 'https://github.com/downloads/mpruett/audiofile/audiofile-0.3.4.tar.gz'
sha1 'e6f664b0d551df35ce0c10e38e5617bcd4605335'
- depends_on 'lcov' if ARGV.include? '--with-lcov'
+ option 'with-lcov', 'Enable Code Coverage support using lcov.'
+ option 'with-check', 'Run the test suite during install ~30sec'
- def options
- [
- ['--with-lcov', 'Enable Code Coverage support using lcov.'],
- ['--with-check', 'Run the test suite during install ~30sec']
- ]
- end
+ depends_on 'lcov' if build.include? 'with-lcov'
def install
- args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
- args << '--enable-coverage' if ARGV.include? '--with-lcov'
+ args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
+ args << '--enable-coverage' if build.include? 'with-lcov'
system "./configure", *args
system "make"
- system "make check" if ARGV.include? '--with-check'
+ system "make check" if build.include? 'with-check'
system "make install"
end