2021-04-27 12:05:48 +08:00
|
|
|
require_relative "../require/macfuse"
|
|
|
|
|
|
2021-04-27 14:25:56 +08:00
|
|
|
class CurlftpfsMac < Formula
|
2021-04-27 12:05:48 +08:00
|
|
|
desc "Filesystem for accessing FTP hosts based on FUSE and libcurl"
|
2025-02-12 20:32:00 +08:00
|
|
|
homepage "https://curlftpfs.sourceforge.net/"
|
2021-04-27 12:05:48 +08:00
|
|
|
url "https://downloads.sourceforge.net/project/curlftpfs/curlftpfs/0.9.2/curlftpfs-0.9.2.tar.gz"
|
|
|
|
|
sha256 "4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958"
|
2025-02-12 20:32:00 +08:00
|
|
|
license "GPL-2.0-only"
|
2021-04-27 12:05:48 +08:00
|
|
|
head ":pserver:anonymous:@curlftpfs.cvs.sourceforge.net:/cvsroot/curlftpfs", using: :cvs
|
|
|
|
|
|
|
|
|
|
bottle do
|
2025-02-12 12:42:08 +00:00
|
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
|
|
|
|
rebuild 1
|
|
|
|
|
sha256 cellar: :any, arm64_sonoma: "52266b0b218496e9f24f982e74165991d97b49791862e683fb240d635e63f063"
|
|
|
|
|
sha256 cellar: :any, ventura: "1ed49dce5000b70b4ef4e47b3d8c535b4c25994cde3122a461483aa34e5d6cbe"
|
2021-04-27 12:05:48 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
|
depends_on "automake" => :build
|
|
|
|
|
depends_on "libtool" => :build
|
2025-02-12 20:32:00 +08:00
|
|
|
depends_on "pkgconf" => :build
|
|
|
|
|
depends_on "curl"
|
2021-04-27 12:05:48 +08:00
|
|
|
depends_on "glib"
|
|
|
|
|
depends_on MacfuseRequirement
|
|
|
|
|
depends_on :macos
|
|
|
|
|
|
|
|
|
|
def install
|
2021-07-04 00:27:00 +08:00
|
|
|
setup_fuse
|
2021-04-27 12:05:48 +08:00
|
|
|
ENV.append "CPPFLAGS", "-D__off_t=off_t"
|
2025-02-12 20:32:00 +08:00
|
|
|
system "autoreconf", "--force", "--install", "--verbose"
|
|
|
|
|
system "./configure", *std_configure_args
|
2021-04-27 12:05:48 +08:00
|
|
|
system "make", "install"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/curlftpfs --version 2>&1", 1)
|
|
|
|
|
end
|
|
|
|
|
end
|