commit:     20f65e6633c940002efc73ca279cdbbb1a901011
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Wed Dec  3 05:54:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 11:58:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20f65e66

net-libs/libtorrent: Bump to 0.16.5

bugfix release (cpu usage)

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

 net-libs/libtorrent/Manifest                 |  1 +
 net-libs/libtorrent/libtorrent-0.16.5.ebuild | 70 ++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/net-libs/libtorrent/Manifest b/net-libs/libtorrent/Manifest
index e438c21ae649..0012f8936722 100644
--- a/net-libs/libtorrent/Manifest
+++ b/net-libs/libtorrent/Manifest
@@ -1,2 +1,3 @@
 DIST libtorrent-0.15.7.tar.gz 872380 BLAKE2B 
58188897a04a749b6d6e201c6da460952aff5e55231131dc29bd0a008cde0e5a39a1bc8eaaf90a7aa3ae160b2c961d40ba1de42f800f46871d835670746ef0b8
 SHA512 
53f8904f267b1fbfb9aa52ae5ec8740fee23ff3d3e3b115b4937aec3f27a233d0d11d9c56c4fbbad0078f66920759c23ae5e70c8e2129b05aff597735d0ba4ec
 DIST libtorrent-0.16.4.tar.gz 887123 BLAKE2B 
a4df904ade208eb46bfced910586ac80d955f2425a9169108b198937821124d114b1636f49df51d9dfbe33809341c0feacff350340412478f621f2b6a1529ff1
 SHA512 
f01d405bbe208ea3b457fbc89411057d39bfa1fcf889f795a8f005d7b8c5bc152c9f5661487f4261f0fe70e016d0428ce5a36b1604aab6b2bb8ee4b495e4c1ec
+DIST libtorrent-0.16.5.tar.gz 887247 BLAKE2B 
ae17c70f0271740a0fef7daad5903356413ec2b434933300d26cb0c9e1d0220728bdb17c58b9799d9bb860b4c9972e75ed03ce54b38b4769479ab82ecb1d7c3a
 SHA512 
e7638aef32e453c5b631b7a631cce6413ae36138b062eb1bfa2ebc5a599dfaeff2a935e46972aa160a2f35c303a9b9c7ffed6a521e75fd1f3a45507c9069d00a

diff --git a/net-libs/libtorrent/libtorrent-0.16.5.ebuild 
b/net-libs/libtorrent/libtorrent-0.16.5.ebuild
new file mode 100644
index 000000000000..d797e3cafdaa
--- /dev/null
+++ b/net-libs/libtorrent/libtorrent-0.16.5.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="BitTorrent library written in C++ for *nix"
+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 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+fi
+
+LICENSE="GPL-2"
+# The README says that the library ABI is not yet stable and dependencies on
+# the library should be an explicit, syncronized version until the library
+# has had more time to mature. Until it matures we should not include a soname
+# subslot.
+SLOT="0"
+IUSE="debug test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/openssl:=
+       net-libs/udns
+       net-misc/curl
+       virtual/zlib:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       test? ( dev-util/cppunit )
+"
+
+src_prepare() {
+       default
+
+       # use system-udns
+       rm -r src/net/udns || die
+       sed -e 's@"net/udns/udns.h"@<udns.h>@' \
+               -e '\@^#include "net/udns/udns_.*.c"@d' \
+               -i src/net/udns_library.cc src/net/udns_library.h 
src/net/udns_resolver.cc || 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=(
+               LIBS="-ludns"
+               --enable-aligned
+               $(use_enable debug)
+               --with-posix-fallocate
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       find "${ED}" -type f -name '*.la' -delete || die
+}

Reply via email to