2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gnutls < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
|
2012-11-27 20:33:05 +00:00
|
|
|
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'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2012-11-08 18:21:53 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-08-17 18:12:23 +00:00
|
|
|
depends_on 'libtasn1'
|
|
|
|
depends_on 'p11-kit'
|
2012-11-08 18:21:53 +00:00
|
|
|
depends_on 'nettle'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Undefined symbols when linking"
|
|
|
|
end
|
2010-12-29 04:53:48 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2012-11-08 18:21:53 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-04-10 20:22:49 +00:00
|
|
|
"--disable-static",
|
2012-11-08 18:21:53 +00:00
|
|
|
"--prefix=#{prefix}"
|
2009-09-09 14:11:58 +00:00
|
|
|
system "make install"
|
2011-10-12 01:05:53 +00:00
|
|
|
|
2011-10-12 01:23:04 +00:00
|
|
|
# certtool shadows the OS X certtool utility
|
2011-10-12 01:05:53 +00:00
|
|
|
mv bin+'certtool', bin+'gnutls-certtool'
|
2011-10-12 01:23:04 +00:00
|
|
|
mv man1+'certtool.1', man1+'gnutls-certtool.1'
|
2009-09-09 14:11:58 +00:00
|
|
|
end
|
|
|
|
end
|