2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 09:50:52 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libidn < Formula
|
2010-02-18 12:09:31 +00:00
|
|
|
homepage 'http://www.gnu.org/software/libidn/'
|
2011-11-28 00:38:31 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/libidn/libidn-1.23.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/libidn/libidn-1.23.tar.gz'
|
2011-11-28 00:38:31 +00:00
|
|
|
sha256 '25b42d75851ebae52e1c969353b74eefd3d6817f41c8d2a6db258f5ec60c5e6a'
|
2009-09-19 09:50:52 +00:00
|
|
|
|
2011-03-30 23:33:40 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2009-09-19 09:50:52 +00:00
|
|
|
def install
|
2011-09-02 22:57:44 +00:00
|
|
|
ENV.universal_binary
|
2010-08-15 22:58:28 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-csharp"
|
2009-09-19 09:50:52 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-09-02 22:57:44 +00:00
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/idn --version"
|
|
|
|
end
|
2009-09-19 09:50:52 +00:00
|
|
|
end
|