blob: 32c3b57c08e2d21655cc121518eb16f1885f54ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  | 
require "formula"
class Libidn < Formula
  homepage "http://www.gnu.org/software/libidn/"
  url "http://ftpmirror.gnu.org/libidn/libidn-1.29.tar.gz"
  mirror "http://ftp.gnu.org/gnu/libidn/libidn-1.29.tar.gz"
  sha256 "fb82747dbbf9b36f703ed27293317d818d7e851d4f5773dedf3efa4db32a7c7c"
  bottle do
    cellar :any
    revision 1
    sha1 "ee3fa3bc8ab104553777ed22dc080178bf264bd0" => :yosemite
    sha1 "9343d41b0a0ea4f1dd895eafa2f893e133f8cf76" => :mavericks
    sha1 "35fd90e1199a09fb4d5f85ad0088858279ea002f" => :mountain_lion
  end
  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
  test do
    system "#{bin}/idn", "--version"
  end
end
  |