mc: add without-nls option.

Closes Homebrew/homebrew#46014.
This commit is contained in:
Igor 2015-11-15 22:48:00 +03:00 committed by Mike McQuaid
parent 44cab3f85d
commit 97ddd9b88f

View file

@ -13,6 +13,8 @@ class MidnightCommander < Formula
sha256 "e001897e0301e20f5d04dfc6ec728fb47ebb708ca3cae59a0cfa666771794d90" => :mavericks
end
option "without-nls", "Build without Native Language Support"
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "openssl"
@ -20,13 +22,19 @@ class MidnightCommander < Formula
depends_on "libssh2"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--without-x",
"--with-screen=slang",
"--enable-vfs-sftp"
args = %W[
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--without-x
--with-screen=slang
--enable-vfs-sftp
]
args << "--disable-nls" if build.without? "nls"
system "./configure", *args
system "make", "install"
# https://www.midnight-commander.org/ticket/3509