giflib 5.1.4
This commit is contained in:
parent
a27453554f
commit
398db6a732
1 changed files with 8 additions and 28 deletions
|
@ -1,42 +1,22 @@
|
|||
# Please check & build every `brew uses giflib` locally prior to
|
||||
# submitting 5.x.x. Many formulae requiring giflib haven't
|
||||
# updated to use 5.x.x yet.
|
||||
# Can `brew install homebrew/versions/giflib5` for now.
|
||||
class Giflib < Formula
|
||||
desc "GIF library using patented LZW algorithm"
|
||||
desc "Library and utilities for processing GIFs"
|
||||
homepage "https://giflib.sourceforge.io/"
|
||||
url "https://downloads.sourceforge.net/project/giflib/giflib-4.x/giflib-4.2.3.tar.bz2"
|
||||
sha256 "0ac8d56726f77c8bc9648c93bbb4d6185d32b15ba7bdb702415990f96f3cb766"
|
||||
url "https://downloads.sourceforge.net/project/giflib/giflib-5.1.4.tar.bz2"
|
||||
sha256 "df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
rebuild 1
|
||||
sha256 "ec490b9508f82db67963575a91a8079ea0a3f05a65aae0ac12e0efe6005f56e1" => :sierra
|
||||
sha256 "2abbeb99b0dec772fa020ec4cecd0df512813a223ab3e32bc760180367af4138" => :el_capitan
|
||||
sha256 "3180706f4a94e7ede8c66299474ada34165b2947c262316186e424b1b9d25aba" => :yosemite
|
||||
sha256 "74316a4dd9b94ca052b6f784c9764764d0b24dd8dc1f3f29b5681a374989979a" => :mavericks
|
||||
sha256 "76953a4ac103ff0931f2e4f70dafe9283c9289de2dda7f800e8ca3b47b6830db" => :mountain_lion
|
||||
sha256 "0c3bdbd8d9ac59a9c3ba36cf03de74ec83188ca13b2ff04b7c3a3edf2d9aa766" => :sierra
|
||||
sha256 "867ce9ecf58dc68878d61707d94dabbbb43283407be6f8df6df2bbafc45fcaeb" => :el_capitan
|
||||
sha256 "fc867b26db799a8fb35a228cea8a0beb08d859838aaec197139ccd757178f320" => :yosemite
|
||||
end
|
||||
|
||||
depends_on :x11 => :optional
|
||||
|
||||
def install
|
||||
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 "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match /Size: 1x1/, shell_output("#{bin}/gifinfo #{test_fixtures("test.gif")}")
|
||||
assert_match /Screen Size - Width = 1, Height = 1/, shell_output("#{bin}/giftext #{test_fixtures("test.gif")}")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue