/
icoutils.rb
49 lines (41 loc) 路 2.05 KB
/
icoutils.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class Icoutils < Formula
desc "Create and extract MS Windows icons and cursors"
homepage "https://www.nongnu.org/icoutils/"
url "https://savannah.nongnu.org/download/icoutils/icoutils-0.32.3.tar.bz2"
sha256 "17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0"
license "GPL-3.0"
livecheck do
url "https://download.savannah.gnu.org/releases/icoutils/"
regex(/href=.*?icoutils[._-](\d+(?:\.\d+)+)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any, arm64_sonoma: "273cfd4c47669dcb185b256f41952316faeb9c7f263c86e602b81e5b1d4c9302"
sha256 cellar: :any, arm64_ventura: "6d0b6015b32488d5eadeed7af574b0b07c8071dfaae487a41f5306585eb8510b"
sha256 cellar: :any, arm64_monterey: "cca2c49761f3c0c2c4d8261af392cb156b43d49e99d16af0962584717c1e2ad3"
sha256 cellar: :any, arm64_big_sur: "561bdf394863bd566ebfd0f9f5c5cb084d9eeeeb21c4013dc67f49ca2f382d68"
sha256 cellar: :any, sonoma: "09886292b02d85b40a34e8dfe38379b89455ed50cb0002313f88e022906e4927"
sha256 cellar: :any, ventura: "bc125498f4fb92c602479703be80ef4e1870dd4f74159e1ed0d2fd801179ba75"
sha256 cellar: :any, monterey: "23f46510e0108a2342a83ba36aa2b11346d18a3f5ae29aa238cb249f3e4fa3e8"
sha256 cellar: :any, big_sur: "2f71fa8b1131f534d2d7d674642091a80f61108a376240bd6e19c92d436aecfe"
sha256 x86_64_linux: "4bcbbfe1270c90d060baf5fe79eea7cd07daaae074c110b57e8505eac348cdb8"
end
depends_on "libpng"
on_monterey :or_newer do
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
inreplace "common/Makefile.am", "libcommon_a_LIBADD", "libcommon_la_LIBADD"
# Workaround for Xcode 14 ld.
system "autoreconf", "--force", "--install" if OS.mac? && MacOS.version >= :monterey
system "./configure", "--disable-dependency-tracking",
"--disable-rpath",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system bin/"icotool", "-l", test_fixtures("test.ico")
end
end