homebrew-core/Formula/gifsicle.rb
2019-10-06 22:38:56 +02:00

40 lines
1.2 KiB
Ruby

class Gifsicle < Formula
desc "GIF image/animation creator/editor"
homepage "https://www.lcdf.org/gifsicle/"
url "https://www.lcdf.org/gifsicle/gifsicle-1.92.tar.gz"
sha256 "5ab556c01d65fddf980749e3ccf50b7fd40de738b6df679999294cc5fabfce65"
bottle do
cellar :any_skip_relocation
sha256 "5c39ab6736846e30082db190167bc498e78d03e523f642057eadc29f854c71b1" => :catalina
sha256 "52be1cd49246909777199147dcbbeb6f490580558615138ae063b6149cfbe53c" => :mojave
sha256 "a7cfb607906023c5bdb56a49f8a75ce0b3e2c76a971266bb530d04ed29be74f9" => :high_sierra
sha256 "746d071f268950c6af18704590b981f5f965d35e2adf6c202aa3df0f13e943e9" => :sierra
end
head do
url "https://github.com/kohler/gifsicle.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
conflicts_with "giflossy",
:because => "both install an `gifsicle` binary"
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--disable-gifview
]
system "./bootstrap.sh" if build.head?
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/gifsicle", "--info", test_fixtures("test.gif")
end
end