homebrew-core/Formula/mecab-ipadic.rb
cocoatomo ee8db87dc5 #{prefix} should be interpolated
To extract a variable "prefix", use "%W" instead of "%w".
Using "%w", installation fails.

Closes Homebrew/homebrew#17429.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-29 19:57:57 -08:00

21 lines
563 B
Ruby

require 'formula'
class MecabIpadic < Formula
homepage 'http://mecab.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz'
sha1 '0d9d021853ba4bb4adfa782ea450e55bfe1a229b'
depends_on "mecab"
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
args << ARGV.find(Proc.new {"--with-charset=utf8"}) { |arg| /^--with-charset/.match(arg) }
system "./configure", *args
system "make install"
end
end