Skip to content

Commit

Permalink
ffmpegthumbnailer 2.0.10
Browse files Browse the repository at this point in the history
* New upstream version
* Home moved from Google Code to GitHub
* Extra build deps (automake, autoconf, libtool) now required; look
  for upstream to replace this all with CMake in the future
* Add test
* Other changes for `brew audit --strict`

Closes Homebrew/legacy-homebrew#41765.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
L2G authored and dunn committed Jul 17, 2015
1 parent 79f39ad commit fb22a07
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions Formula/ffmpegthumbnailer.rb
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
require 'formula'

class Ffmpegthumbnailer < Formula
desc "Create thumbnails for your video files"
homepage 'http://code.google.com/p/ffmpegthumbnailer/'
url 'https://ffmpegthumbnailer.googlecode.com/files/ffmpegthumbnailer-2.0.8.tar.gz'
sha1 '2c54ca16efd953f46547e22799cfc40bd9c24533'
homepage "https://github.com/dirkvdb/ffmpegthumbnailer"
url "https://github.com/dirkvdb/ffmpegthumbnailer/archive/2.0.10.tar.gz"
sha256 "68125d98d72347a676ab2f9bc93ddd3537ff39d6a81145e2a58a6de5d3958e4e"

bottle do
cellar :any
sha1 "b33cd322e1dd892c3ff492647a9d7fc4b8766388" => :mavericks
sha1 "18607817d97b20f2fa3a886ac472f3b63e6cb62d" => :mountain_lion
sha1 "052f2227429e215db559dcbddb2cdca838111d59" => :lion
end

revision 2

depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'libpng'
depends_on 'ffmpeg'
# Look for upstream to replace the GNU build process with CMake in the future
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "jpeg"
depends_on "libpng"
depends_on "ffmpeg"

def install
system "./autogen.sh"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
system "make", "install"
end

test do
system "#{bin}/ffmpegthumbnailer", "-i", test_fixtures("test.jpg"),
"-o", "out.jpg"
assert File.exist?(testpath/"out.jpg")
end
end

0 comments on commit fb22a07

Please sign in to comment.