jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / r / rtorrent.rb
blob78a769d7cf370d216575d0058f968af2b8fdcd05
1 class Rtorrent < Formula
2   desc "Ncurses BitTorrent client based on libtorrent-rakshasa"
3   homepage "https://github.com/rakshasa/rtorrent"
4   url "https://github.com/rakshasa/rtorrent/releases/download/v0.15.1/rtorrent-0.15.1.tar.gz"
5   sha256 "1d5437d7a6828f2f72a6c309f25f136eda1be69b059d250bc52e0d4185420506"
6   license "GPL-2.0-or-later"
8   bottle do
9     sha256 cellar: :any,                 arm64_sequoia: "e7fd8876fa905a4e5c0048075d04a061fb28147e727eecfd4b80ce994c96d885"
10     sha256 cellar: :any,                 arm64_sonoma:  "a67c258fef8075692db56f63c63eada71a8fc5b66c513762953457f074530149"
11     sha256 cellar: :any,                 arm64_ventura: "acc2ee7afe587f3ed97e379cd2ad238af586483d3783571d2a6fea90a2eaaf3d"
12     sha256 cellar: :any,                 sonoma:        "48e01478a36cdcdff32d78a2effa418e00b3ce838cdb02b092bdd26729c873ef"
13     sha256 cellar: :any,                 ventura:       "5f269d47486ddc79fe24ece2dff35cbe16abd3a3210dc899abd64c682b352fe3"
14     sha256 cellar: :any_skip_relocation, x86_64_linux:  "2107b8aeefe50f463128299c7a26549f060c85e788dfdbd4b55020cb8f45f24a"
15   end
17   depends_on "autoconf" => :build
18   depends_on "autoconf-archive" => :build
19   depends_on "automake" => :build
20   depends_on "libtool" => :build
21   depends_on "pkgconf" => :build
23   depends_on "libtorrent-rakshasa"
24   depends_on "xmlrpc-c"
26   uses_from_macos "curl"
27   uses_from_macos "ncurses"
29   def install
30     system "autoreconf", "--force", "--install", "--verbose"
31     system "./configure", "--with-xmlrpc-c", *std_configure_args
32     system "make"
33     system "make", "install"
34   end
36   test do
37     pid = spawn bin/"rtorrent", "-n", "-s", testpath
38     sleep 10
39     assert_path_exists testpath/"rtorrent.lock"
40   ensure
41     Process.kill("HUP", pid)
42   end
43 end