homebrew-core/Formula/btfs.rb

52 lines
1.4 KiB
Ruby

class Btfs < Formula
desc "BitTorrent filesystem based on FUSE"
homepage "https://github.com/johang/btfs"
url "https://github.com/johang/btfs/archive/v2.24.tar.gz"
sha256 "d71ddefe3c572e05362542a0d9fd0240d8d4e1578ace55a8b3245176e7fd8935"
license "GPL-3.0-only"
head "https://github.com/johang/btfs.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "ffdfc0e854a9f980b9df510458c5baa0910e5d6fd74862f106ff97f2fc0fe2cc"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "libtorrent-rasterbar"
uses_from_macos "curl"
on_macos do
disable! date: "2021-04-08", because: "requires closed-source macFUSE"
end
on_linux do
depends_on "libfuse@2"
end
def install
ENV.cxx11
inreplace "configure.ac", "fuse >= 2.8.0", "fuse >= 2.7.3"
system "autoreconf", "--force", "--install", "--verbose"
system "./configure", *std_configure_args, "--disable-silent-rules"
system "make", "install"
end
def caveats
on_macos do
<<~EOS
The reasons for disabling this formula can be found here:
https://github.com/Homebrew/homebrew-core/pull/64491
An external tap may provide a replacement formula. See:
https://docs.brew.sh/Interesting-Taps-and-Forks
EOS
end
end
test do
system "#{bin}/btfs", "--help"
end
end