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:
parent
9598d5c800
commit
722257e579
1 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue