From 4c8b6fa1fae0eb5e2dfbd0730d3a4ba2c7ac7242 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Wed, 23 Sep 2026 17:06:24 +0200 Subject: [PATCH] net-p2p/rtorrent: Bump to 0.16.24 Signed-off-by: Nicolas PARLANT Part-of: https://codeberg.org/gentoo/gentoo/pulls/1921 Signed-off-by: Sam James --- net-p2p/rtorrent/Manifest | 1 + net-p2p/rtorrent/rtorrent-0.16.24.ebuild | 124 +++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 net-p2p/rtorrent/rtorrent-0.16.24.ebuild diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest index 778df2b50ed29..5884e670c6db6 100644 --- a/net-p2p/rtorrent/Manifest +++ b/net-p2p/rtorrent/Manifest @@ -1,3 +1,4 @@ DIST rtorrent-0.15.7.tar.gz 866976 BLAKE2B e826f55b7411d0f11278a64b1851d4b5ff479b6872e513466d484000032a22d56025d4b04246ecd31b3229d71c0cb9738ac8bb76ed41865ef67dc27e4fe15b6c SHA512 99d8e276fb4044b123a5d8f147f8de521d228087ea13ce702cb8d601a14ce6b69cfbeb9a3d6ff394d49a5b0ae0a597c2dbafa687b550835ba5372e094c6b8ce6 DIST rtorrent-0.16.19.tar.gz 869579 BLAKE2B 30370038de621ac05ecfcaf79951c1727f0a06827377a51772a169148271f502c8680d14ebea191ce4fa794a40cf8c4b4a359790a09e49a54958dc4ea27ddaa5 SHA512 e410ac39871346c319ac9e99f7d80692b6ec73ef2d337b92b6112f63b2543db2ffb42bf3a8434ef1cb5bfc7e47b7d35182d7a9663b0b3ccc6234d3022fd90270 DIST rtorrent-0.16.22.tar.gz 879461 BLAKE2B 623eecae29bd70907f2159f5dbecb018a43a84003368902cb4dc384ca3ed05e0a053688f045bb18c3353d68cd5e020c8b2e036dc761f13eac38f1f9d69898619 SHA512 2f2f3ebb35eb276a1b87e084ce180b831c5d01a3e4eced958ced24c58a3dc9b0af1183c9874858eaea4ec606ab8ca3a34e0f7b59bc5b8701f3ce862f47fcd0c1 +DIST rtorrent-0.16.24.tar.gz 886723 BLAKE2B 3a91a9fecf53db029f3025b63b68fd495182b7873c152f0071b84e572cd32d4e6e0e344a930af7c1a6366ffef32e19591e8acedc8bec92d1d4eb3305a40a8cfe SHA512 d6cb1d867d89c97386f0e69b94c182eafb019d45b437377595ee0c4e5d0029fb90ac94845a3f49943c853d952705b5f6037873229d2a59bd8d6b7e8b0aeae2e4 diff --git a/net-p2p/rtorrent/rtorrent-0.16.24.ebuild b/net-p2p/rtorrent/rtorrent-0.16.24.ebuild new file mode 100644 index 0000000000000..a272b1c1c306b --- /dev/null +++ b/net-p2p/rtorrent/rtorrent-0.16.24.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# require 64-bit integer +LUA_COMPAT=( lua5-{3,4} ) + +inherit autotools lua-single systemd toolchain-funcs + +DESCRIPTION="BitTorrent Client using libtorrent" +HOMEPAGE="https://rtorrent.net" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/rakshasa/${PN}.git" +else + SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos ~x64-solaris" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug lua +ncurses selinux systemd test tinyxml2 xmlrpc" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + lua? ( ${LUA_REQUIRED_USE} ) + tinyxml2? ( !xmlrpc ) +" + +COMMON_DEPEND=" + ~net-libs/libtorrent-${PV} + virtual/zlib:= + lua? ( ${LUA_DEPS} ) + ncurses? ( sys-libs/ncurses:0= ) + systemd? ( sys-apps/systemd:= ) + xmlrpc? ( dev-libs/xmlrpc-c:=[libxml2] ) +" +DEPEND="${COMMON_DEPEND} + dev-cpp/nlohmann_json + test? ( dev-util/cppunit ) +" +RDEPEND="${COMMON_DEPEND} + selinux? ( sec-policy/selinux-rtorrent ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.16.13-cross_checks.patch +) + +DOCS=( doc/rtorrent.rc ) + +pkg_setup() { + use lua && lua-single_pkg_setup +} + +src_prepare() { + if use elibc_musl; then + QA_CONFIG_IMPL_DECL_SKIP=( posix_spawn_file_actions_addclosefrom_np ) + fi + + default + + # use system-json + rm -r src/rpc/nlohmann || die + sed -e 's@"rpc/nlohmann/json.h"@@' \ + -i src/rpc/jsonrpc.cc || die + + # https://github.com/rakshasa/rtorrent/issues/332 + cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die + + eautoreconf +} + +src_configure() { + tc-export PKG_CONFIG + local myeconfargs=( + $(use_enable debug) + $(use_with lua) + $(usev !ncurses --without-ncurses) + $(use_with systemd) + $(usev xmlrpc --with-xmlrpc-c="${PKG_CONFIG}") + $(usev tinyxml2 --with-xmlrpc-tinyxml2) + ) + + use lua && myeconfargs+=( + LUA_INCLUDE="$(lua_get_CFLAGS)" + LUA_LIB="$(lua_get_LIBS)" + LUA_VERSION="${ELUA/lua/}" + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + doman doc/rtorrent.1 + + # lua file is installed then in the proper directory + rm "${ED}"/usr/share/rtorrent/lua/rtorrent.lua || die + if use lua; then + insinto $(lua_get_lmod_dir) + doins lua/${PN}.lua + fi + + newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent + newconfd "${FILESDIR}/rtorrentd.conf" rtorrent + systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "rtorrentd@.service" +} + +pkg_postinst() { + einfo "This release could deprecate or introduce commands to configure RTorrent." + einfo "Please read the release notes before restarting:" + einfo "https://github.com/rakshasa/rtorrent/releases" + einfo "" + einfo "For configuration assistance, see:" + einfo "https://github.com/rakshasa/rtorrent/wiki" + + if ! use ncurses; then + einfo "${PN} was installed without ncurses support." + einfo "It can only be launched using:" + einfo "rtorrent -o system.daemon.set=true" + fi +}