commit: 1b1b3336bcac07cc14679fc8aa0d1c80ba93ded7 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Wed Mar 4 15:21:49 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 5 21:28:43 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b1b3336
net-p2p/rtorrent: Bump to 0.16.7 This release should fix (most?) issues with libcurl and polling Bug: https://bugs.gentoo.org/968730 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/214 Signed-off-by: Sam James <sam <AT> gentoo.org> net-p2p/rtorrent/Manifest | 1 + net-p2p/rtorrent/rtorrent-0.16.7.ebuild | 112 ++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest index 8a1a35051beb..4133174f6b62 100644 --- a/net-p2p/rtorrent/Manifest +++ b/net-p2p/rtorrent/Manifest @@ -1,2 +1,3 @@ DIST rtorrent-0.15.7.tar.gz 866976 BLAKE2B e826f55b7411d0f11278a64b1851d4b5ff479b6872e513466d484000032a22d56025d4b04246ecd31b3229d71c0cb9738ac8bb76ed41865ef67dc27e4fe15b6c SHA512 99d8e276fb4044b123a5d8f147f8de521d228087ea13ce702cb8d601a14ce6b69cfbeb9a3d6ff394d49a5b0ae0a597c2dbafa687b550835ba5372e094c6b8ce6 DIST rtorrent-0.16.6.tar.gz 857149 BLAKE2B c5ae746967bd048337f5a166823d100450c9d9cf9e94ccd58fcea24ceb9be343342d0361b6f6d200a3a530ee7032a61aa837f1de69579cb96449f93308f2fe54 SHA512 bba8ef70956fd803ff9daaea07bead700b90ebe9da0ac8dcd7d6b23060d7f730e36deba058d5731577f89227473a0d00a303ef5674648ad9bbdee0a4b758bf66 +DIST rtorrent-0.16.7.tar.gz 854409 BLAKE2B 1ed2558e99c604cc7d715b2d9e22f7f6d3a8a817ab72eecfd72ccdd130562c447416078f2f72a4deccde2a5e36098a0ab699d1ca6e2e9393419f0e20f4662d54 SHA512 fbcd2214c9a98dd446d57bab7a7a61f334b063d2aaf60439e70c52ba48a079762356b85f5471b58091e75638dc82c2d77476fa81c182d3ccb6c82650d6c05615 diff --git a/net-p2p/rtorrent/rtorrent-0.16.7.ebuild b/net-p2p/rtorrent/rtorrent-0.16.7.ebuild new file mode 100644 index 000000000000..fa8c68ca98ed --- /dev/null +++ b/net-p2p/rtorrent/rtorrent-0.16.7.ebuild @@ -0,0 +1,112 @@ +# 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 ~ppc ~ppc64 ~x86 ~x64-macos ~x64-solaris" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug lua selinux test tinyxml2 xmlrpc" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + lua? ( ${LUA_REQUIRED_USE} ) + tinyxml2? ( !xmlrpc ) +" + +COMMON_DEPEND=" + ~net-libs/libtorrent-${PV} + sys-libs/ncurses:0= + lua? ( ${LUA_DEPS} ) + xmlrpc? ( dev-libs/xmlrpc-c:=[libxml2] ) +" +DEPEND="${COMMON_DEPEND} + dev-cpp/nlohmann_json +" +RDEPEND="${COMMON_DEPEND} + selinux? ( sec-policy/selinux-rtorrent ) +" +BDEPEND=" + virtual/pkgconfig + test? ( dev-util/cppunit ) +" + +DOCS=( doc/rtorrent.rc ) + +pkg_setup() { + use lua && lua-single_pkg_setup +} + +src_prepare() { + default + + # use system-json + rm -r src/rpc/nlohmann || die + sed -e 's@"rpc/nlohmann/json.h"@<nlohmann/json.hpp>@' \ + -i src/rpc/jsonrpc.cc || die + + # https://github.com/rakshasa/rtorrent/issues/332 + cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die + + if [[ ${CHOST} != *-darwin* ]]; then + # syslibroot is only for macos, change to sysroot for others + sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die + fi + + eautoreconf +} + +src_configure() { + # used by xmlrpc-c-config + tc-export PKG_CONFIG + local myeconfargs=( + $(use_enable debug) + $(use_with lua) + $(usev xmlrpc --with-xmlrpc-c) + $(usev tinyxml2 --with-xmlrpc-tinyxml2) + ) + + use lua && myeconfargs+=( + LUA_INCLUDE="-I$(lua_get_include_dir)" + ) + + 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" "[email protected]" +} + +pkg_postinst() { + einfo "This release could introduce new 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" +}
