2021-04-27 10:37:06 +08:00
|
|
|
require_relative "../require/macfuse"
|
|
|
|
|
|
2021-04-27 14:56:19 +08:00
|
|
|
class AfuseMac < Formula
|
2021-04-27 10:37:06 +08:00
|
|
|
desc "Automounting file system implemented in userspace with FUSE"
|
|
|
|
|
homepage "https://github.com/pcarrier/afuse/"
|
2025-02-10 10:21:52 -05:00
|
|
|
url "https://github.com/pcarrier/afuse.git",
|
|
|
|
|
tag: "v0.5.0",
|
|
|
|
|
revision: "d7f07c32e58850fa092bb98b53c5c570fed8be69"
|
2021-04-27 10:37:06 +08:00
|
|
|
license "GPL-2.0-only"
|
|
|
|
|
|
|
|
|
|
bottle do
|
2025-02-10 16:03:28 +00:00
|
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
|
|
|
|
sha256 cellar: :any_skip_relocation, arm64_sonoma: "d0b0e74b43c27ce951eec136e4c45a98c43edc39cceeb95418f43c2d5bfa9afe"
|
|
|
|
|
sha256 cellar: :any, ventura: "81eac9045ff5882fa86b3e40c6562bbed06cf1346ec5fb368033511cab03c982"
|
2021-04-27 10:37:06 +08:00
|
|
|
end
|
|
|
|
|
|
2025-02-10 10:21:52 -05:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
|
depends_on "automake" => :build
|
2021-04-27 10:37:06 +08:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
|
depends_on MacfuseRequirement
|
|
|
|
|
depends_on :macos
|
|
|
|
|
|
|
|
|
|
def install
|
2021-07-04 00:27:00 +08:00
|
|
|
setup_fuse
|
2025-02-10 10:21:52 -05:00
|
|
|
system "./autogen.sh"
|
2021-04-27 10:37:06 +08:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
|
system "make", "install"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
|
|
|
|
assert_match "FUSE library version", pipe_output("#{bin}/afuse --version 2>&1")
|
|
|
|
|
end
|
|
|
|
|
end
|