aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/emacs.rb7
1 files changed, 7 insertions, 0 deletions
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"