homebrew-core/Formula/gnutls.rb

48 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gnutls < Formula
homepage 'http://gnutls.org'
2014-03-06 03:30:07 +00:00
url 'ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.12.1.tar.xz'
mirror 'http://mirrors.dotsrc.org/gcrypt/gnutls/v3.2/gnutls-3.2.12.1.tar.xz'
sha1 '5ad26522ec18d6b54a17ff8d1d5b69bf2cd5c7ce'
2014-02-22 15:39:17 +00:00
bottle do
cellar :any
2014-03-06 03:30:07 +00:00
sha1 "63c97291213e9f02872aac775fa8608f9fde8f9d" => :mavericks
sha1 "af89106ed194090f9aabe0a6705f22b63ca24f32" => :mountain_lion
sha1 "76cf541a1736da00417d499b3223b80c0677ed18" => :lion
2014-02-22 15:39:17 +00:00
end
depends_on 'xz' => :build
depends_on 'pkg-config' => :build
depends_on 'libtasn1'
depends_on 'p11-kit' => :optional
depends_on 'nettle'
depends_on 'guile' => :optional
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
2011-03-21 21:24:22 +00:00
def install
args = %W[
--disable-dependency-tracking
--disable-static
--prefix=#{prefix}
]
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
end