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"
|
2015-10-13 23:39:41 +00:00
|
|
|
homepage "https://www.lcdf.org/gifsicle/"
|
2015-10-12 21:38:47 +00:00
|
|
|
url "https://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz"
|
2015-07-03 10:22:34 +00:00
|
|
|
sha256 "4585d2e683d7f68eb8fcb15504732d71d7ede48ab5963e61915201f9e68305be"
|
2015-01-13 09:27:35 +00:00
|
|
|
|
2015-01-13 09:49:37 +00:00
|
|
|
bottle do
|
2015-09-22 11:50:25 +00:00
|
|
|
cellar :any_skip_relocation
|
2015-10-14 07:31:45 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "2d40a7dc8d0f2a39134872a99ab8e8c3f5e5dc6381826abdd8d4f89c3fe287d0" => :el_capitan
|
|
|
|
sha256 "f4699986ab815c25764b4c7049fc067d6209922bcfd8b841bb19f2ae41c66f8d" => :yosemite
|
|
|
|
sha256 "29af107b09e41c0e40a10411565345cb636e724cd28e9d2f4e58c5dc0dd819c9" => :mavericks
|
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
|