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/"
|
2022-09-05 10:57:50 +08:00
|
|
|
url "https://bindfs.org/downloads/bindfs-1.17.0.tar.gz"
|
|
|
|
|
sha256 "70da57d49e7794fe54b8575bfdd6a7943aab54ada2e8e2fdf4be04e0011451dc"
|
2021-04-27 11:37:50 +08:00
|
|
|
license "GPL-2.0-or-later"
|
|
|
|
|
|
|
|
|
|
bottle do
|
2022-09-05 10:57:50 +08:00
|
|
|
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/bindfs-mac-1.17.0"
|
2022-09-05 11:10:30 +08:00
|
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "c55b77b90b0de6383e757f854da33b7fdb188d17128dcf0848342ba0aba67162"
|
|
|
|
|
sha256 cellar: :any, monterey: "a89ee7436ed6268759ab8d118ae33f2e7ef08f9f6f4362c6b9d86c1b80660bf3"
|
|
|
|
|
sha256 cellar: :any, big_sur: "438df92ca7ec74d8d30897ad4bc9f45ba10a8a97523df5892ac8970992819bcf"
|
|
|
|
|
sha256 cellar: :any, catalina: "ccb850e290a88fa78930c2920854766385d3cfeb8e4537278cc918745a88a056"
|
|
|
|
|
sha256 cellar: :any, mojave: "c48f0834685c79d272f7af5801f9b8cab86686b5d0e82b255b028f1f4a57a115"
|
2021-04-27 11:37:50 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
head do
|
|
|
|
|
url "https://github.com/mpartel/bindfs.git"
|
|
|
|
|
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
|
2021-04-27 11:37:50 +08:00
|
|
|
args = %W[
|
|
|
|
|
--disable-debug
|
|
|
|
|
--disable-dependency-tracking
|
|
|
|
|
--prefix=#{prefix}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if build.head?
|
|
|
|
|
system "./autogen.sh", *args
|
|
|
|
|
else
|
|
|
|
|
system "./configure", *args
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
system "make", "install"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
|
|
|
|
system "#{bin}/bindfs", "-V"
|
|
|
|
|
end
|
|
|
|
|
end
|