Files

38 lines
1.3 KiB
Ruby

class Giflib < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any, arm64_sequoia: "87a14dfa72601220313c1190505c7a4d0426b384a6a2d1ba3c5a36bdc784d1b0"
sha256 cellar: :any, arm64_tahoe: "bef1f5fb654184cce8af628e3a0c222eeab3c61fcaa4ff169974b22c22f01a8c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e349e61810df032b3fff5eaac4f0db46dcc66580a070b5640a60482d6779bf64"
end
desc "Library and utilities for processing GIFs"
homepage "https://giflib.sourceforge.net/"
url "https://downloads.sourceforge.net/project/giflib/giflib-6.x/giflib-6.1.3.tar.gz"
sha256 "b65b66b99f0424b93525f987386f22fc5efb9da2bfc92ad4a532249aaffbab0e"
license "MIT"
compatibility_version 1
livecheck do
url :stable
regex(%r{url=.*?/giflib[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
def install
args = ["PREFIX=#{prefix}"]
# Manually skipping shared libutil due to https://sourceforge.net/p/giflib/bugs/189/.
# It is currently unused (binaries link to libutil.a) and not installed.
args << "LIBUTILSO=" if OS.mac?
system "make", "all", *args
ENV.deparallelize # avoid parallel mkdir
system "make", "install", *args
end
test do
output = shell_output("#{bin}/giftext #{test_fixtures("test.gif")}")
assert_match "Screen Size - Width = 1, Height = 1", output
end
end