homebrew-core/Formula/mecab.rb
Kim Ahlström f3e343826d Added formula for mecab, a Japanese morphological analyser
mecab is the main application that does morphological analysis on Japanese text.
mecab-ipadic is data that is required by mecab to work. This is the recommended data file by the author, but other data files are available on the mecab homepage.

This formula sets utf-8 as the default charset for mecab-ipadic, but this can be changed with the --with-charset=[sjis|euc-jp] flag.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-08 07:51:36 -07:00

12 lines
358 B
Ruby

require 'formula'
class Mecab <Formula
url 'http://downloads.sourceforge.net/project/mecab/mecab/0.98/mecab-0.98.tar.gz'
homepage 'http://mecab.sourceforge.net/'
md5 'b3d8d79e35acf0ca178e8d885309f5fd'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end