-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
1 changed file
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |