7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
18 lines
554 B
Ruby
18 lines
554 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 = "-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
|