mecab-ipadic: fix audit failure due to option name (#11901)

migrate '--charset=' to '--with-charset='
This commit is contained in:
JCount 2017-03-31 12:08:35 -04:00 committed by GitHub
parent 3f34ce48ad
commit b59358d6d6

View file

@ -15,14 +15,16 @@ class MecabIpadic < Formula
end
# Via ./configure --help, valid choices are utf8 (default), euc-jp, sjis
option "charset=", "Select charset: utf8 (default), euc-jp, or sjis"
option "with-charset=", "Select charset: utf8 (default), euc-jp, or sjis"
deprecated_option "charset=" => "with-charset="
depends_on "mecab"
link_overwrite "lib/mecab/dic"
def install
charset = ARGV.value("charset") || "utf8"
charset = ARGV.value("with-charset") || "utf8"
args = %W[
--disable-debug
--disable-dependency-tracking