homebrew-fuse/Formula/s3-backer-mac.rb

41 lines
1.4 KiB
Ruby
Raw Normal View History

2021-05-04 13:49:35 +08:00
require_relative "../require/macfuse"
class S3BackerMac < Formula
desc "FUSE-based single file backing store via Amazon S3"
homepage "https://github.com/archiecobbs/s3backer"
2025-08-22 22:30:23 +00:00
url "https://archie-public.s3.amazonaws.com/s3backer/s3backer-2.1.6.tar.gz"
sha256 "55ff3123ab08d45822e6b349d9e305ca2ca13339474314cfc31a074d5308acf6"
2021-05-04 13:49:35 +08:00
license "GPL-2.0-or-later"
bottle do
2025-02-11 15:20:19 +00:00
root_url "https://ghcr.io/v2/gromgit/fuse"
2025-05-14 12:56:42 +00:00
sha256 cellar: :any, arm64_sonoma: "7f67d78e85e19ec2447968526fddc16c9285c32f2d81eb5cdbaa2771fb2e7153"
sha256 cellar: :any, ventura: "51f68b3c5cba34ac4e669b9cc8b2b1f37a940fc01e3d356decb4aaf750f1e96d"
2021-05-04 13:49:35 +08:00
end
depends_on "pkgconf" => :build
depends_on "curl"
depends_on "expat"
2021-05-04 13:49:35 +08:00
depends_on MacfuseRequirement
depends_on :macos
depends_on "openssl@3"
2025-08-22 22:30:23 +00:00
depends_on "zlib"
depends_on "zstd"
2022-09-06 10:53:23 +08:00
2021-05-04 13:49:35 +08:00
def install
2025-08-22 22:30:23 +00:00
setup_fuse3
# 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"] }
2021-05-04 13:49:35 +08:00
system "make", "install"
end
test do
2025-08-22 22:30:23 +00:00
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)
2021-05-04 13:49:35 +08:00
end
end