homebrew-core/Formula/libidn.rb
Jack Nagel a44cddda23 libidn: build universal
libidn is a dependency of the GnuTLS 3.x series, and even though we
probably won't move to 3.x anytime soon, it's good to get the
dependencies up to snuff and work out any problems that might arise.

I also added a test of the executable while I was here.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10 21:27:36 -06:00

21 lines
543 B
Ruby

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