diff options
| author | Adam Vandenberg | 2012-08-25 23:30:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-25 23:30:52 -0700 |
| commit | 90b7a28f54f7c83a19e2b974d5802d1e6ee47f8a (patch) | |
| tree | 5434ca22588e84c9df8a583e2e3bd5993451e9f4 /Library/Formula | |
| parent | 4e088984186f199677389ce1f0da16a84c8e1e6d (diff) | |
| download | homebrew-90b7a28f54f7c83a19e2b974d5802d1e6ee47f8a.tar.bz2 | |
chromaprint: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/chromaprint.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/chromaprint.rb b/Library/Formula/chromaprint.rb index dfe06efe5..8be08a679 100644 --- a/Library/Formula/chromaprint.rb +++ b/Library/Formula/chromaprint.rb @@ -5,16 +5,14 @@ class Chromaprint < Formula url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.6.tar.gz' md5 '6b5a4f2685395e68d8abc40d1c2a8785' - def options - [['--without-examples', "Don't build examples (including fpcalc)"]] - end + option 'without-examples', "Don't build examples (including fpcalc)" depends_on 'cmake' => :build - depends_on 'ffmpeg' unless ARGV.include? '--without-examples' + depends_on 'ffmpeg' unless build.include? 'without-examples' def install args = std_cmake_args - args << '-DBUILD_EXAMPLES=ON' unless ARGV.include? '--without-examples' + args << '-DBUILD_EXAMPLES=ON' unless build.include? 'without-examples' system "cmake", ".", *args system "make install" end |
