31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class IsoCodes < Formula
|
|
desc "Provides lists of various ISO standards"
|
|
homepage "https://pkg-isocodes.alioth.debian.org/"
|
|
url "https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-3.76.tar.xz"
|
|
sha256 "38ea8c1de7c07d5b4c9603ec65c238c155992a2e2ab0b02725d0926d1ad480c4"
|
|
head "https://anonscm.debian.org/git/pkg-isocodes/iso-codes.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "cf2342758515ec89d0adfebe2002e883647c90d547fa8ae3bb11747e6e069930" => :high_sierra
|
|
sha256 "c7c14487c502aff6a72e75c6031b7a9a09501db5750ed1863fa882df46413641" => :sierra
|
|
sha256 "c7c14487c502aff6a72e75c6031b7a9a09501db5750ed1863fa882df46413641" => :el_capitan
|
|
end
|
|
|
|
depends_on "gettext" => :build
|
|
depends_on :python3
|
|
depends_on "pkg-config" => :run
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "check"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
pkg_config = Formula["pkg-config"].opt_bin/"pkg-config"
|
|
output = shell_output("#{pkg_config} --variable=domains iso-codes")
|
|
assert_match "iso_639-2 iso_639-3 iso_639-5 iso_3166-1", output
|
|
end
|
|
end
|