class Libidn < Formula desc "International domain name library" homepage "https://www.gnu.org/software/libidn/" url "https://ftpmirror.gnu.org/libidn/libidn-1.33.tar.gz" mirror "https://ftp.gnu.org/gnu/libidn/libidn-1.33.tar.gz" sha256 "44a7aab635bb721ceef6beecc4d49dfd19478325e1b47f3196f7d2acc4930e19" bottle do cellar :any sha256 "b46b71b9adb991af6a444400a1c3f53d20b8001792855bcf96044ce33eb81d26" => :el_capitan sha256 "f675600e756059cdcd02d92963ff76f43c3b572f4ea9f99657a40e9e80c316b1" => :yosemite sha256 "07e19d25263d77030cccc3899967c4505dcf0c771da90a658b4f27de136a326b" => :mavericks end option :universal depends_on "pkg-config" => :build def install ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-csharp", "--with-lispdir=#{elisp}" system "make", "install" end test do ENV["CHARSET"] = "UTF-8" system bin/"idn", "räksmörgås.se", "blåbærgrød.no" end end