mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-06 16:15:54 +00:00
38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
Ruby
require_relative "../require/macfuse"
|
|
|
|
class Curlftpfs < Formula
|
|
desc "Filesystem for accessing FTP hosts based on FUSE and libcurl"
|
|
homepage "https://curlftpfs.sourceforge.io/"
|
|
url "https://downloads.sourceforge.net/project/curlftpfs/curlftpfs/0.9.2/curlftpfs-0.9.2.tar.gz"
|
|
sha256 "4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958"
|
|
head ":pserver:anonymous:@curlftpfs.cvs.sourceforge.net:/cvsroot/curlftpfs", using: :cvs
|
|
|
|
bottle do
|
|
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/curlftpfs-0.9.2"
|
|
sha256 cellar: :any, big_sur: "8d2060b8190ac5bb9ced1aebb2ff8c978a2a48e87ab2e1442f1dd6c4c5cc41c9"
|
|
sha256 cellar: :any, catalina: "30938fb4225dfd85415d9fafdf7e3d9b220583bdbd9bfbc189de1018ca4b2cb6"
|
|
sha256 cellar: :any, mojave: "c4dc618a80e0edde991318b3eecfcda775fff86307f059355a2695000cd8f35d"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "glib"
|
|
depends_on MacfuseRequirement
|
|
depends_on :macos
|
|
|
|
# TODO: depend on specific X11 formulae instead
|
|
|
|
def install
|
|
ENV.append "CPPFLAGS", "-D__off_t=off_t"
|
|
system "autoreconf", "-fvi"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/curlftpfs --version 2>&1", 1)
|
|
end
|
|
end
|