homebrew-core/Formula/libmusicbrainz.rb
Jack Nagel c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00

18 lines
563 B
Ruby

require 'formula'
class Libmusicbrainz < Formula
homepage 'http://musicbrainz.org/doc/libmusicbrainz'
url 'https://github.com/downloads/musicbrainz/libmusicbrainz/libmusicbrainz-4.0.1.tar.gz'
md5 '3fe4e869f69dc83a4427b5d5c52580ef'
depends_on 'neon'
depends_on 'cmake' => :build
def install
neon = Formula.factory("neon")
neon_args %W[-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib
-DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon]
system "cmake", ".", *(std_cmake_args + neon_args)
system "make install"
end
end