blob: 7ba2957bcae6984c11ef9b9d620ecc501aced174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class Cabocha < Formula
url 'http://cabocha.googlecode.com/files/cabocha-0.60.tar.gz'
homepage 'http://code.google.com/p/cabocha/'
md5 '3399873faab9b252fd57e1d48fa1285d'
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
|