2012-10-07 14:43:20 +00:00
|
|
|
class Cmigemo < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Migemo is a tool that supports Japanese incremental search with Romaji"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.kaoriya.net/software/cmigemo"
|
2012-10-07 14:43:20 +00:00
|
|
|
|
2014-03-18 17:13:30 +00:00
|
|
|
stable do
|
|
|
|
url "https://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "4aa759b2e055ef3c3fbeb9e92f7f0aacc1fd1f8602fdd2f122719793ee14414c"
|
2012-10-07 14:43:20 +00:00
|
|
|
|
2014-03-18 17:13:30 +00:00
|
|
|
# Patch per discussion at: https://github.com/Homebrew/homebrew/pull/7005
|
|
|
|
patch :DATA
|
2012-10-07 14:43:20 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
head "https://github.com/koron/cmigemo.git"
|
2014-03-18 17:13:30 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "nkf" => :build
|
2014-03-18 17:13:30 +00:00
|
|
|
|
2012-10-07 14:43:20 +00:00
|
|
|
def install
|
|
|
|
system "chmod +x ./configure"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "osx"
|
2012-10-07 14:43:20 +00:00
|
|
|
system "make osx-dict"
|
2014-04-17 04:19:51 +00:00
|
|
|
system "make", "-C", "dict", "utf-8" if build.stable?
|
2012-10-07 14:43:20 +00:00
|
|
|
ENV.j1 # Install can fail on multi-core machines unless serialized
|
|
|
|
system "make osx-install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2014-03-12 05:54:33 +00:00
|
|
|
See also https://github.com/emacs-jp/migemo to use cmigemo with Emacs.
|
2012-10-07 14:43:20 +00:00
|
|
|
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
|