33 lines
1.0 KiB
Ruby
33 lines
1.0 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 "curl"
|
|
depends_on "libfuse@2"
|
|
depends_on "libtorrent-rasterbar"
|
|
depends_on :linux # on macOS, requires closed-source macFUSE
|
|
|
|
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
|
|
|
|
test do
|
|
system "#{bin}/btfs", "--help"
|
|
end
|
|
end
|