iso-codes: fix dependencies and test

This commit is contained in:
Tom Schoonjans 2019-01-16 11:42:57 +05:30 committed by FX Coudert
parent f71294b4ca
commit 95fc5b6b78

View file

@ -3,18 +3,11 @@ class IsoCodes < Formula
homepage "https://salsa.debian.org/iso-codes-team/iso-codes"
url "https://deb.debian.org/debian/pool/main/i/iso-codes/iso-codes_4.2.orig.tar.xz"
sha256 "2b7f66c81808ac52e1ed0efe4ce8ae8e43309eedcc411f94f71a3f603cc21f42"
revision 1
head "https://salsa.debian.org/iso-codes-team/iso-codes.git"
bottle do
cellar :any_skip_relocation
sha256 "5794f777543492894617f8f4b8ab0d38049a5c2685bd858e62a485cdf681cc29" => :mojave
sha256 "17b7b4a43e707d1fce551eef2b31a22ec1a94d8580bce165bdeeaa3f08ce4ccd" => :high_sierra
sha256 "17b7b4a43e707d1fce551eef2b31a22ec1a94d8580bce165bdeeaa3f08ce4ccd" => :sierra
end
depends_on "gettext" => :build
depends_on "pkg-config"
depends_on "python"
depends_on "python" => :build
def install
system "./configure", "--prefix=#{prefix}"
@ -24,8 +17,7 @@ class IsoCodes < Formula
end
test do
pkg_config = Formula["pkg-config"].opt_bin/"pkg-config"
output = shell_output("#{pkg_config} --variable=domains iso-codes")
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