aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNick Stenning2012-05-18 11:10:39 +0100
committerJack Nagel2012-05-20 00:18:30 -0500
commit389347c92a590c6e6165a53ae054e48ca6a23db9 (patch)
treec488b7fdd895a935d96653cce56ce315f2d01035 /Library/Formula
parent68293d0159d65004216d43f1ee545bf380ca8c22 (diff)
downloadhomebrew-389347c92a590c6e6165a53ae054e48ca6a23db9.tar.bz2
mu: make emacs support optional
Closes #12306. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mu.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/mu.rb b/Library/Formula/mu.rb
index 6dc138e5e..ba24e8d01 100644
--- a/Library/Formula/mu.rb
+++ b/Library/Formula/mu.rb
@@ -30,7 +30,7 @@ class Mu < Formula
depends_on 'glib'
depends_on 'gmime'
depends_on 'xapian'
- depends_on Emacs23Installed.new
+ depends_on Emacs23Installed.new if ARGV.include? '--with-emacs'
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
@@ -44,7 +44,15 @@ class Mu < Formula
DATA unless ARGV.build_head?
end
+ def options
+ [['--with-emacs', 'Build with emacs support']]
+ end
+
def install
+ # Explicitly tell the build not to include emacs support as the version
+ # shipped by default with Mac OS X is too old.
+ ENV['EMACS'] = 'no' unless ARGV.include? '--with-emacs'
+
system 'autoreconf', '-ivf' if ARGV.build_head?
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking", "--with-gui=none"