ec62621ef7
Closes Homebrew/homebrew#33288. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
82 lines
2.2 KiB
Ruby
82 lines
2.2 KiB
Ruby
require "formula"
|
|
|
|
# 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.9.tar.xz"
|
|
mirror "http://mirrors.dotsrc.org/gcrypt/gnutls/v3.3/gnutls-3.3.9.tar.xz"
|
|
sha256 "39166de5293a9d30ef1cd0a4d97f01fdeed7d7dbf8db95392e309256edcb13c1"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "d040d5a242185d6ecfa9ddafb3e756b484666c5c" => :yosemite
|
|
sha1 "123f5b72837690546cdb2104d9a47b23f905f7b0" => :mavericks
|
|
sha1 "b4fc1dcbc3a7a2407c629671b5ca83cc37262dff" => :mountain_lion
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "xz"
|
|
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
|
|
|
|
# Fix use of stdnoreturn header on Lion
|
|
# https://www.gitorious.org/gnutls/gnutls/commit/9d2a2d17c0e483f056f98084955fba82b166bd56
|
|
patch :DATA
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--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
|
|
end
|
|
|
|
__END__
|
|
--- a/src/libopts/autoopts.h
|
|
+++ b/src/libopts/autoopts.h
|
|
@@ -32,7 +32,14 @@
|
|
|
|
#ifndef AUTOGEN_AUTOOPTS_H
|
|
#define AUTOGEN_AUTOOPTS_H
|
|
-#include <stdnoreturn.h>
|
|
+
|
|
+#ifdef HAVE_STDNORETURN_H
|
|
+# include <stdnoreturn.h>
|
|
+#else
|
|
+# ifndef noreturn
|
|
+# define noreturn
|
|
+# endif
|
|
+#endif
|
|
|
|
#define AO_NAME_LIMIT 127
|
|
#define AO_NAME_SIZE ((size_t)(AO_NAME_LIMIT + 1))
|