homebrew-fuse/Formula/s3fs-mac.rb

54 lines
1.5 KiB
Ruby
Raw Normal View History

2021-05-04 13:04:13 +08:00
require_relative "../require/macfuse"
class S3fsMac < Formula
desc "FUSE-based file system backed by Amazon S3"
homepage "https://github.com/s3fs-fuse/s3fs-fuse/wiki"
url "https://github.com/s3fs-fuse/s3fs-fuse/archive/refs/tags/v1.95.tar.gz"
sha256 "0c97b8922f005500d36f72aee29a1345c94191f61d795e2a7b79fb7e3e6f5517"
2021-05-04 13:04:13 +08:00
license "GPL-2.0-or-later"
head "https://github.com/s3fs-fuse/s3fs-fuse.git", branch: "master"
2021-05-04 13:04:13 +08:00
bottle do
2025-02-13 09:12:19 +00:00
root_url "https://ghcr.io/v2/gromgit/fuse"
sha256 cellar: :any, arm64_sonoma: "ecbfca73778ed850eeef256fcba17bb229036f9fbce767fd54abc2335236efee"
sha256 cellar: :any, ventura: "0fb739e8007836e833c79d45159c78fbd05291b19afc9439683d2712d1b1dd68"
2021-05-04 13:04:13 +08:00
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkgconf" => :build
depends_on "curl"
depends_on "gcc"
2021-05-04 13:04:13 +08:00
depends_on "gnutls"
depends_on "libgcrypt"
depends_on "libxml2"
2021-05-04 13:04:13 +08:00
depends_on MacfuseRequirement
depends_on :macos
2021-05-06 14:09:40 +08:00
depends_on "nettle"
2021-05-04 13:04:13 +08:00
fails_with :clang do
cause <<~EOS
libc++abi: terminating due to uncaught exception of type std::__1::system_error:
mutex lock failed: Invalid argument
EOS
end
2021-05-04 13:04:13 +08:00
def install
setup_fuse
2021-05-04 13:04:13 +08:00
system "./autogen.sh"
system "./configure", "--with-gnutls", *std_configure_args
2021-05-04 13:04:13 +08:00
system "make", "install"
end
2025-02-16 11:48:11 +08:00
def caveats
<<~EOS
This is the final version that supports FUSE 2.
Further updates require a macOS FUSE 3 implementation.
EOS
end
2021-05-04 13:04:13 +08:00
test do
system "#{bin}/s3fs", "--version"
end
end