diff options
| author | Mike McQuaid | 2014-03-06 20:40:26 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-08 00:54:35 +0000 |
| commit | 9de9f8d10e8e6d8c2d7cf7b74e6085038fc728d9 (patch) | |
| tree | 2c9f666ed5bda1fdf28f56b4637fb4d6c5ccc0a1 /Library/Formula/chromaprint.rb | |
| parent | e6dd316f1e5988f50f524c627c38ce5473097cc1 (diff) | |
| download | homebrew-9de9f8d10e8e6d8c2d7cf7b74e6085038fc728d9.tar.bz2 | |
formulae: fix with/without usage.
Closes #27275.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/chromaprint.rb')
| -rw-r--r-- | Library/Formula/chromaprint.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/chromaprint.rb b/Library/Formula/chromaprint.rb index b71067d82..a39af1bb1 100644 --- a/Library/Formula/chromaprint.rb +++ b/Library/Formula/chromaprint.rb @@ -8,7 +8,7 @@ class Chromaprint < Formula option 'without-examples', "Don't build examples (including fpcalc)" depends_on 'cmake' => :build - depends_on 'ffmpeg' unless build.include? 'without-examples' + depends_on 'ffmpeg' if build.with? "examples" # Upstream patch: # https://bitbucket.org/acoustid/chromaprint/commits/d0a8d8bc7c1ad5bda3294836f49184fe34a92454 @@ -16,7 +16,7 @@ class Chromaprint < Formula def install args = std_cmake_args - args << '-DBUILD_EXAMPLES=ON' unless build.include? 'without-examples' + args << '-DBUILD_EXAMPLES=ON' if build.with? "examples" system "cmake", ".", *args system "make install" end @@ -34,4 +34,3 @@ index 47c6b98..76fb240 100644 +#include <algorithm> #include <limits> #include <iterator> - |
