Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Created September 30, 2017 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshikaw/f2dc08d69d95b19052f669290ef7bcac to your computer and use it in GitHub Desktop.
Save yoshikaw/f2dc08d69d95b19052f669290ef7bcac to your computer and use it in GitHub Desktop.
EDITOR='patch -p2' brew edit emacs <<EOM
--- a/Formula/emacs.rb
+++ b/Formula/emacs.rb
@@ -37,6 +37,10 @@ class Emacs < Formula
depends_on "imagemagick@6" => :optional
depends_on "mailutils" => :optional
+ def patches
+ "https://gist.github.com/takaxp/3314a153f6d02d82ef1833638d338ecf/raw/156aaa50dc028ebb731521abaf423e751fd080de/emacs-25.2-inline.patch"
+ end
+
def install
args = %W[
--disable-dependency-tracking
@@ -89,6 +93,7 @@ class Emacs < Formula
args << "--without-ns"
end
+ system "env PATH=/usr/local/bin:$PATH ./autogen.sh"
system "./configure", *args
system "make"
system "make", "install"
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment