midnight-commander 4.8.24

Closes #49232.

Signed-off-by: Thierry Moisan <thierry.moisan@gmail.com>
This commit is contained in:
EricFromCanada 2020-01-20 17:01:05 -05:00 committed by Thierry Moisan
parent c34ec5c089
commit a7fd411960
No known key found for this signature in database
GPG key ID: A9A4CB593D38CDD0

View file

@ -1,9 +1,8 @@
class MidnightCommander < Formula
desc "Terminal-based visual file manager"
homepage "https://www.midnight-commander.org/"
url "https://www.midnight-commander.org/downloads/mc-4.8.23.tar.xz"
sha256 "dd7f7ce74183307b0df25b5c3e60ad3293fd3d3d27d2f37dd7a10efce13dff1c"
head "https://github.com/MidnightCommander/mc.git"
url "https://www.midnight-commander.org/downloads/mc-4.8.24.tar.xz"
sha256 "859f1cc070450bf6eb4d319ffcb6a5ac29deb0ac0d81559fb2e71242b1176d46"
bottle do
sha256 "5c97885f5afc7eeeb4cf0cafc805f551dcd05ef88d918b401619eda36f0e5d2b" => :catalina
@ -11,6 +10,14 @@ class MidnightCommander < Formula
sha256 "cac5b58750645de5fb74112a5ba5e640593500fc3b78d45d33432d448e962d61" => :high_sierra
end
head do
url "https://github.com/MidnightCommander/mc.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "libssh2"
@ -19,13 +26,6 @@ class MidnightCommander < Formula
conflicts_with "minio-mc", :because => "Both install a `mc` binary"
# Fix compilation https://midnight-commander.org/ticket/4035
# Remove in next release
patch do
url "https://midnight-commander.org/raw-attachment/ticket/4035/mc-4.8.23.patch"
sha256 "eca0c095700bc4c4a41e74da0f95874c4a91a0f22ad45b2d96b32d2f537d856f"
end
def install
args = %W[
--disable-debug
@ -40,7 +40,7 @@ class MidnightCommander < Formula
# Fix compilation bug on macOS 10.13 by pretending we don't have utimensat()
# https://github.com/MidnightCommander/mc/pull/130
ENV["ac_cv_func_utimensat"] = "no" if MacOS.version >= :high_sierra
system "./autogen.sh" if build.head?
system "./configure", *args
system "make", "install"
end