blob: 1df7cabbd9a2409f4c7c1417dcd0046c7e5a5d36 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
require 'formula'
class Gnutls < Formula
homepage 'http://gnutls.org'
url 'ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-3.1.10.tar.xz'
mirror 'http://mirrors.dotsrc.org/gcrypt/gnutls/v3.1/gnutls-3.1.10.tar.xz'
sha1 '1097644b0e58754217c4f9edbdf68e9f7aa7e08d'
depends_on 'xz' => :build
depends_on 'pkg-config' => :build
depends_on 'libtasn1'
depends_on 'p11-kit'
depends_on 'nettle'
depends_on 'guile' => :optional
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def patches
# quick and dirty fix for the incorrect
# --with-guile-site-dir option being generated by configure.ac
# see: http://lists.gnutls.org/pipermail/gnutls-devel/2013-July/006390.html
DATA
end
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
__END__
diff --git a/configure b/configure
index 92c8fdc..1b5293e 100755
--- a/configure
+++ b/configure
@@ -2084,7 +2084,7 @@ with_default_trust_store_pkcs11
with_default_trust_store_file
with_default_crl_file
enable_guile
-with___with_guile_site_dir
+with_guile_site_dir
enable_crywrap
'
ac_precious_vars='build_alias
@@ -56433,8 +56433,8 @@ $as_echo "$opt_guile_bindings" >&6; }
# Check whether --with---with-guile-site-dir was given.
-if test "${with___with_guile_site_dir+set}" = set; then :
- withval=$with___with_guile_site_dir;
+if test "${with_guile_site_dir+set}" = set; then :
+ withval=$with_guile_site_dir;
fi
|