homebrew-core/Formula/iso-codes.rb
2018-09-05 23:13:10 +02:00

33 lines
1.3 KiB
Ruby

class IsoCodes < Formula
desc "Provides lists of various ISO standards"
homepage "https://salsa.debian.org/iso-codes-team/iso-codes"
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/i/iso-codes/iso-codes_4.1.orig.tar.xz"
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/i/iso-codes/iso-codes_4.1.orig.tar.xz"
sha256 "67117fb76f32c8fb5e37d2d60bce238f1f8e865cc7b569a57cbc3017ca15488a"
head "https://salsa.debian.org/iso-codes-team/iso-codes.git"
bottle do
cellar :any_skip_relocation
sha256 "dbff19319e650b2b21b786b6e1910cde017061d4d3b8f94b00536c4ed5b952aa" => :mojave
sha256 "efd955789c4db00603c3f408efe76a1b022481e8a3195a64374367e361f78daa" => :high_sierra
sha256 "efd955789c4db00603c3f408efe76a1b022481e8a3195a64374367e361f78daa" => :sierra
sha256 "efd955789c4db00603c3f408efe76a1b022481e8a3195a64374367e361f78daa" => :el_capitan
end
depends_on "gettext" => :build
depends_on "python"
depends_on "pkg-config"
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