homebrew-core/Formula/mkvtoolnix.rb
Jack Nagel 7c648d9732 Shore up a number of shell quoting issues
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>
2012-05-15 14:03:11 -05:00

27 lines
840 B
Ruby

require 'formula'
class Mkvtoolnix < Formula
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-5.0.1.tar.bz2'
sha1 '900211d47ba6cbeb4188bb45a492a2b9edf08ed2'
head 'https://github.com/mbunkus/mkvtoolnix.git'
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
depends_on 'boost'
depends_on 'libvorbis'
depends_on 'libmatroska'
depends_on 'flac' => :optional
depends_on 'lzo' => :optional
fails_with :clang do
build 318
end
def install
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix
"--with-boost-regex=boost_regex-mt" # via macports
system "./drake", "-j#{ENV.make_jobs}"
system "./drake install"
end
end