homebrew-core/Formula/iso-codes.rb

32 lines
1.0 KiB
Ruby

class IsoCodes < Formula
desc "Provides lists of various ISO standards"
homepage "https://salsa.debian.org/iso-codes-team/iso-codes"
url "https://deb.debian.org/debian/pool/main/i/iso-codes/iso-codes_4.12.0.orig.tar.xz"
sha256 "650f050c3553adbf727e5ac74bd52a04ddc6b9f1bac79f1c041c02e581e209ad"
license "LGPL-2.1-or-later"
head "https://salsa.debian.org/iso-codes-team/iso-codes.git", branch: "main"
livecheck do
url "https://deb.debian.org/debian/pool/main/i/iso-codes/"
regex(/href=.*?iso-codes[._-]v?(\d+(?:\.\d+)+)\.orig\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "311799cac0ba1b08e77c279a9cbf6d62e3edfeafb5859082953165d25fab2a7f"
end
depends_on "gettext" => :build
depends_on "python@3.11" => :build
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
output = shell_output("grep domains #{share}/pkgconfig/iso-codes.pc")
assert_match "iso_639-2 iso_639-3 iso_639-5 iso_3166-1", output
end
end