homebrew-core/Formula/gnutls.rb
Jack Nagel b13bb3470c Remove outdated comments in old wine deps
Wine no longer uses these, so the comments are outdated. Continue to
build universal by default, though, to support legacy installs.
Eventually they can grow universal options or just build native-only
after a sufficient period of time.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 16:46:35 -05:00

35 lines
1 KiB
Ruby

require 'formula'
class Gnutls < Formula
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
url 'http://ftpmirror.gnu.org/gnutls/gnutls-2.12.20.tar.bz2'
mirror 'http://ftp.gnu.org/gnu/gnutls/gnutls-2.12.20.tar.bz2'
sha256 '4884eafcc8383ed23209199bbc72ad04f4eb94955a50a594125ff34c6889c564'
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.universal_binary
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