homebrew-core/Formula/gnutls.rb

30 lines
938 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gnutls < Formula
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
url 'http://ftpmirror.gnu.org/gnutls/gnutls-2.12.12.tar.bz2'
md5 '29ec03027f0e551301da781f02953160'
depends_on 'pkg-config' => :build
depends_on 'libgcrypt'
depends_on 'libtasn1' => :optional
2011-03-21 21:24:22 +00:00
fails_with_llvm "Undefined symbols when linking", :build => "2326"
2011-03-21 21:24:22 +00:00
def install
ENV.universal_binary # build fat so wine can use it
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--disable-guile",
"--disable-static",
"--prefix=#{prefix}",
"--with-libgcrypt",
"--without-p11-kit"
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