Commit 10f60427 authored by Daniel Engberg's avatar Daniel Engberg
Browse files

net-p2p/libtorrent-rasterbar: Remove from tree

Broken for than a year in tree and no consumers left
parent 26ae2776
Loading
Loading
Loading
Loading
+1 −0
Changes for MOVED: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5726,3 +5726,4 @@ dns/dog||2026-10-04|Broken for years in tree and upstream is inactive
games/frogatto||2026-10-04|Broken for than a year in tree
lang/intel-compute-runtime||2026-10-04|Broken for than a year in tree
math/xlapack||2026-10-04|Broken for than a year in tree
net-p2p/libtorrent-rasterbar||2026-10-04|Broken for than a year in tree and no consumers left
+0 −1
Changes for net-p2p/Makefile: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@
    SUBDIR += ktorrent
    SUBDIR += libktorrent
    SUBDIR += libtorrent
    SUBDIR += libtorrent-rasterbar
    SUBDIR += libtorrent-rasterbar2
    SUBDIR += libutp
    SUBDIR += lidarr
+0 −76
Changes for net-p2p/libtorrent-rasterbar/Makefile: 0 added lines, 76 removed lines.
Original line number Diff line number Diff line
PORTNAME=	libtorrent-rasterbar
DISTVERSION=	1.2.20 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781
PORTREVISION=	3
PORTEPOCH=	2
CATEGORIES=	net-p2p
MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C++ library implementing a BitTorrent client
WWW=		https://libtorrent.org \
		https://github.com/arvidn/libtorrent

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN=		fails to build with Boost>=1.87, see https://github.com/arvidn/libtorrent/issues/7875

LIB_DEPENDS=	libboost_chrono.so:devel/boost-libs \
		libboost_random.so:devel/boost-libs \
		libboost_thread.so:devel/boost-libs

USES=		cmake compiler:c++17-lang iconv:wchar_t localbase:ldflags pathfix pkgconfig python:test shebangfix ssl
SHEBANG_FILES=	test/socks.py test/web_server.py
USE_LDCONFIG=	yes

USE_CXXSTD=	c++17 # prevent boost-related SEGV, see bug#264278

LDFLAGS+=	${ICONV_LIB}

SHLIB_VER=	10
PLIST_SUB+=	SHLIB_VER="${SHLIB_VER}" SO_VER="${DISTVERSION}"

DOCFILES=	AUTHORS ChangeLog
PORTDOCS=	${DOCFILES} docs/*
PORTEXAMPLES=	*.cpp

OPTIONS_DEFINE=		DOCS EXAMPLES LOGGING
OPTIONS_DEFAULT=	LOGGING
OPTIONS_SUB=		yes
LOGGING_DESC=		Enable logging to disk

EXAMPLES_CMAKE_BOOL=	build_examples
LOGGING_CMAKE_BOOL=	logging

PORTSCOUT=	limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does

CONFLICTS_INSTALL=	libtorrent-rasterbar2

post-patch:
	@${REINPLACE_CMD} -e 's|return "python3";|return "${PYTHON_CMD}";|' \
		${WRKSRC}/test/setup_transfer.cpp

post-install:
	# py-bindings seems to link this exact name after v1.2.14
	# TODO: figure out how to make symlinks in Jamfile
	/bin/ln -s libtorrent-rasterbar.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libtorrent-rasterbar.so.10.0.0
	@${RM} ${STAGEDIR}${PREFIX}/include/libtorrent/Makefile*

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}
	${RM} ${STAGEDIR}${DOCSDIR}/docs/._*

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} \
		${STAGEDIR}${EXAMPLESDIR}

do-test:
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -Dbuild_tests:BOOL=ON ${CMAKE_SOURCE_PATH} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test

.include <bsd.port.mk>
+0 −3
Changes for net-p2p/libtorrent-rasterbar/distinfo: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
TIMESTAMP = 1738128489
SHA256 (libtorrent-rasterbar-1.2.20.tar.gz) = ccbf8e8c21dc81635de95166b498922b4725f9725a23b2cfe2a6b2fead6fb9fc
SIZE (libtorrent-rasterbar-1.2.20.tar.gz) = 4227996
+0 −14
Changes for net-p2p/libtorrent-rasterbar/files/patch-cmake_Modules_GeneratePkgConfig.cmake: 0 added lines, 14 removed lines.
Original line number Diff line number Diff line
--- cmake/Modules/GeneratePkgConfig.cmake.orig	2020-08-09 10:43:19 UTC
+++ cmake/Modules/GeneratePkgConfig.cmake
@@ -171,6 +171,11 @@ function(generate_and_install_pkg_config_file _target 
 	set(_pkg_config_file_template_filename "${_GeneratePkGConfigDir}/pkg-config.cmake.in")
 
 	# put target and project properties into a file
+	# Avoid things in the CFLAGS -- which can come from INTERFACE_OPTIONS
+	# of dependencies -- that don't work with file(GENERATE). CMake bug 21074
+	string(REPLACE "<COMPILE_LANG_AND_ID:CUDA,NVIDIA>" "<COMPILE_LANGUAGE:CUDA>" _s "${_interface_compile_options}")
+	set(_interface_compile_options "${_s}")
+
 	configure_file("${_GeneratePkGConfigDir}/target-compile-settings.cmake.in"
 		"${_generate_target_dir}/compile-settings.cmake" @ONLY)
 
Loading