aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSebastian Wiesner2013-05-26 14:21:45 +0200
committerAdam Vandenberg2013-05-30 10:36:28 -0700
commitc59ad3aa2b01ea7736eab0525b32c575346e7e47 (patch)
tree8cf036a0ca8eaea0b43000f5d96079a8bbf8918c /Library
parent3d2e55968e3e59c7350d6e72d45a9f3f61d79b7e (diff)
downloadhomebrew-c59ad3aa2b01ea7736eab0525b32c575346e7e47.tar.bz2
emacs: build with libxml and optionally GnuTLS
Closes #20070. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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"