diff --git a/net-p2p/libtorrent-rasterbar/Makefile b/net-p2p/libtorrent-rasterbar/Makefile index eb4685825bc7..d01271fbc749 100644 --- a/net-p2p/libtorrent-rasterbar/Makefile +++ b/net-p2p/libtorrent-rasterbar/Makefile @@ -1,73 +1,72 @@ PORTNAME= libtorrent-rasterbar -DISTVERSION= 1.2.19 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781 -PORTREVISION= 2 +DISTVERSION= 1.2.20 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781 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/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_chrono.so:devel/boost-libs \ libboost_random.so:devel/boost-libs \ libboost_system.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 diff --git a/net-p2p/libtorrent-rasterbar/distinfo b/net-p2p/libtorrent-rasterbar/distinfo index 8b06032cdc12..f787f9faa78b 100644 --- a/net-p2p/libtorrent-rasterbar/distinfo +++ b/net-p2p/libtorrent-rasterbar/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1710066451 -SHA256 (libtorrent-rasterbar-1.2.19.tar.gz) = eee8e99548dc5eb5e643e49db9202f4f97112c032dba883dfdc8144af5b6e40e -SIZE (libtorrent-rasterbar-1.2.19.tar.gz) = 4244826 +TIMESTAMP = 1738128489 +SHA256 (libtorrent-rasterbar-1.2.20.tar.gz) = ccbf8e8c21dc81635de95166b498922b4725f9725a23b2cfe2a6b2fead6fb9fc +SIZE (libtorrent-rasterbar-1.2.20.tar.gz) = 4227996 diff --git a/net-p2p/py-libtorrent-rasterbar/Makefile b/net-p2p/py-libtorrent-rasterbar/Makefile index 20aa82547b0b..9108a6a9d81e 100644 --- a/net-p2p/py-libtorrent-rasterbar/Makefile +++ b/net-p2p/py-libtorrent-rasterbar/Makefile @@ -1,45 +1,51 @@ PORTNAME= libtorrent-rasterbar DISTVERSIONPREFIX= v -DISTVERSION= 1.2.19 +DISTVERSION= 1.2.20 PORTEPOCH= 2 CATEGORIES= net-p2p python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python bindings for libtorrent-rasterbar WWW= https://libtorrent.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/../../COPYING BUILD_DEPENDS= b2:devel/boost_build -LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \ +LIB_DEPENDS= libboost_system.so:devel/boost-libs \ + libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \ ${PY_BOOST} USES= compiler:c11 iconv localbase:ldflags python USE_GITHUB= yes GH_ACCOUNT= arvidn GH_PROJECT= libtorrent USE_PYTHON= distutils PYDISTUTILS_PKGNAME= libtorrent PYDISTUTILS_BUILD_TARGET= build_ext --b2-args="fpic=on libtorrent-link=shared boost-link=shared" PYDISTUTILS_INSTALL_TARGET= build_ext --b2-args="fpic=on libtorrent-link=shared boost-link=shared" install BINARY_ALIAS= b2=${FILESDIR}/b2 CFLAGS+= -DTORRENT_DISABLE_LOGGING # undefined symbol: https://github.com/arvidn/libtorrent/issues/3331 LDFLAGS+= ${LOCALBASE}/lib/libboost_python${PYTHON_SUFFIX}.so ${LOCALBASE}/lib/libiconv.so # fails to link libs: https://github.com/arvidn/libtorrent/issues/3330 WRKSRC_SUBDIR= bindings/python # ensure python paths are correctly identified CONFIGURE_ENV= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \ PYTHON_VERSION="${PYTHON_VERSION}" PORTSCOUT= limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does -PLIST_FILES+= ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}/__init__${PYTHON_EXT_SUFFIX}.so +PLIST_FILES+= ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}/__init__${PYTHON_EXT_SUFFIX}.so \ + ${PYTHON_SITELIBDIR}/libtorrent-_${DISTVERSION}_-py${PYTHON_VER}.egg-info/PKG-INFO \ + ${PYTHON_SITELIBDIR}/libtorrent-_${DISTVERSION}_-py${PYTHON_VER}.egg-info/SOURCES.txt \ + ${PYTHON_SITELIBDIR}/libtorrent-_${DISTVERSION}_-py${PYTHON_VER}.egg-info/dependency_links.txt \ + ${PYTHON_SITELIBDIR}/libtorrent-_${DISTVERSION}_-py${PYTHON_VER}.egg-info/top_level.txt + post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PYDISTUTILS_PKGNAME}/__init__${PYTHON_EXT_SUFFIX}.so .include diff --git a/net-p2p/py-libtorrent-rasterbar/distinfo b/net-p2p/py-libtorrent-rasterbar/distinfo index 7f0b527c0640..4ef31351b25b 100644 --- a/net-p2p/py-libtorrent-rasterbar/distinfo +++ b/net-p2p/py-libtorrent-rasterbar/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1690531421 -SHA256 (arvidn-libtorrent-v1.2.19_GH0.tar.gz) = c09c3f13dd6462d6ef0a5d1780ed0f73b504fcfbbdb5c6cad2cfad05daea50ba -SIZE (arvidn-libtorrent-v1.2.19_GH0.tar.gz) = 3637555 +TIMESTAMP = 1738128465 +SHA256 (arvidn-libtorrent-v1.2.20_GH0.tar.gz) = 6243d87e54c8d3c9336af1f8ef3fedf7b54e03c2be105a9914f07ec5059e4743 +SIZE (arvidn-libtorrent-v1.2.20_GH0.tar.gz) = 3639643