2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gnutls < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
|
2012-01-17 00:11:58 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gnutls/gnutls-2.12.16.tar.bz2'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/gnutls/gnutls-2.12.16.tar.bz2'
|
|
|
|
md5 '0414bba9760201f27d66787997cbadfb'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'libgcrypt'
|
2010-08-14 11:28:40 +00:00
|
|
|
depends_on 'libtasn1' => :optional
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
fails_with_llvm "Undefined symbols when linking", :build => "2326"
|
2010-12-29 04:53:48 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2012-02-14 03:52:58 +00:00
|
|
|
ENV.universal_binary # build fat so wine can use it
|
2011-12-29 17:32:58 +00:00
|
|
|
ENV.append 'LDFLAGS', '-ltasn1' # find external libtasn1
|
2010-12-29 04:53:48 +00:00
|
|
|
|
2011-11-14 00:54:44 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-04-10 20:22:49 +00:00
|
|
|
"--disable-guile",
|
|
|
|
"--disable-static",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--prefix=#{prefix}",
|
2011-09-19 19:31:48 +00:00
|
|
|
"--with-libgcrypt",
|
|
|
|
"--without-p11-kit"
|
2009-09-09 14:11:58 +00:00
|
|
|
system "make install"
|
2011-10-12 01:05:53 +00:00
|
|
|
|
2011-10-12 01:23:04 +00:00
|
|
|
# certtool shadows the OS X certtool utility
|
2011-10-12 01:05:53 +00:00
|
|
|
mv bin+'certtool', bin+'gnutls-certtool'
|
2011-10-12 01:23:04 +00:00
|
|
|
mv man1+'certtool.1', man1+'gnutls-certtool.1'
|
2009-09-09 14:11:58 +00:00
|
|
|
end
|
|
|
|
end
|