homebrew-core/Formula/mecab-ipadic.rb

26 lines
703 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class MecabIpadic < Formula
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'
sha1 '0d9d021853ba4bb4adfa782ea450e55bfe1a229b'
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"
depends_on "mecab"
def install
2013-07-07 19:02:04 +00:00
charset = ARGV.value('with-charset') || 'utf8'
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
]
system "./configure", *args
system "make install"
end
end