2014-11-23 19:31:23 +00:00
|
|
|
class Gifify < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Turn movies into GIFs"
|
2014-11-23 19:31:23 +00:00
|
|
|
homepage "https://github.com/jclem/gifify"
|
2016-04-20 19:49:56 +00:00
|
|
|
url "https://github.com/jclem/gifify/archive/v4.0.tar.gz"
|
|
|
|
sha256 "4cb967e8d0ba897bc91a60006e34299687f388dd47e05fd534f2eff8379fe479"
|
2015-10-23 11:05:05 +00:00
|
|
|
head "https://github.com/jclem/gifify.git"
|
|
|
|
|
|
|
|
bottle :unneeded
|
2014-11-23 19:31:23 +00:00
|
|
|
|
|
|
|
depends_on "ffmpeg"
|
|
|
|
depends_on "imagemagick"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "gifify.sh" => "gifify"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "ffmpeg", "-f", "lavfi", "-i", "testsrc", "-t", "1", "-c:v", "libx264", "test.m4v"
|
2016-04-20 19:49:56 +00:00
|
|
|
system "#{bin}/gifify", "test.m4v"
|
2014-11-23 19:31:23 +00:00
|
|
|
end
|
|
|
|
end
|