homebrew-core/Formula/giflib.rb

42 lines
1.2 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Giflib < Formula
desc "GIF library using patented LZW algorithm"
homepage "http://giflib.sourceforge.net/"
url "https://downloads.sourceforge.net/project/giflib/giflib-4.x/giflib-4.2.3.tar.bz2"
sha256 "0ac8d56726f77c8bc9648c93bbb4d6185d32b15ba7bdb702415990f96f3cb766"
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
option :universal
depends_on :x11 => :optional
def install
ENV.universal_binary if build.universal?
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
system "make", "install"
end
test do
assert_match /Size: 1x1/, shell_output("#{bin}/gifinfo #{test_fixtures("test.gif")}")
end
end