commit: 08ba298aaec803478c2e3b6ec3a035ee84a87eb6 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Wed Mar 4 15:21:22 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 5 21:28:42 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08ba298a
net-libs/libtorrent: Bump to 0.16.7 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-libs/libtorrent/Manifest | 1 + net-libs/libtorrent/libtorrent-0.16.7.ebuild | 70 ++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/net-libs/libtorrent/Manifest b/net-libs/libtorrent/Manifest index 766d9bdc4a6a..9d5aed68ac20 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.6.tar.gz 887531 BLAKE2B 874595b09cdd623ff4669c7bf7e818081f8507af18b1b06ec1f977aed674366491f5797b95c10975661643a98aea037cf0a2bc1cebd81b8851aa4172402ffbfe SHA512 0742483787244915c6aba2c8db3001d8cae2e8e890bfe335614c83a69c0e203bde8896c6db2547e88bacc83379e764a76d42f9406febce810ec068730fb29a12 +DIST libtorrent-0.16.7.tar.gz 898952 BLAKE2B 7fd32e9f95236ce4aea8833f4cd357f340280212ce9471e1ee7d107acbbefa8d7a907a4846561111853fc1748050183b5f2bd08ae39f0efcb2cd9e7d3df52975 SHA512 f1710e46aba0543d3073f8610ecb706912af2fe069a33cf6657908f901e29b2c47b6481c61ac662fbd28f34d3feadcfde613e65ff7a388f75d968acc38e976fd diff --git a/net-libs/libtorrent/libtorrent-0.16.7.ebuild b/net-libs/libtorrent/libtorrent-0.16.7.ebuild new file mode 100644 index 000000000000..157b7f37d877 --- /dev/null +++ b/net-libs/libtorrent/libtorrent-0.16.7.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2026 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://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 ~sparc ~x86 ~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 +}
