# GnuTLS has previous, current, and next stable branches, we use current. # From 3.4.0 GnuTLS will be permanently disabling SSLv3. Every brew uses will need a revision with that. # http://nmav.gnutls.org/2014/10/what-about-poodle.html class Gnutls < Formula homepage "http://gnutls.org" url "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.11.tar.xz" mirror "http://mirrors.dotsrc.org/gcrypt/gnutls/v3.3/gnutls-3.3.11.tar.xz" sha256 "aef28d629b6ba824bd435f9b23506525e657e3746d4aa021296b13cbaaa6ae71" bottle do cellar :any sha1 "09178a60426edaa938111aa5dcf10f361a8669c5" => :yosemite sha1 "7174f04eaba8478eb4df571fd618ae9dbd0ddaa8" => :mavericks sha1 "d85219bb39f3d025e92d2124acd05f0865d369ae" => :mountain_lion end depends_on "pkg-config" => :build depends_on "libtasn1" depends_on "gmp" depends_on "nettle" depends_on "guile" => :optional depends_on "p11-kit" => :optional depends_on "unbound" => :optional fails_with :llvm do build 2326 cause "Undefined symbols when linking" end def install args = %W[ --disable-dependency-tracking --disable-silent-rules --disable-static --prefix=#{prefix} --sysconfdir=#{etc} --with-default-trust-store-file=#{etc}/openssl/cert.pem --disable-heartbeat-support ] 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 test do system "#{bin}/gnutls-cli", "--version" end end