From 4915af174e074234660a723e9c2efc393eef84a9 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 29 Sep 2024 14:43:08 -0400 Subject: [PATCH] rtorrent 0.10.0 autobump: add rtorrent Signed-off-by: Rui Chen rtorrent: update build Signed-off-by: Rui Chen rtorrent: add osx build patch Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/r/rtorrent.rb | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/autobump.txt b/.github/autobump.txt index 71c57658f5d5a..9d5ba21dc6b0a 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -2370,6 +2370,7 @@ rrdtool rswift rsyncy rsyslog +rtorrent rubberband ruby ruby@3.1 diff --git a/Formula/r/rtorrent.rb b/Formula/r/rtorrent.rb index 5114ee8b616f3..5ecf8f830d18d 100644 --- a/Formula/r/rtorrent.rb +++ b/Formula/r/rtorrent.rb @@ -1,10 +1,9 @@ class Rtorrent < Formula desc "Ncurses BitTorrent client based on libtorrent-rakshasa" homepage "https://github.com/rakshasa/rtorrent" - url "https://github.com/rakshasa/rtorrent/releases/download/v0.9.8/rtorrent-0.9.8.tar.gz" - sha256 "9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af" + url "https://github.com/rakshasa/rtorrent/releases/download/v0.10.0/rtorrent-0.10.0.tar.gz" + sha256 "cc65bba7abead24151f10af116eca2342b0c320fdff3cb8d604c0af09215d3aa" license "GPL-2.0-or-later" - revision 3 bottle do sha256 cellar: :any, arm64_sequoia: "d73c40d99e7cfbaa067a7c3b405ac28501376977857a68a66a9468122aa1d850" @@ -18,21 +17,26 @@ class Rtorrent < Formula end depends_on "autoconf" => :build + depends_on "autoconf-archive" => :build depends_on "automake" => :build depends_on "libtool" => :build depends_on "pkg-config" => :build + depends_on "libtorrent-rakshasa" depends_on "xmlrpc-c" uses_from_macos "curl" uses_from_macos "ncurses" - def install - args = ["--prefix=#{prefix}", "--with-xmlrpc-c", - "--disable-debug", "--disable-dependency-tracking"] + # patch to use fsync for osx builds, upstream pr ref, https://github.com/rakshasa/rtorrent/pull/1297 + patch do + url "https://github.com/rakshasa/rtorrent/commit/ad491b46ede1593dc28120231b87051530f5b391.patch?full_index=1" + sha256 "5242ccb5e85a40860d3928f3264d5579976717d071bdb228960eab8926396a69" + end - system "sh", "autogen.sh" - system "./configure", *args + def install + system "autoreconf", "--force", "--install", "--verbose" + system "./configure", "--with-xmlrpc-c", *std_configure_args system "make" system "make", "install" end