diff options
| author | Steve Erhart | 2013-07-28 11:47:43 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-19 22:55:17 -0700 |
| commit | b0746f6e5dd6538052f3a2d5483073921d4436c4 (patch) | |
| tree | 59fedf754a692ecb9fb8bd66ad9b103acff29b00 /Library/Formula | |
| parent | b30687d0a89ab5a68313741eaf6067c061fb703a (diff) | |
| download | homebrew-b0746f6e5dd6538052f3a2d5483073921d4436c4.tar.bz2 | |
gnutls: added the option to build with guile bindings
There is also a patch to fix the configure script
which has an incorect name for the
--with-guile-site-dir option. I've submitted a patch
to gnutls and has been accepted and this will probably
be able to be removed on the next release.
see: http://lists.gnutls.org/pipermail/gnutls-devel/2013-July/006390.html
Closes #21500.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gnutls.rb | 50 |
1 files changed, 47 insertions, 3 deletions
diff --git a/Library/Formula/gnutls.rb b/Library/Formula/gnutls.rb index 18f12e01c..e766daa55 100644 --- a/Library/Formula/gnutls.rb +++ b/Library/Formula/gnutls.rb @@ -10,16 +10,33 @@ class Gnutls < Formula 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 - system "./configure", "--disable-dependency-tracking", - "--disable-static", - "--prefix=#{prefix}" + 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 @@ -27,3 +44,30 @@ class Gnutls < Formula 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 + + + |
