midnight-commander 4.8.24
Closes #49232. Signed-off-by: Thierry Moisan <thierry.moisan@gmail.com>
This commit is contained in:
parent
c34ec5c089
commit
a7fd411960
1 changed files with 11 additions and 11 deletions
|
@ -1,9 +1,8 @@
|
||||||
class MidnightCommander < Formula
|
class MidnightCommander < Formula
|
||||||
desc "Terminal-based visual file manager"
|
desc "Terminal-based visual file manager"
|
||||||
homepage "https://www.midnight-commander.org/"
|
homepage "https://www.midnight-commander.org/"
|
||||||
url "https://www.midnight-commander.org/downloads/mc-4.8.23.tar.xz"
|
url "https://www.midnight-commander.org/downloads/mc-4.8.24.tar.xz"
|
||||||
sha256 "dd7f7ce74183307b0df25b5c3e60ad3293fd3d3d27d2f37dd7a10efce13dff1c"
|
sha256 "859f1cc070450bf6eb4d319ffcb6a5ac29deb0ac0d81559fb2e71242b1176d46"
|
||||||
head "https://github.com/MidnightCommander/mc.git"
|
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "5c97885f5afc7eeeb4cf0cafc805f551dcd05ef88d918b401619eda36f0e5d2b" => :catalina
|
sha256 "5c97885f5afc7eeeb4cf0cafc805f551dcd05ef88d918b401619eda36f0e5d2b" => :catalina
|
||||||
|
@ -11,6 +10,14 @@ class MidnightCommander < Formula
|
||||||
sha256 "cac5b58750645de5fb74112a5ba5e640593500fc3b78d45d33432d448e962d61" => :high_sierra
|
sha256 "cac5b58750645de5fb74112a5ba5e640593500fc3b78d45d33432d448e962d61" => :high_sierra
|
||||||
end
|
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 "pkg-config" => :build
|
||||||
depends_on "glib"
|
depends_on "glib"
|
||||||
depends_on "libssh2"
|
depends_on "libssh2"
|
||||||
|
@ -19,13 +26,6 @@ class MidnightCommander < Formula
|
||||||
|
|
||||||
conflicts_with "minio-mc", :because => "Both install a `mc` binary"
|
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
|
def install
|
||||||
args = %W[
|
args = %W[
|
||||||
--disable-debug
|
--disable-debug
|
||||||
|
@ -40,7 +40,7 @@ class MidnightCommander < Formula
|
||||||
# Fix compilation bug on macOS 10.13 by pretending we don't have utimensat()
|
# Fix compilation bug on macOS 10.13 by pretending we don't have utimensat()
|
||||||
# https://github.com/MidnightCommander/mc/pull/130
|
# https://github.com/MidnightCommander/mc/pull/130
|
||||||
ENV["ac_cv_func_utimensat"] = "no" if MacOS.version >= :high_sierra
|
ENV["ac_cv_func_utimensat"] = "no" if MacOS.version >= :high_sierra
|
||||||
|
system "./autogen.sh" if build.head?
|
||||||
system "./configure", *args
|
system "./configure", *args
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue