mecab-ipadic: fix audit failure due to option name (#11901)
migrate '--charset=' to '--with-charset='
This commit is contained in:
parent
3f34ce48ad
commit
b59358d6d6
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue