gcsfuse: depend on linux

master
Francois-Xavier Coudert 2022-11-18 16:52:27 +01:00 committed by FX Coudert
parent 9b4554d569
commit 276a586790
1 changed files with 3 additions and 26 deletions

View File

@ -11,14 +11,8 @@ class Gcsfuse < Formula
end
depends_on "go" => :build
on_macos do
disable! date: "2021-04-08", because: "requires closed-source macFUSE"
end
on_linux do
depends_on "libfuse"
end
depends_on "libfuse"
depends_on :linux # on macOS, requires closed-source macFUSE
def install
# Build the build_gcsfuse tool. Ensure that it doesn't pick up any
@ -31,25 +25,8 @@ class Gcsfuse < Formula
system "./build_gcsfuse", buildpath, prefix, gcsfuse_version
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}/gcsfuse", "--help"
separator = if OS.mac?
"_"
else
"."
end
system "#{sbin}/mount#{separator}gcsfuse", "--help"
system "#{sbin}/mount.gcsfuse", "--help"
end
end