commit: 26d4d87d002d1471146ad55af9ac44fadd513a5d Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Fri Sep 5 21:04:45 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 6 14:32:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26d4d87d
net-libs/libtorrent: add 9999 new release 0.16.0 'development' is out with changes the latest releases of this type have proven to be quite unstable. a live ebuild is suitable here curl has been moved from rtorrent 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/libtorrent-9999.ebuild | 70 ++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/net-libs/libtorrent/libtorrent-9999.ebuild b/net-libs/libtorrent/libtorrent-9999.ebuild new file mode 100644 index 000000000000..6ee60f1447e6 --- /dev/null +++ b/net-libs/libtorrent/libtorrent-9999.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 + 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 +}
