require 'formula' class Mkvtoolnix :optional depends_on 'lzo' => :optional # Fix installs for non-bash shells. # Can be removed in the next post-4.3.0 version. def patches "http://www.bunkus.org/cgi-bin/gitweb.cgi?p=mkvtoolnix.git;a=blobdiff_plain;f=build-config.in;h=e109f8007887b29049d6c42a7efd148ec06933b6;hp=ef8fe4c4b0df6a8d628d75b4fa872d563f86e3c9;hb=8682a0316ace57c74333c35a27d5183015b57c9f;hpb=82e37f12f4e51bdb1b9f10b7832d0d33527740f9" 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#{Hardware.processor_count}" system "./drake install" end end