homebrew-core/Formula/cabocha.rb
Brett Koonce b633b2d147 cabocha 0.66
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-01 19:33:33 -08:00

24 lines
621 B
Ruby

require 'formula'
class Cabocha < Formula
homepage 'http://code.google.com/p/cabocha/'
url 'http://cabocha.googlecode.com/files/cabocha-0.66.tar.bz2'
sha1 '33172b7973239a53d98eabbd309f70d88e36c94c'
depends_on 'crf++'
depends_on 'mecab'
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