2021-04-27 12:41:36 +08:00
|
|
|
require_relative "../require/macfuse"
|
|
|
|
|
|
2021-04-27 14:25:56 +08:00
|
|
|
class Ext4fuseMac < Formula
|
2021-04-27 12:41:36 +08:00
|
|
|
desc "Read-only implementation of ext4 for FUSE"
|
|
|
|
|
homepage "https://github.com/gerard/ext4fuse"
|
2025-02-10 20:21:16 +08:00
|
|
|
url "https://github.com/gerard/ext4fuse/archive/refs/tags/v0.1.3.tar.gz"
|
2021-04-27 12:41:36 +08:00
|
|
|
sha256 "550f1e152c4de7d4ea517ee1c708f57bfebb0856281c508511419db45aa3ca9f"
|
|
|
|
|
license "GPL-2.0-only"
|
2025-02-12 22:49:40 +08:00
|
|
|
head "https://github.com/gerard/ext4fuse.git", branch: "master"
|
2021-04-27 12:41:36 +08:00
|
|
|
|
|
|
|
|
bottle do
|
2025-02-12 14:57:23 +00:00
|
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
|
|
|
|
rebuild 1
|
|
|
|
|
sha256 cellar: :any_skip_relocation, arm64_sonoma: "293d9d09f9a4d2cfb51beb789c8b2581b4419b00daa68507f3bf6c97f258aff5"
|
|
|
|
|
sha256 cellar: :any, ventura: "4c4f3b18a0cd8b290e52d1290ea63a87c04597f43d9c1cde6e71c487bd4a4505"
|
2021-04-27 12:41:36 +08:00
|
|
|
end
|
|
|
|
|
|
2025-02-12 22:49:40 +08:00
|
|
|
depends_on "pkgconf" => :build
|
2021-04-27 12:41:36 +08:00
|
|
|
depends_on MacfuseRequirement
|
|
|
|
|
depends_on :macos
|
|
|
|
|
|
|
|
|
|
def install
|
2021-07-04 00:27:00 +08:00
|
|
|
setup_fuse
|
2021-04-27 12:41:36 +08:00
|
|
|
system "make"
|
|
|
|
|
bin.install "ext4fuse"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/ext4fuse --version 2>&1", 1)
|
|
|
|
|
end
|
|
|
|
|
end
|