homebrew-core/Formula/iso-codes.rb
2017-11-23 00:05:13 -08:00

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.77.tar.xz"
sha256 "21cd73a4c6f95d9474ebfcffd4e065223857720f24858e564f4409b19f7f0d90"
head "https://anonscm.debian.org/git/pkg-isocodes/iso-codes.git"
bottle do
cellar :any_skip_relocation
sha256 "49804c891288e8db4c46fa9f777b2538db119794433456950e8a24bbd207fcf1" => :high_sierra
sha256 "49804c891288e8db4c46fa9f777b2538db119794433456950e8a24bbd207fcf1" => :sierra
sha256 "49804c891288e8db4c46fa9f777b2538db119794433456950e8a24bbd207fcf1" => :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