commit:     00569ec8e69b947d2117df74dc027b08fd0ebb97
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Oct 20 15:17:15 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 21 11:07:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00569ec8

net-p2p/rtorrent: add 0.16.1

Bump from live

optional tinyxml2 is no longer 'experimental'

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44273
Closes: https://github.com/gentoo/gentoo/pull/44273
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-p2p/rtorrent/Manifest               |   1 +
 net-p2p/rtorrent/metadata.xml           |   2 +-
 net-p2p/rtorrent/rtorrent-0.16.1.ebuild | 110 ++++++++++++++++++++++++++++++++
 3 files changed, 112 insertions(+), 1 deletion(-)

diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest
index 7a2d19307bd3..d419e3cbb4b2 100644
--- a/net-p2p/rtorrent/Manifest
+++ b/net-p2p/rtorrent/Manifest
@@ -1,4 +1,5 @@
 DIST rtorrent-0.15.1.tar.gz 688056 BLAKE2B 
0fd0b3748e1ec13935fa900434ad5d54c6062ea48c5f8cb320d0a30cb318c09f80347ca665c61a7745770c965eee5e1cfa7e96968a2468ad06711b80be5d6e92
 SHA512 
e5c713601ecb0c4536b64d98ca53261db35980b04a3f274d12f51467b021d77768e7f6a2004a33a76a99f7d96e0a2c3de4605fd7ee186ba05a7c16aa96b97ea5
 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.9.8.tar.gz 647523 BLAKE2B 
3562ed03dee3baa4a702d20c7c91b9248d9de0f25d1f8cd182863101f293a0ef13cb49164e4d16b25e72a4fbe1cc1a2fbde176d3068c749edbcb2287ef260b2b
 SHA512 
016685948d0290694ab9635ae218c7acd876e6d45bea1bdba3a29c545e64f5d824c5e2f6693a4c2e9200196177881d54f312d72e0a19742bd74a03bd19ca05c7

diff --git a/net-p2p/rtorrent/metadata.xml b/net-p2p/rtorrent/metadata.xml
index f5c1fe38c3a2..68c41c12ea5b 100644
--- a/net-p2p/rtorrent/metadata.xml
+++ b/net-p2p/rtorrent/metadata.xml
@@ -7,7 +7,7 @@
        </maintainer>
        <use>
                <flag name="tinyxml2">
-               Use vendor tinyxml2 instead of xmlrpc-c. This allows 
significant reduction in overhead (experimental)
+               Use vendor tinyxml2 instead of xmlrpc-c. This allows 
significant reduction in overhead
                </flag>
        </use>
        <upstream>

diff --git a/net-p2p/rtorrent/rtorrent-0.16.1.ebuild 
b/net-p2p/rtorrent/rtorrent-0.16.1.ebuild
new file mode 100644
index 000000000000..1784897a603e
--- /dev/null
+++ b/net-p2p/rtorrent/rtorrent-0.16.1.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";
+}

Reply via email to