51 lines
1.3 KiB
Ruby
51 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.3.tar.gz"
|
|
sha256 "52a1a1e017859dfe72a550e6fef8ad4f8703ce312ae165f74b579fd7344e3a26"
|
|
license any_of: ["LGPL-2.1-only", "GPL-2.0-only"]
|
|
|
|
bottle do
|
|
sha256 x86_64_linux: "a98d273e64706971684935a3ae87da16b1dda98f7289eb79e82f4cdfb7f12bb8"
|
|
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
|
|
deprecate! date: "2022-05-27", because: :repo_archived
|
|
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
|