diff options
| author | David Holm | 2014-06-29 12:56:13 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-07-13 08:36:35 -0500 |
| commit | 6ee907aed2ccff1bfbe37d6ab7aaad224d2424aa (patch) | |
| tree | 925e70d08f2186ea07be1406c460ff7b12c23c13 /Library | |
| parent | 8d4468bffb2ccc531d5cdfe9c8b750fcbb9c4dc1 (diff) | |
| download | homebrew-6ee907aed2ccff1bfbe37d6ab7aaad224d2424aa.tar.bz2 | |
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/emacs.rb | 13 |
1 files changed, 12 insertions, 1 deletions
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? |
