2021-05-04 11:30:44 +08:00
|
|
|
require_relative "../require/macfuse"
|
|
|
|
|
|
|
|
|
|
class Ext2fuseMac < Formula
|
|
|
|
|
desc "Compact implementation of ext2 file system using FUSE"
|
|
|
|
|
homepage "https://sourceforge.net/projects/ext2fuse"
|
|
|
|
|
url "https://downloads.sourceforge.net/project/ext2fuse/ext2fuse/0.8.1/ext2fuse-src-0.8.1.tar.gz"
|
|
|
|
|
sha256 "431035797b2783216ec74b6aad5c721b4bffb75d2174967266ee49f0a3466cd9"
|
2025-02-12 22:35:06 +08:00
|
|
|
license "GPL-2.0-or-later"
|
2021-05-04 11:30:44 +08:00
|
|
|
|
|
|
|
|
bottle do
|
2025-02-12 14:43:33 +00:00
|
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
|
|
|
|
rebuild 1
|
|
|
|
|
sha256 cellar: :any_skip_relocation, arm64_sonoma: "1fea57a1f597f489ac0a58e6c75b4a7ea970b07f33d7c31dfe1a812a8029bf02"
|
|
|
|
|
sha256 cellar: :any, ventura: "8935e712ae67cb680c77a88dbf6aa6c66f4b294c67aefc557dce55c5c8bd5f41"
|
2021-05-04 11:30:44 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
depends_on "gcc" => :build
|
|
|
|
|
depends_on "e2fsprogs"
|
|
|
|
|
depends_on MacfuseRequirement
|
|
|
|
|
depends_on :macos
|
|
|
|
|
|
|
|
|
|
def install
|
2021-07-04 00:27:00 +08:00
|
|
|
setup_fuse
|
2021-05-04 11:30:44 +08:00
|
|
|
ENV.append "LIBS", "-lfuse"
|
|
|
|
|
ENV.append "CFLAGS",
|
|
|
|
|
"-D__FreeBSD__=10 -DENABLE_SWAPFS -I/usr/local/include/fuse "
|
|
|
|
|
ENV.append "CFLAGS", "--std=gnu89" if ENV.compiler == :clang
|
|
|
|
|
|
2025-02-12 22:35:06 +08:00
|
|
|
system "./configure", *std_configure_args
|
2021-05-04 11:30:44 +08:00
|
|
|
system "make", "install"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/ext2fuse --version 2>&1", 9)
|
|
|
|
|
end
|
|
|
|
|
end
|