From 6ee907aed2ccff1bfbe37d6ab7aaad224d2424aa Mon Sep 17 00:00:00 2001 From: David Holm Date: Sun, 29 Jun 2014 12:56:13 +0200 Subject: emacs: Optional dependencies (d-bus, glib, librsvg, imagemagick) New optionals: - d-bus for notifications - glib in HEAD (used for file notifications). - librsvg for SVG support - imagemagick for image viewing and manipulation Closes #30515. Signed-off-by: Jack Nagel --- Library/Formula/emacs.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index 385eeaddc..b09e8cb99 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -24,6 +24,7 @@ class Emacs < Formula depends_on :autoconf depends_on :automake + depends_on "glib" => :optional end stable do @@ -58,7 +59,10 @@ class Emacs < Formula depends_on 'pkg-config' => :build depends_on :x11 if build.with? "x" + depends_on "d-bus" => :optional depends_on 'gnutls' => :optional + depends_on "librsvg" => :optional + depends_on "imagemagick" => :optional fails_with :llvm do build 2334 @@ -79,14 +83,21 @@ class Emacs < Formula ENV.deparallelize if build.head? args = ["--prefix=#{prefix}", - "--without-dbus", "--enable-locallisppath=#{HOMEBREW_PREFIX}/share/emacs/site-lisp", "--infodir=#{info}/emacs"] + args << "--with-file-notification=gfile" if build.with? "glib" + if build.with? "d-bus" + args << "--with-dbus" + else + args << "--without-dbus" + end if build.with? 'gnutls' args << '--with-gnutls' else args << '--without-gnutls' end + args << "--with-rsvg" if build.with? "librsvg" + args << "--with-imagemagick" if build.with? "imagemagick" system "./autogen.sh" if build.head? -- cgit v1.2.3