aa2c56177d
Closes Homebrew/homebrew#15923. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
34 lines
995 B
Ruby
34 lines
995 B
Ruby
require 'formula'
|
|
|
|
class Gnutls < Formula
|
|
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
|
|
url 'http://ftpmirror.gnu.org/gnutls/gnutls-3.1.3.tar.xz'
|
|
mirror 'http://ftp.gnu.org/gnu/gnutls/gnutls-3.1.3.tar.xz'
|
|
sha256 'fcb236c663489d3dba5a3f41486810f3889eb4508403ebeeb58b79f0b34bce39'
|
|
|
|
depends_on 'xz' => :build
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libtasn1'
|
|
depends_on 'p11-kit'
|
|
depends_on 'nettle'
|
|
depends_on 'gmp'
|
|
|
|
fails_with :llvm do
|
|
build 2326
|
|
cause "Undefined symbols when linking"
|
|
end
|
|
|
|
def install
|
|
ENV.append 'LDFLAGS', '-ltasn1' # find external libtasn1
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-guile",
|
|
"--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
|