2011-08-14 18:20:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-08-19 16:42:07 +00:00
|
|
|
class Cmigemo < Formula
|
2012-02-21 06:04:21 +00:00
|
|
|
homepage 'http://www.kaoriya.net/software/cmigemo'
|
2011-08-14 18:20:34 +00:00
|
|
|
url 'http://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip'
|
|
|
|
md5 '6e9b6f6ec96d4eb8bdd18e52b91e1b85'
|
|
|
|
|
|
|
|
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"
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'dict' do
|
2011-08-14 18:20:34 +00:00
|
|
|
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
|