forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnutls3.rb
32 lines (27 loc) · 1 KB
/
gnutls3.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'
class Gnutls3 < Formula
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
url 'http://ftpmirror.gnu.org/gnutls/gnutls-3.0.21.tar.xz'
mirror 'http://ftp.gnu.org/gnu/gnutls/gnutls-3.0.21.tar.xz'
sha256 '6901b0203a613869cf475f18d44acd47b36adf714c67d1f9ad29c26ab7bec410'
depends_on 'xz' => :build
depends_on 'pkg-config' => :build
depends_on 'p11-kit'
depends_on 'nettle'
depends_on 'libidn'
depends_on 'gmp'
depends_on 'libtasn1' => :optional
def install
ENV.append 'LDFLAGS', '-ltasn1'
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-guile",
"--disable-static",
"--disable-hardware-acceleration",
"--prefix=#{prefix}"
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