chromaprint: use new dsl
This commit is contained in:
parent
0c5c0b1e13
commit
5c18d3cb81
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue