homebrew-core/Formula/btfs.rb

36 lines
1.2 KiB
Ruby
Raw Normal View History

2017-03-19 18:34:18 +00:00
class Btfs < Formula
desc "BitTorrent filesystem based on FUSE"
homepage "https://github.com/johang/btfs"
url "https://github.com/johang/btfs/archive/v2.17.tar.gz"
sha256 "80a5a3ad48bebf13441d506755b2402ac230dc3f1f648ce12d3855e5cf04e53b"
2017-03-19 18:34:18 +00:00
head "https://github.com/johang/btfs.git"
2017-04-19 13:11:57 +00:00
bottle do
cellar :any
2017-09-29 10:20:02 +00:00
sha256 "b52f7ee7ad70df58e4cf73135c86d5b87d5a8544ed1cc3f0b2b656af83a83fb0" => :high_sierra
2017-09-11 08:08:40 +00:00
sha256 "babf16ef8cda16858eae0ddf26dd84cb9ed31513b43b94dcea1d6e8d9f2291ff" => :sierra
sha256 "bc039ad8c3115de4a4111c271dc19ce4e2f014eea5336d3c42433b33fadd872e" => :el_capitan
2017-04-19 13:11:57 +00:00
end
2017-03-19 18:34:18 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on :osxfuse
depends_on "libtorrent-rasterbar"
def install
2017-07-27 04:32:19 +00:00
ENV.cxx11
2017-03-19 18:34:18 +00:00
inreplace "configure.ac", "fuse >= 2.8.0", "fuse >= 2.7.3"
system "autoreconf", "--force", "--install"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/btfs", "--help"
end
end