diff options
| author | Jaime Marquínez Ferrándiz | 2015-01-26 12:33:51 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-26 11:52:51 +0000 |
| commit | 574a364940b8ebc5d6c04857af9bf1ffa98e4146 (patch) | |
| tree | da02613e72f297b077d387c8ddd1bdcd936a2595 /Library | |
| parent | 51c3f4df550c59de0e62b19b5f03acbb32fd70d3 (diff) | |
| download | homebrew-574a364940b8ebc5d6c04857af9bf1ffa98e4146.tar.bz2 | |
libav 11.2
Add more meaningful test and fix 'brew audit --strict' errors
Closes #36225.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libav.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Formula/libav.rb b/Library/Formula/libav.rb index 4c488aa95..e07b98b80 100644 --- a/Library/Formula/libav.rb +++ b/Library/Formula/libav.rb @@ -1,9 +1,7 @@ -require "formula" - class Libav < Formula homepage "https://libav.org/" - url "https://libav.org/releases/libav-11.1.tar.xz" - sha1 "4cd3337c6c67481b7165c9c618f1fcf6998942ce" + url "https://libav.org/releases/libav-11.2.tar.xz" + sha1 "52ba52cabe5d86b45ce62f56e11fa7912c6e5083" head "git://git.libav.org/libav.git" @@ -18,7 +16,7 @@ class Libav < Formula option "without-x264", "Disable H.264 encoder via x264" option "without-xvid", "Disable Xvid MPEG-4 video encoder via xvid" - option "with-opencore-amr", "Enable AMR-NB de/encoding and AMR-WB decoding " + + option "with-opencore-amr", "Enable AMR-NB de/encoding and AMR-WB decoding " \ "via libopencore-amrnb and libopencore-amrwb" option "with-openjpeg", "Enable JPEG 2000 de/encoding via OpenJPEG" option "with-openssl", "Enable SSL support" @@ -70,7 +68,7 @@ class Libav < Formula "--enable-vda", "--cc=#{ENV.cc}", "--host-cflags=#{ENV.cflags}", - "--host-ldflags=#{ENV.ldflags}" + "--host-ldflags=#{ENV.ldflags}", ] args << "--enable-frei0r" if build.with? "frei0r" @@ -107,6 +105,9 @@ class Libav < Formula end test do - system "#{bin}/avconv -h" + # Create an example mp4 file + system "#{bin}/avconv", "-y", "-filter_complex", + "testsrc=rate=1:duration=1", "#{testpath}/video.mp4" + assert (testpath/"video.mp4").exist? end end |
