homebrew-core/Formula/gnutls.rb

54 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gnutls < Formula
homepage 'http://gnutls.org'
2014-04-14 23:56:58 +00:00
url 'ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.13.tar.xz'
mirror 'http://mirrors.dotsrc.org/gcrypt/gnutls/v3.2/gnutls-3.2.13.tar.xz'
sha1 'c4a95902bb67df46e9b2c08d4c10523db94e2736'
2014-02-22 15:39:17 +00:00
bottle do
cellar :any
2014-04-15 00:00:49 +00:00
sha1 "d47f9d4adc2ed860c351edef7729e206b493012d" => :mavericks
sha1 "67dc1e554a4af1b004d1fdb3ae0dad7261cfbbe0" => :mountain_lion
sha1 "75ec84c8ae2f519327e2230f18e7508c33da9add" => :lion
2014-02-22 15:39:17 +00:00
end
depends_on 'pkg-config' => :build
depends_on 'libtasn1'
depends_on 'gmp'
depends_on 'nettle'
depends_on 'guile' => :optional
depends_on 'p11-kit' => :optional
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
2011-03-21 21:24:22 +00:00
def install
args = %W[
--disable-dependency-tracking
--disable-static
--prefix=#{prefix}
2014-04-14 23:33:16 +00:00
--sysconfdir=#{etc}
--with-default-trust-store-file=#{etc}/openssl/cert.pem
]
if build.with? 'guile'
args << '--enable-guile'
args << '--with-guile-site-dir=no'
end
system "./configure", *args
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
def post_install
Formula["openssl"].post_install
end
end