aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cmigemo.rb
diff options
context:
space:
mode:
authorTetsuya HAMAMOTO2012-10-07 23:43:20 +0900
committerAdam Vandenberg2012-10-20 08:48:15 -0700
commitcfa768800864a0150fb030c2bf6cc5486afaa3e3 (patch)
tree73aa92fe6ccbfafea032c65dc00ec4e0e10b6524 /Library/Formula/cmigemo.rb
parent8b4b1e06de3b0b08122224fb99b72bcf5feb2a08 (diff)
downloadhomebrew-cfa768800864a0150fb030c2bf6cc5486afaa3e3.tar.bz2
cmigemo 20110227
cmigemo is a regexp generator to incremental Japanese search from roman letter. Closes #15343. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/cmigemo.rb')
-rw-r--r--Library/Formula/cmigemo.rb44
1 files changed, 44 insertions, 0 deletions
diff --git a/Library/Formula/cmigemo.rb b/Library/Formula/cmigemo.rb
new file mode 100644
index 000000000..71044123a
--- /dev/null
+++ b/Library/Formula/cmigemo.rb
@@ -0,0 +1,44 @@
+require 'formula'
+
+class Cmigemo < Formula
+ homepage 'http://www.kaoriya.net/software/cmigemo'
+ url 'http://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip'
+ sha1 '25e279c56d3a8f1e82cbfb3526d1b38742d1d66c'
+
+ depends_on 'nkf' => :build
+
+ # Patch per discussion at: https://github.com/mxcl/homebrew/pull/7005
+ def patches
+ DATA
+ end
+
+ def install
+ system "chmod +x ./configure"
+ system "./configure", "--prefix=#{prefix}"
+ system "make osx"
+ system "make osx-dict"
+ cd '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
+
+__END__
+--- a/src/wordbuf.c 2011-08-15 02:57:05.000000000 +0900
++++ b/src/wordbuf.c 2011-08-15 02:57:17.000000000 +0900
+@@ -9,6 +9,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <limits.h>
+ #include "wordbuf.h"
+
+ #define WORDLEN_DEF 64