homebrew-core/Formula/libidn.rb
Brett Koonce 032ab48e3f libidn 1.28
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-12 20:30:59 -07:00

24 lines
647 B
Ruby

require 'formula'
class Libidn < Formula
homepage 'http://www.gnu.org/software/libidn/'
url 'http://ftpmirror.gnu.org/libidn/libidn-1.28.tar.gz'
mirror 'http://ftp.gnu.org/gnu/libidn/libidn-1.28.tar.gz'
sha256 'dd357a968449abc97c7e5fa088a4a384de57cb36564f9d4e0d898ecc6373abfb'
depends_on 'pkg-config' => :build
option :universal
def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-csharp"
system "make install"
end
def test
system "#{bin}/idn", "--version"
end
end