commit: 32b37af29d405bae95612f327d30f2aea10a90b5 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Fri Sep 5 21:04:55 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 6 14:32:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32b37af2
net-libs/libtorrent: add 0.15.7 bugfix release remove explicitly bash. This was a workaround for old solaris system. build is ok with ksh, dash, bash remove test for instrumentation, code has been reworked since 0.15.0 use sed-op to unbundle udns, more resilient. 3rd lib is removed so building will fail if sed does nothing Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43457 Signed-off-by: Sam James <sam <AT> gentoo.org> net-libs/libtorrent/Manifest | 1 + net-libs/libtorrent/libtorrent-0.15.7.ebuild | 69 ++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/net-libs/libtorrent/Manifest b/net-libs/libtorrent/Manifest index 49081bf4cf4d..2b8d44c40dcb 100644 --- a/net-libs/libtorrent/Manifest +++ b/net-libs/libtorrent/Manifest @@ -1,3 +1,4 @@ DIST libtorrent-0.13.8.tar.gz 834027 BLAKE2B 374f33af52a45c244182d36bacd6b42eea9edc179e42fb40f4170a47a0cdd39cfb3f42f82fc26ab36718afb9a28a8dd72ca139b3646bbc1c2887444905438cdd SHA512 417177df5b27cd8c6a6317063b0846da2690de4633836466728605c2edad2de407d29d321cc481b8d1352dd0ff6dd89f4566a830424a8cf986f2fddb04704da4 DIST libtorrent-0.15.1.tar.gz 805722 BLAKE2B 7b4b9aba8133a2a20a5dd39d451c9478c44f133ae3b5929b79cbd25fb0754b4bc64291a75da898ed335a808b992d67ffa7a3a431420da7073d2fb3c927109649 SHA512 e7d607fc3e31e2d6f4643c6760a271324a4f8f102e07228aca13427073426a393b12006329206fa14108d93c2f378a8db3761b0e14ff3ae391551777b4b04a6a DIST libtorrent-0.15.5.tar.gz 870807 BLAKE2B f59677fa39086a01ceb4b982b3328990e6eea72473a2eb4d8df7cbf23e289ec8c75ff3022ff373bdde441d7dc73fcdf9f2e314a580edaf14811d33f53ca5b52a SHA512 78444410b76f81e4f230d7e64ce187d24be027ae456d5082253970f85f7c1ade9d988073ba213427deae81d766abc3eebe7a48d7cd28a1cd3c2c597737deb599 +DIST libtorrent-0.15.7.tar.gz 872380 BLAKE2B 58188897a04a749b6d6e201c6da460952aff5e55231131dc29bd0a008cde0e5a39a1bc8eaaf90a7aa3ae160b2c961d40ba1de42f800f46871d835670746ef0b8 SHA512 53f8904f267b1fbfb9aa52ae5ec8740fee23ff3d3e3b115b4937aec3f27a233d0d11d9c56c4fbbad0078f66920759c23ae5e70c8e2129b05aff597735d0ba4ec diff --git a/net-libs/libtorrent/libtorrent-0.15.7.ebuild b/net-libs/libtorrent/libtorrent-0.15.7.ebuild new file mode 100644 index 000000000000..8876719ce9be --- /dev/null +++ b/net-libs/libtorrent/libtorrent-0.15.7.ebuild @@ -0,0 +1,69 @@ +# 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 + sys-libs/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 +}
