mkvtoolnix 6.8.0: update to 6.8.0 and add tests

Closes Homebrew/homebrew#27175.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Steffen Matthischke 2014-03-04 01:52:03 +01:00 committed by Jack Nagel
parent 9598d5c800
commit 722257e579

View file

@ -2,8 +2,8 @@ require 'formula'
class Mkvtoolnix < Formula
homepage 'http://www.bunkus.org/videotools/mkvtoolnix/'
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-6.7.0.tar.xz'
sha1 '3322fdcc5be3f6b799703380584ab3565c576c9e'
url 'http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-6.8.0.tar.xz'
sha1 'd742eb0c38de48d0f12363252115c0d966e8abc3'
head 'https://github.com/mbunkus/mkvtoolnix.git'
@ -56,4 +56,18 @@ class Mkvtoolnix < Formula
system "./drake", "-j#{ENV.make_jobs}"
system "./drake install"
end
test do
mkv_path = testpath/"Great.Movie.mkv"
sub_path = testpath/"subtitles.srt"
sub_path.write <<-EOS.undent
1
00:00:10,500 --> 00:00:13,000
Homebrew
EOS
system "#{bin}/mkvmerge", "-o", mkv_path, sub_path
system "#{bin}/mkvinfo", mkv_path
system "#{bin}/mkvextract", "tracks", mkv_path, "0:#{sub_path}"
end
end