diff options
| -rw-r--r-- | Library/Formula/emacs.rb | 7 |
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 |
