2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2014-07-03 04:23:20 +00:00
|
|
|
# GnuTLS has previous, current, and next stable branches, we use current.
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gnutls < Formula
|
2013-01-05 16:14:59 +00:00
|
|
|
homepage 'http://gnutls.org'
|
2014-05-30 18:35:40 +00:00
|
|
|
url 'ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.15.tar.xz'
|
|
|
|
mirror 'http://mirrors.dotsrc.org/gcrypt/gnutls/v3.2/gnutls-3.2.15.tar.xz'
|
|
|
|
sha1 '31f289b48b0bf054f5f8c16d3b878615d0ae06fc'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2014-02-22 15:39:17 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-05-30 18:41:21 +00:00
|
|
|
sha1 "4a8c788feb8f69e63e3f8f47775f686d6d1639cb" => :mavericks
|
|
|
|
sha1 "5e5a0456d7e985398b9e3c50f027f049737cc511" => :mountain_lion
|
|
|
|
sha1 "da2aa8a5e307546f774e1d704fb61c2d55fd9ef6" => :lion
|
2014-02-22 15:39:17 +00:00
|
|
|
end
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-08-17 18:12:23 +00:00
|
|
|
depends_on 'libtasn1'
|
2014-04-15 03:10:34 +00:00
|
|
|
depends_on 'gmp'
|
2012-11-08 18:21:53 +00:00
|
|
|
depends_on 'nettle'
|
2013-07-28 15:47:43 +00:00
|
|
|
depends_on 'guile' => :optional
|
2014-04-15 03:10:34 +00:00
|
|
|
depends_on 'p11-kit' => :optional
|
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
|
2013-07-28 15:47:43 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-static
|
|
|
|
--prefix=#{prefix}
|
2014-04-14 23:33:16 +00:00
|
|
|
--sysconfdir=#{etc}
|
2014-04-14 23:44:57 +00:00
|
|
|
--with-default-trust-store-file=#{etc}/openssl/cert.pem
|
2013-07-28 15:47:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if build.with? 'guile'
|
|
|
|
args << '--enable-guile'
|
|
|
|
args << '--with-guile-site-dir=no'
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
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
|
2014-04-14 23:44:57 +00:00
|
|
|
|
|
|
|
def post_install
|
|
|
|
Formula["openssl"].post_install
|
|
|
|
end
|
2009-09-09 14:11:58 +00:00
|
|
|
end
|