# 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.13.tar.xz" mirror "http://mirrors.dotsrc.org/gcrypt/gnutls/v3.3/gnutls-3.3.13.tar.xz" sha256 "91bf1ef5c159b7f2176f972184545b287af6507ab55a543f6007d31406b97a99" bottle do cellar :any sha1 "6a05ad1be769f2f5de246941c5ece9917208f262" => :yosemite sha1 "ba78f8cde13376cf49e8b8827ae07b26313f861e" => :mavericks sha1 "fbb882e9d3dec27e18d306dc4a4438ff4b023e5f" => :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