2010-04-24 11:01:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class MecabIpadic < Formula
|
2010-04-24 11:01:49 +00:00
|
|
|
homepage 'http://mecab.sourceforge.net/'
|
2013-01-29 05:17:58 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '0d9d021853ba4bb4adfa782ea450e55bfe1a229b'
|
2010-04-24 11:01:49 +00:00
|
|
|
|
2013-07-07 19:02:04 +00:00
|
|
|
# Via ./configure --help, valid choices are utf8 (default), euc-jp, sjis
|
|
|
|
option 'with-charset=', "Select charset: utf8 (default), euc-jp, or sjis"
|
|
|
|
|
2010-04-24 11:01:49 +00:00
|
|
|
depends_on "mecab"
|
|
|
|
|
|
|
|
def install
|
2013-07-07 19:02:04 +00:00
|
|
|
charset = ARGV.value('with-charset') || 'utf8'
|
2013-01-30 03:56:40 +00:00
|
|
|
args = %W[
|
2013-01-29 05:17:58 +00:00
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
2013-07-07 19:02:04 +00:00
|
|
|
--with-charset=#{charset}
|
2013-01-29 05:17:58 +00:00
|
|
|
]
|
2010-09-08 15:17:29 +00:00
|
|
|
|
2010-04-24 11:01:49 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|