This commit is contained in:
Adrian Ho 2025-12-26 13:32:17 +08:00 committed by GitHub
commit 8d559da9e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,8 +3,8 @@ require_relative "../require/macfuse"
class S3BackerMac < Formula class S3BackerMac < Formula
desc "FUSE-based single file backing store via Amazon S3" desc "FUSE-based single file backing store via Amazon S3"
homepage "https://github.com/archiecobbs/s3backer" homepage "https://github.com/archiecobbs/s3backer"
url "https://archie-public.s3.amazonaws.com/s3backer/s3backer-2.1.4.tar.gz" url "https://archie-public.s3.amazonaws.com/s3backer/s3backer-2.1.6.tar.gz"
sha256 "0451471209cc872708e91b2784a4a1b9f3ca44c89a7bffb8f6145aed28c941e7" sha256 "55ff3123ab08d45822e6b349d9e305ca2ca13339474314cfc31a074d5308acf6"
license "GPL-2.0-or-later" license "GPL-2.0-or-later"
bottle do bottle do
@ -19,14 +19,22 @@ class S3BackerMac < Formula
depends_on MacfuseRequirement depends_on MacfuseRequirement
depends_on :macos depends_on :macos
depends_on "openssl@3" depends_on "openssl@3"
depends_on "zlib"
depends_on "zstd"
def install def install
setup_fuse setup_fuse3
system "./configure", "--disable-silent-rules", *std_configure_args # Disable macOS-specific features that break FUSE compatibility
# https://github.com/macfuse/macfuse/issues/1064#issuecomment-2800022794
ENV.append "CFLAGS", "-DFUSE_DARWIN_ENABLE_EXTENSIONS=0"
system "./configure", "--disable-silent-rules",
*std_configure_args.reject { |s| s["--disable-debug"] }
system "make", "install" system "make", "install"
end end
test do test do
system bin/"s3backer", "--version" assert_match version.to_s, shell_output("#{bin}/s3backer --version 2>&1")
assert_match "no S3 bucket specified", shell_output("#{bin}/s3backer 2>&1", 1)
end end
end end