diff options
| author | Adam Vandenberg | 2013-01-20 19:44:45 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-20 20:14:08 -0800 |
| commit | 637953a3accd791e7b2d4012fc6e358cd0ee0d0b (patch) | |
| tree | be655b1a5b66bcbfd73652c25e571b61e1885406 | |
| parent | 3e30f3110976772d92890ec31b76235bf31ad45c (diff) | |
| download | homebrew-637953a3accd791e7b2d4012fc6e358cd0ee0d0b.tar.bz2 | |
GnuTLS2 2.12.21
Adding GnuTLS 2.x
GnuTLS 3.x changed the API slightly, but also changes license terms,
so it is unlikely that some software will update to newer versions.
Closes #17109.
| -rw-r--r-- | Library/Formula/gnutls2.rb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/gnutls2.rb b/Library/Formula/gnutls2.rb new file mode 100644 index 000000000..8184fd82d --- /dev/null +++ b/Library/Formula/gnutls2.rb @@ -0,0 +1,38 @@ +require 'formula' + +# Gnutls3 changes the API, but also changes the license, which makes it +# unlikely for many projects to update. +class Gnutls2 < Formula + homepage 'http://www.gnu.org/software/gnutls/gnutls.html' + url 'http://ftpmirror.gnu.org/gnutls/gnutls-2.12.21.tar.bz2' + mirror 'http://ftp.gnu.org/gnu/gnutls/gnutls-2.12.21.tar.bz2' + sha256 '2bd020665951f38a230d6b6d98630f8c47ca6977d7d86977d356ccf17756fbf3' + + keg_only "GnuTLS 2 is provided for software that doesn't compile against newer versions." + + depends_on 'pkg-config' => :build + depends_on 'libgcrypt' + depends_on 'libtasn1' + depends_on 'p11-kit' + + fails_with :llvm do + build 2326 + cause "Undefined symbols when linking" + end + + def install + ENV.append 'LDFLAGS', '-ltasn1' # find external libtasn1 + + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-guile", + "--disable-static", + "--prefix=#{prefix}", + "--with-libgcrypt" + 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 +end |
