2012-01-30 15:56:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cabocha < Formula
|
|
|
|
homepage 'http://code.google.com/p/cabocha/'
|
2012-07-13 13:30:18 +00:00
|
|
|
url 'http://cabocha.googlecode.com/files/cabocha-0.64.tar.gz'
|
|
|
|
sha1 '13f18c4aae2d75f5c7ac69c87458912fc00b4174'
|
2012-01-30 15:56:53 +00:00
|
|
|
|
|
|
|
depends_on 'crf++'
|
|
|
|
|
|
|
|
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
|