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.11.0.orig.tar.xz"
sha256 "de556503c7cfd33e08b5c1ced4902e82bb3c5137a076930a9c9da687d9146938"
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: "695036b6f74cb6fb4aaa750be44edb5deb0232d7cf33d8402e0e83a154d0b7b4"
end
depends_on "gettext" => :build
depends_on "python@3.10" => :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