blob: dedad79c98b86ac4bee059fda95efd67d70f0746 (
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
  | 
require 'formula'
class Gnutls < Formula
  homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
  url 'http://ftpmirror.gnu.org/gnutls/gnutls-3.1.5.tar.xz'
  mirror 'http://ftp.gnu.org/gnu/gnutls/gnutls-3.1.5.tar.xz'
  sha256 '2f095984dd9cbbf4dce417ecd81640fe47732322d025062b2c9a189d022de0d3'
  depends_on 'xz' => :build
  depends_on 'pkg-config' => :build
  depends_on 'libtasn1'
  depends_on 'p11-kit'
  depends_on 'nettle'
  fails_with :llvm do
    build 2326
    cause "Undefined symbols when linking"
  end
  def install
    system "./configure", "--disable-dependency-tracking",
                          "--disable-static",
                          "--prefix=#{prefix}"
    system "make install"
    # certtool shadows the OS X certtool utility
    mv bin+'certtool', bin+'gnutls-certtool'
    mv man1+'certtool.1', man1+'gnutls-certtool.1'
  end
end
  |