commit: c17ba41c7a7338ef331d8bd3bd22f3b77ed9674d Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Wed Nov 5 06:32:43 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 26 02:21:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17ba41c
net-p2p/rtorrent: Bump to 0.16.4 bugfix release w/ improvements to IPv4/6 handling Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44491 Signed-off-by: Sam James <sam <AT> gentoo.org> net-p2p/rtorrent/Manifest | 1 + net-p2p/rtorrent/rtorrent-0.16.4.ebuild | 110 ++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest index d419e3cbb4b2..acdec426c7a6 100644 --- a/net-p2p/rtorrent/Manifest +++ b/net-p2p/rtorrent/Manifest @@ -2,4 +2,5 @@ DIST rtorrent-0.15.1.tar.gz 688056 BLAKE2B 0fd0b3748e1ec13935fa900434ad5d54c6062 DIST rtorrent-0.15.5.tar.gz 866800 BLAKE2B 7e92d127e5104c40b51fdfef8ec73e097d926ed042626cd81df9c4b8b0e951d0ff054bc38efebbbdbc8ef051ae8e7ecb3b31d57b2bd0732a8fed721cf2899c7f SHA512 54888d9a2b37c0e4ebf3e47203c863b1fad5b2e39fa2a563a09c2615f3ff603ee240da86a990a8e24597bc2da32bda98400f661f8241dc1fb16953eebdc20fc0 DIST rtorrent-0.15.7.tar.gz 866976 BLAKE2B e826f55b7411d0f11278a64b1851d4b5ff479b6872e513466d484000032a22d56025d4b04246ecd31b3229d71c0cb9738ac8bb76ed41865ef67dc27e4fe15b6c SHA512 99d8e276fb4044b123a5d8f147f8de521d228087ea13ce702cb8d601a14ce6b69cfbeb9a3d6ff394d49a5b0ae0a597c2dbafa687b550835ba5372e094c6b8ce6 DIST rtorrent-0.16.1.tar.gz 851083 BLAKE2B d4fdb6aa0c0e1cdb4b82d50b44e27ecd098aa6197373177c19cfdd27f72b4d11f9cd2356f3cc908b3ed054b1fc17b4be42628c9a08d9749eef4392b53f559422 SHA512 d3a34d71d7c55bee7dea1b3702257879ac0e9110d2dd2fcde771230b66b4e8f1234596d6300b4a38f252a6314e5dcf074cd85a89315e9e52abb40f0087b6a687 +DIST rtorrent-0.16.4.tar.gz 851592 BLAKE2B d14ee1354b02588882b087cc58c622d687b3dc1d7e0e18b84d2c6de8ce0beb13d552db252c6398a64a4139de3d0082f31e93317fc654a70413369274af23f577 SHA512 3e7b6cf10c2d8a376adff70a5a0d8de1b2c850143e8c697999c912535fe04ac18f39a782c3b914f6a322614ef7f575abfe7a9026ae7ab5e17958fcc4540685f5 DIST rtorrent-0.9.8.tar.gz 647523 BLAKE2B 3562ed03dee3baa4a702d20c7c91b9248d9de0f25d1f8cd182863101f293a0ef13cb49164e4d16b25e72a4fbe1cc1a2fbde176d3068c749edbcb2287ef260b2b SHA512 016685948d0290694ab9635ae218c7acd876e6d45bea1bdba3a29c545e64f5d824c5e2f6693a4c2e9200196177881d54f312d72e0a19742bd74a03bd19ca05c7 diff --git a/net-p2p/rtorrent/rtorrent-0.16.4.ebuild b/net-p2p/rtorrent/rtorrent-0.16.4.ebuild new file mode 100644 index 000000000000..1784897a603e --- /dev/null +++ b/net-p2p/rtorrent/rtorrent-0.16.4.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2025 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 + +DESCRIPTION="BitTorrent Client using libtorrent" +HOMEPAGE="https://rakshasa.github.io/rtorrent/" +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 ~amd64-linux ~x86-linux ~ppc-macos ~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() { + 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" +}
