# 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.12.tar.xz" mirror "http://mirrors.dotsrc.org/gcrypt/gnutls/v3.3/gnutls-3.3.12.tar.xz" sha256 "67ab3e92c5d48f3323b897d7c1aa0bb2af6f3a84f5bd9931cda163a7ff32299b" bottle do cellar :any sha1 "cc94413cf3656369fa96a37b1cb91b082ff55238" => :yosemite sha1 "1e599b81711d1989764a20c24ac4e777cfad575d" => :mavericks sha1 "b3c5f03e351c0d0812807c5ebc455fa48bb3bb6c" => :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