homebrew-core/Formula/gifsicle.rb
Stian Eikeland 3366e0435c gifsicle 1.86
Closes Homebrew/homebrew#33307.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-19 01:59:09 -05:00

27 lines
573 B
Ruby

require "formula"
class Gifsicle < Formula
homepage "http://www.lcdf.org/gifsicle/"
url "http://www.lcdf.org/gifsicle/gifsicle-1.86.tar.gz"
sha1 "517e68b781594851750d7d807e25bd18b1f5dbc4"
option "with-x11", "Install gifview"
depends_on :x11 => :optional
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--disable-gifview" if build.without? "x11"
system "./configure", *args
system "make install"
end
test do
system "#{bin}/gifsicle", "--info", test_fixtures("test.gif")
end
end