2021-04-27 11:37:50 +08:00
|
|
|
require_relative "../require/macfuse"
|
|
|
|
|
|
2021-04-27 14:25:56 +08:00
|
|
|
class BindfsMac < Formula
|
2021-04-27 11:37:50 +08:00
|
|
|
desc "FUSE file system for mounting to another location"
|
|
|
|
|
homepage "https://bindfs.org/"
|
2025-05-07 19:27:50 +08:00
|
|
|
url "https://bindfs.org/downloads/bindfs-1.18.0.tar.gz"
|
|
|
|
|
sha256 "46fcf95b871109265e93cd42e5ae282c722716488ad9f0da1e1f98535be37f7a"
|
2021-04-27 11:37:50 +08:00
|
|
|
license "GPL-2.0-or-later"
|
|
|
|
|
|
|
|
|
|
bottle do
|
2025-02-10 15:47:28 +00:00
|
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
2025-05-07 11:41:01 +00:00
|
|
|
sha256 cellar: :any_skip_relocation, arm64_sonoma: "18280a50ddee23ed3cfd05cb40e6a69a1d343ce118553f5098e9e9d289b66fb4"
|
|
|
|
|
sha256 cellar: :any, ventura: "a2c590ee0ca1bfc22e4e485b680490791e9a17812f8b9041c2469063280641e1"
|
2021-04-27 11:37:50 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
head do
|
2025-02-10 22:11:31 +08:00
|
|
|
url "https://github.com/mpartel/bindfs.git", branch: "master"
|
|
|
|
|
|
2021-04-27 11:37:50 +08:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
|
depends_on "automake" => :build
|
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
|
depends_on MacfuseRequirement
|
|
|
|
|
depends_on :macos
|
|
|
|
|
|
|
|
|
|
def install
|
2021-07-04 00:27:00 +08:00
|
|
|
setup_fuse
|
2025-05-07 19:27:50 +08:00
|
|
|
# https://github.com/mpartel/bindfs/issues/163#issuecomment-2854763292
|
|
|
|
|
ENV.append "CFLAGS", "-D_DARWIN_C_SOURCE"
|
2025-02-10 22:11:31 +08:00
|
|
|
configure = build.head? ? "./autogen.sh" : "./configure"
|
|
|
|
|
system configure, "--disable-macos-fs-link", *std_configure_args
|
2021-04-27 11:37:50 +08:00
|
|
|
system "make", "install"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
|
|
|
|
system "#{bin}/bindfs", "-V"
|
|
|
|
|
end
|
|
|
|
|
end
|