homebrew-core/Formula/libmusicbrainz.rb

19 lines
563 B
Ruby
Raw Normal View History

require 'formula'
2009-08-08 12:52:48 +00:00
2011-03-10 05:11:03 +00:00
class Libmusicbrainz < Formula
homepage 'http://musicbrainz.org/doc/libmusicbrainz'
url 'https://github.com/downloads/musicbrainz/libmusicbrainz/libmusicbrainz-4.0.1.tar.gz'
md5 '3fe4e869f69dc83a4427b5d5c52580ef'
2009-08-08 12:52:48 +00:00
depends_on 'neon'
depends_on 'cmake' => :build
2009-08-08 12:52:48 +00:00
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)
2009-08-08 12:52:48 +00:00
system "make install"
end
end