Created
September 30, 2017 12:03
-
-
Save yoshikaw/f2dc08d69d95b19052f669290ef7bcac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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