2012-01-30 15:56:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cabocha < Formula
|
|
|
|
homepage 'http://code.google.com/p/cabocha/'
|
2013-01-02 01:23:01 +00:00
|
|
|
url 'http://cabocha.googlecode.com/files/cabocha-0.66.tar.bz2'
|
|
|
|
sha1 '33172b7973239a53d98eabbd309f70d88e36c94c'
|
2012-01-30 15:56:53 +00:00
|
|
|
|
|
|
|
depends_on 'crf++'
|
2012-11-17 07:12:19 +00:00
|
|
|
depends_on 'mecab'
|
2012-01-30 15:56:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["LIBS"] = '-liconv'
|
|
|
|
|
|
|
|
inreplace 'Makefile.in' do |s|
|
|
|
|
s.change_make_var! 'CFLAGS', ENV.cflags
|
|
|
|
s.change_make_var! 'CXXFLAGS', ENV.cflags
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", "--with-charset=utf8",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|