homebrew-core/Formula/btfs.rb

37 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.18.tar.gz"
sha256 "bb9679045540554232eff303fc4f615d28eb4023461eae3f65f08f2427ec9ef2"
revision 1
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
2018-01-28 18:15:17 +00:00
sha256 "8d6304dcbbbd2ca488aa930f12afe2b392452c496cc79337d677a9569c8f2ea6" => :high_sierra
sha256 "d196daadfbfe1670faa9ec72a2071e44cfa5484eca8d018a255cf7223bf56105" => :sierra
sha256 "53f2962e4a4bad2e1b73eb373cb325655d217e55836ea31ae6f4f56bbdbf4bde" => :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