From c59ad3aa2b01ea7736eab0525b32c575346e7e47 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Sun, 26 May 2013 14:21:45 +0200 Subject: emacs: build with libxml and optionally GnuTLS Closes #20070. Signed-off-by: Adam Vandenberg --- Library/Formula/emacs.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index c9b236329..f2afe7b75 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -22,7 +22,9 @@ class Emacs < Formula depends_on :autoconf depends_on :automake end + depends_on 'pkg-config' => :build depends_on :x11 if build.include? "with-x" + depends_on 'gnutls' => :optional fails_with :llvm do build 2334 @@ -47,6 +49,11 @@ class Emacs < Formula "--without-dbus", "--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp", "--infodir=#{info}/emacs"] + if build.with? 'gnutls' + args << '--with-gnutls' + else + args << '--without-gnutls' + end # See: https://github.com/mxcl/homebrew/issues/4852 if build.head? and File.exists? "./autogen/copy_autogen" -- cgit v1.2.3