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-or-later" livecheck do url "https://download.savannah.gnu.org/releases/icoutils/" regex(/href=.*?icoutils[._-](\d+(?:\.\d+)+)\.t/i) end no_autobump! because: :requires_manual_review bottle do rebuild 1 sha256 cellar: :any, arm64_tahoe: "5f28e12b6168d398c1b6a45fdd31fbe562734bf4e0bb9b92473326fe3652db3c" sha256 cellar: :any, arm64_sequoia: "1f134eb8d5bfda13e1afd2742d87488abb2bd651f0ec059b6bbea76add8a647f" 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 arm64_linux: "628929761f445827749c377cd6309471d0f4f5e70f3f70b6004d052f3dd8d1d0" 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", "--verbose" if OS.mac? && MacOS.version >= :monterey system "./configure", "--disable-rpath", *std_configure_args system "make", "install" end test do system bin/"icotool", "-l", test_fixtures("test.ico") end end