avimetaedit 1.0.1 (new formula)

Closes #18621.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Maxime Gervais 2017-09-27 13:56:24 +02:00 committed by ilovezfs
parent 9c57468f8d
commit df54d4767c

26
Formula/avimetaedit.rb Normal file
View file

@ -0,0 +1,26 @@
class Avimetaedit < Formula
desc "Tool for embedding, validating, and exporting of AVI files metadata"
homepage "https://mediaarea.net/AVIMetaEdit"
url "https://mediaarea.net/download/binary/avimetaedit/1.0.1/AVIMetaEdit_CLI_1.0.1_GNU_FromSource.tar.bz2"
version "1.0.1"
sha256 "3aa4ca6aed51c71684f3fd1bd3b4defc2f9e50a8bd0bdf10e55e86c8ba24aafd"
def install
cd "Project/GNU/CLI" do
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
end
test do
avi = "UklGRuYAAABBVkkgTElTVMAAAABoZHJsYXZpaDgAAABAnAAAlgAAAAAAAAAQCQAAAQAAAAAAAAABAAAAAAAQAA" \
"IAAAACAAAAAAAAAAAAAAAAAAAAAAAAAExJU1R0AAAAc3RybHN0cmg4AAAAdmlkc0k0MjAAAAAAAAAAAAAAAAAB" \
"AAAAGQAAAAAAAAABAAAABgAAAP////8AAAAAAAAAAAIAAgBzdHJmKAAAACgAAAACAAAAAgAAAAEADABJNDIwBg" \
"AAAAAAAAAAAAAAAAAAAAAAAABMSVNUEgAAAG1vdmkwMGRjBgAAABAQEBCAgA==".unpack("m")[0]
(testpath/"test.avi").write avi
assert_match "test.avi,238,AVI", shell_output("#{bin}/avimetaedit --out-tech test.avi")
end
end