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/"
|
2023-04-14 00:41:52 +08:00
|
|
|
url "https://bindfs.org/downloads/bindfs-1.17.2.tar.gz"
|
|
|
|
|
sha256 "5f2c50a70b8d58c025b81fbf364fad432d154936630ce0023cc88baa8d5ca1d0"
|
2021-04-27 11:37:50 +08:00
|
|
|
license "GPL-2.0-or-later"
|
|
|
|
|
|
|
|
|
|
bottle do
|
2023-04-14 00:41:52 +08:00
|
|
|
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/bindfs-mac-1.17.2"
|
2023-04-14 01:00:26 +08:00
|
|
|
sha256 cellar: :any, monterey: "e6f074f1acd358e9ceb96f7b0eb5c94e55ab0924f64ff81a31d196251d85857f"
|
|
|
|
|
sha256 cellar: :any, big_sur: "52ba09553027ce5617558a8ce025f2119f6f50f9065c7caae51d6bbc27701c3d"
|
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
|