2011-03-10 05:11:03 +00:00
|
|
|
class Gifsicle < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GIF image/animation creator/editor"
|
2014-03-27 17:02:36 +00:00
|
|
|
homepage "http://www.lcdf.org/gifsicle/"
|
2015-07-03 10:22:34 +00:00
|
|
|
url "http://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz"
|
|
|
|
sha256 "4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be"
|
2015-01-13 09:27:35 +00:00
|
|
|
|
2015-01-13 09:49:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-03 11:53:36 +00:00
|
|
|
sha256 "7946dca4fc1327add6a1693902ee9eeccb2a370a8ec87ec59f9a466aad8f7947" => :yosemite
|
|
|
|
sha256 "59f5c2fa014c0a1e4c362f136bf01dcf7fb8c3bfaf6bb0839d0a370a18517985" => :mavericks
|
|
|
|
sha256 "9f00374d5fe18ffb90ea2c96df43d440dd41cbb05aa820cb23398e9f4471d56b" => :mountain_lion
|
2015-01-13 09:49:37 +00:00
|
|
|
end
|
|
|
|
|
2015-01-13 09:27:35 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/kohler/gifsicle.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
end
|
2010-05-01 16:07:56 +00:00
|
|
|
|
2015-05-05 11:52:24 +00:00
|
|
|
conflicts_with "giflossy",
|
|
|
|
:because => "both install an `gifsicle` binary"
|
|
|
|
|
2014-10-07 03:55:24 +00:00
|
|
|
option "with-x11", "Install gifview"
|
|
|
|
|
2014-03-27 17:02:36 +00:00
|
|
|
depends_on :x11 => :optional
|
2012-06-07 01:35:12 +00:00
|
|
|
|
2010-05-01 16:07:56 +00:00
|
|
|
def install
|
2014-03-27 17:02:36 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--disable-gifview" if build.without? "x11"
|
|
|
|
|
2015-01-13 09:27:35 +00:00
|
|
|
system "./bootstrap.sh" if build.head?
|
2014-03-27 17:02:36 +00:00
|
|
|
system "./configure", *args
|
2015-01-13 09:27:35 +00:00
|
|
|
system "make", "install"
|
2010-05-01 16:07:56 +00:00
|
|
|
end
|
2014-10-18 13:22:56 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/gifsicle", "--info", test_fixtures("test.gif")
|
|
|
|
end
|
2010-05-01 16:07:56 +00:00
|
|
|
end
|