aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorKakutani Shintaro2011-08-15 03:20:34 +0900
committerAdam Vandenberg2011-08-15 13:58:34 -0700
commit59a4797aa22e34a03ae2e020403b4662417c1559 (patch)
tree8cb219fb8a4879eeaf03cc448a392270ee51d6ed /Library/Formula
parent1564d6f5122deb8d848d473d6ed6e7fa5610c1c8 (diff)
downloadhomebrew-59a4797aa22e34a03ae2e020403b4662417c1559.tar.bz2
cmigemo 20110227
cmigemo is a regexp generator to incremental Japanese search from roman letter. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cmigemo.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/cmigemo.rb b/Library/Formula/cmigemo.rb
new file mode 100644
index 000000000..7c6738dda
--- /dev/null
+++ b/Library/Formula/cmigemo.rb
@@ -0,0 +1,32 @@
+require 'formula'
+
+class Cmigemo <Formula
+ url 'http://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip'
+ md5 '6e9b6f6ec96d4eb8bdd18e52b91e1b85'
+ homepage 'http://www.kaoriya.net/software/cmigemo'
+
+ depends_on 'nkf' => :build
+
+ # Patch per discussion at: https://github.com/mxcl/homebrew/pull/7005
+ def patches
+ "https://raw.github.com/gist/1145129/d6b4ad34f3763cac352dbc6d96cf6aa2566e4b7a/wordbuf.c.patch"
+ end
+
+ def install
+ system "chmod 755 ./configure"
+ system "./configure"
+ system "make osx"
+ system "make osx-dict"
+ Dir.chdir('dict') do
+ system "make utf-8"
+ end
+ ENV.j1 # Install can fail on multi-core machines unless serialized
+ system "make osx-install"
+ end
+
+ def caveats; <<-EOS.undent
+ See also https://gist.github.com/457761 to use cmigemo with Emacs.
+ You will have to save as migemo.el and put it in your load-path.
+ EOS
+ end
+end