Skip to content

Instantly share code, notes, and snippets.

@masahitojp
Created October 25, 2014 12:33
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 masahitojp/50c5baac3cc50a0a7aa4 to your computer and use it in GitHub Desktop.
Save masahitojp/50c5baac3cc50a0a7aa4 to your computer and use it in GitHub Desktop.
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 591676b..3f9fbc4 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -17,6 +17,7 @@ class Emacs < Formula
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"
+ option "japanese", "Patch for Japanese input methods"
head do
if build.include? "use-git-head"
@@ -27,6 +28,13 @@ class Emacs < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
+
+ # "--japanese" option:
+ # to apply a patch from MacEmacsJP for Japanese input methods
+ patch :p0 do
+ url "http://plamo.linet.gr.jp/~matsuki/mac/emacs-24.4-20140417-inline.patch"
+ sha1 "90456a6856c1e3a11ca10a73866ee1aea371aad4"
+ end if build.include? "cocoa" and build.include? "japanese"
end
depends_on "pkg-config" => :build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment