diff options
| author | Adam Vandenberg | 2012-10-27 14:44:03 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-27 14:44:03 -0700 |
| commit | 8d4a246e9b368eddbf095caba51bc1a3cfa88e8a (patch) | |
| tree | 527b4f6383f4f95ae1b1c9c9a61f362bed3f4137 /Library/Formula/phash.rb | |
| parent | 9f151dc1cf33c0904bd6f089d9259f6b7d131e59 (diff) | |
| download | homebrew-8d4a246e9b368eddbf095caba51bc1a3cfa88e8a.tar.bz2 | |
phash: fix audit warnings
Diffstat (limited to 'Library/Formula/phash.rb')
| -rw-r--r-- | Library/Formula/phash.rb | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Library/Formula/phash.rb b/Library/Formula/phash.rb index 9a5e7a391..25f61b937 100644 --- a/Library/Formula/phash.rb +++ b/Library/Formula/phash.rb @@ -5,22 +5,18 @@ class Phash < Formula url 'http://www.phash.org/releases/pHash-0.9.4.tar.gz' sha1 '9710b8a1d4d24e7fc3ac43c33eac8e89d9e727d7' - depends_on 'cimg' unless ARGV.include? "--disable-image-hash" and ARGV.include? "--disable-video-hash" - depends_on 'ffmpeg' unless ARGV.include? "--disable-video-hash" + depends_on 'cimg' unless build.include? "disable-image-hash" and build.include? "disable-video-hash" + depends_on 'ffmpeg' unless build.include? "disable-video-hash" - unless ARGV.include? "--disable-audio-hash" + unless build.include? "disable-audio-hash" depends_on 'libsndfile' depends_on 'libsamplerate' depends_on 'mpg123' end - def options - [ - ["--disable-image-hash", "Disable image hash"], - ["--disable-video-hash", "Disable video hash"], - ["--disable-audio-hash", "Disable audio hash"] - ] - end + option "disable-image-hash", "Disable image hash" + option "disable-video-hash", "Disable video hash" + option "disable-audio-hash", "Disable audio hash" fails_with :clang do build 318 @@ -42,9 +38,9 @@ class Phash < Formula ] # disable specific hashes if specified as an option - args << "--disable-image-hash" if ARGV.include? "--disable-image-hash" - args << "--disable-video-hash" if ARGV.include? "--disable-video-hash" - args << "--disable-audio-hash" if ARGV.include? "--disable-audio-hash" + args << "--disable-image-hash" if build.include? "disable-image-hash" + args << "--disable-video-hash" if build.include? "disable-video-hash" + args << "--disable-audio-hash" if build.include? "disable-audio-hash" system "./configure", *args system "make install" |
