ec3b46ef98
Updated to latest version and included cmake The previous formula did not list 'cmake' as a build dependency, which is weird given that the first `system` line is an invocation of cmake. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
18 lines
517 B
Ruby
18 lines
517 B
Ruby
require 'formula'
|
|
|
|
class Libmusicbrainz <Formula
|
|
url 'http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-3.0.3.tar.gz'
|
|
homepage 'http://musicbrainz.org'
|
|
md5 'f4824d0a75bdeeef1e45cc88de7bb58a'
|
|
|
|
depends_on 'neon'
|
|
depends_on 'cmake' => :build
|
|
|
|
def install
|
|
neon = Formula.factory("neon")
|
|
neon_args = "-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib -DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon"
|
|
|
|
system "cmake . #{std_cmake_parameters} #{neon_args}"
|
|
system "make install"
|
|
end
|
|
end
|