2011-03-10 05:11:03 +00:00
|
|
|
class Giflib < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GIF library using patented LZW algorithm"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://giflib.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/giflib/giflib-4.x/giflib-4.2.3.tar.bz2"
|
|
|
|
sha256 "0ac8d56726f77c8bc9648c93bbb4d6185d32b15ba7bdb702415990f96f3cb766"
|
2009-11-05 23:16:31 +00:00
|
|
|
|
2014-04-01 15:44:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-14 03:21:44 +00:00
|
|
|
revision 1
|
2015-09-14 07:08:00 +00:00
|
|
|
sha256 "2abbeb99b0dec772fa020ec4cecd0df512813a223ab3e32bc760180367af4138" => :el_capitan
|
2015-08-14 03:21:44 +00:00
|
|
|
sha256 "3180706f4a94e7ede8c66299474ada34165b2947c262316186e424b1b9d25aba" => :yosemite
|
|
|
|
sha256 "74316a4dd9b94ca052b6f784c9764764d0b24dd8dc1f3f29b5681a374989979a" => :mavericks
|
|
|
|
sha256 "76953a4ac103ff0931f2e4f70dafe9283c9289de2dda7f800e8ca3b47b6830db" => :mountain_lion
|
2014-04-01 15:44:33 +00:00
|
|
|
end
|
|
|
|
|
2014-01-30 09:21:23 +00:00
|
|
|
option :universal
|
|
|
|
|
2015-08-13 23:57:59 +00:00
|
|
|
depends_on :x11 => :optional
|
|
|
|
|
2009-11-05 23:16:31 +00:00
|
|
|
def install
|
2014-01-30 09:21:23 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2015-08-13 23:57:59 +00:00
|
|
|
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-dependency-tracking
|
|
|
|
]
|
|
|
|
|
|
|
|
if build.without? "x11"
|
|
|
|
args << "--disable-x11" << "--without-x"
|
|
|
|
else
|
|
|
|
args << "--with-x" << "--enable-x11"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-11-05 23:16:31 +00:00
|
|
|
end
|
2015-08-13 23:57:59 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /Size: 1x1/, shell_output("#{bin}/gifinfo #{test_fixtures("test.gif")}")
|
|
|
|
end
|
2009-11-05 23:16:31 +00:00
|
|
|
end
|