homebrew-core/Formula/sshfs.rb

50 lines
1.3 KiB
Ruby

class Sshfs < Formula
desc "File system client based on SSH File Transfer Protocol"
homepage "https://github.com/libfuse/sshfs"
url "https://github.com/libfuse/sshfs/archive/sshfs-3.7.2.tar.gz"
sha256 "8a9b0d980e9d34d0d18eacb9e1ca77fc499d1cf70b3674cc3e02f3eafad8ab14"
license any_of: ["LGPL-2.1-only", "GPL-2.0-only"]
bottle do
sha256 x86_64_linux: "1fcf1f7994d56b8fac40224364d2b554084a4fde6fb07a8c4323d0e5957c92bb"
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "glib"
on_macos do
disable! date: "2021-04-08", because: "requires closed-source macFUSE"
end
on_linux do
depends_on "libfuse"
end
def install
mkdir "build" do
system "meson", ".."
system "meson", "configure", "--prefix", prefix
system "ninja", "--verbose"
system "ninja", "install", "--verbose"
end
end
def caveats
on_macos do
<<~EOS
The reasons for disabling this formula can be found here:
https://github.com/Homebrew/homebrew-core/pull/64491
An external tap may provide a replacement formula. See:
https://docs.brew.sh/Interesting-Taps-and-Forks
EOS
end
end
test do
system "#{bin}/sshfs", "--version"
end
end