homebrew-core/Formula/iso-codes.rb

27 lines
874 B
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.7.0.orig.tar.xz"
sha256 "bdfd06cdd77d73d491dcd57d6c946cb95a939f19f7ffc6a31f2f93923412219b"
license "LGPL-2.1-or-later"
head "https://salsa.debian.org/iso-codes-team/iso-codes.git"
bottle do
sha256 cellar: :any_skip_relocation, all: "e73500953641acc8108dac1d15b3929b48c50f91140387af201a126581cbd05d"
end
depends_on "gettext" => :build
depends_on "python@3.9" => :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