aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-11-13 12:08:06 -0600
committerJack Nagel2014-11-13 12:08:06 -0600
commitd5e28ba243b58591a6bb27a6400a8a0c075be3b0 (patch)
treef5a0bd99243f927b1d89417ddf28d10c19c685e7
parent181a11e73d3d3bac3df057320637e14396be6d23 (diff)
downloadhomebrew-d5e28ba243b58591a6bb27a6400a8a0c075be3b0.tar.bz2
emacs: update x11 option
-rw-r--r--Library/Formula/emacs.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 71465682e..dacc3127f 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -26,10 +26,11 @@ class Emacs < Formula
end
option "cocoa", "Build a Cocoa version of emacs"
- option "with-x", "Include X11 support"
option "use-git-head", "Use Savannah (faster) git mirror for HEAD builds"
option "keep-ctags", "Don't remove the ctags executable that emacs provides"
+ deprecated_option "with-x" => "with-x11"
+
head do
if build.include? "use-git-head"
url "http://git.sv.gnu.org/r/emacs.git"
@@ -42,7 +43,7 @@ class Emacs < Formula
end
depends_on "pkg-config" => :build
- depends_on :x11 if build.with? "x"
+ depends_on :x11 => :optional
depends_on "d-bus" => :optional
depends_on "gnutls" => :optional
depends_on "librsvg" => :optional
@@ -95,7 +96,7 @@ class Emacs < Formula
exec #{prefix}/Emacs.app/Contents/MacOS/Emacs -nw "$@"
EOS
else
- if build.with? "x"
+ if build.with? "x11"
# These libs are not specified in xft's .pc. See:
# https://trac.macports.org/browser/trunk/dports/editors/emacs/Portfile#L74
# https://github.com/Homebrew/homebrew/issues/8156