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/"
|
|
|
|
|
url "https://bindfs.org/downloads/bindfs-1.15.1.tar.gz"
|
|
|
|
|
sha256 "04dd3584a6cdf9af4344d403c62185ca9fab31ce3ae5a25d0101bc10936c68ab"
|
|
|
|
|
license "GPL-2.0-or-later"
|
|
|
|
|
|
|
|
|
|
bottle do
|
2021-04-27 14:25:56 +08:00
|
|
|
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/bindfs-mac-1.15.1"
|
2022-01-08 22:20:24 +08:00
|
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "32cf0fc09d3e0246378dd899b961e50b61ea78edf274f9232dc1a82d51c717f1"
|
|
|
|
|
sha256 cellar: :any, monterey: "e89fa355bac808effa0103fd3bdd307b111d0c937309913a9a38af808cfba8b2"
|
|
|
|
|
sha256 cellar: :any, big_sur: "edb43ff7dd67f03169b9e4c84b527a2ec729c743baeff1e47319008722fccb15"
|
|
|
|
|
sha256 cellar: :any, catalina: "eaabdbc55f58e3782705dbf4a1be9862f741939630bbd6d82e27915309995a2c"
|
|
|
|
|
sha256 cellar: :any, mojave: "a774f403c90cfc617385b6f1a6b0166dd19c9da44983207643cbca7d48808c46"
|
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
|