aboutsummaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-03-26 00:48:28 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-03-26 00:48:28 +0000
commit9cb3d5e527a237c11e786a2bc867b62feb4c0cef (patch)
tree089e46d493ff184f618477f5ca1e5d26963a4df5 /net-p2p
parent46411bef9fbdcc8b9a9d43059a35a2aa241314eb (diff)
downloadports-9cb3d5e527a237c11e786a2bc867b62feb4c0cef.tar.gz
ports-9cb3d5e527a237c11e786a2bc867b62feb4c0cef.zip
net-p2p/py-libtorrent-rasterbar: Downgrade 2.0.2 -> 1.2.12
2.0.2 is not stable, causes huge memory footprint and looks like WIP.
Notes
Notes: svn path=/head/; revision=569235
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/py-libtorrent-rasterbar/Makefile30
-rw-r--r--net-p2p/py-libtorrent-rasterbar/distinfo8
2 files changed, 14 insertions, 24 deletions
diff --git a/net-p2p/py-libtorrent-rasterbar/Makefile b/net-p2p/py-libtorrent-rasterbar/Makefile
index f1be2328c9b0..8f46be15c25a 100644
--- a/net-p2p/py-libtorrent-rasterbar/Makefile
+++ b/net-p2p/py-libtorrent-rasterbar/Makefile
@@ -2,43 +2,35 @@
# $FreeBSD$
PORTNAME= libtorrent-rasterbar
-DISTVERSION= 2.0.2
-PORTREVISION= 1
+DISTVERSIONPREFIX= libtorrent-
+DISTVERSION= 1.2.10
+PORTEPOCH= 1
CATEGORIES= net-p2p python
-MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-PATCH_SITES= https://github.com/arvidn/libtorrent/commit/
-PATCHFILES= 2e9a8423c8e2d3eba49165bacbae2878e25991cb.patch:-p3 # https://github.com/arvidn/libtorrent/pull/6016/commits
-
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python bindings for libtorrent-rasterbar
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/../../COPYING
-BUILD_DEPENDS= b2:devel/boost_build
-#LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
-# ${PY_BOOST}
-LIB_DEPENDS= ${PY_BOOST} # Python binding rebuilds whole libtorrent: https://github.com/arvidn/libtorrent/issues/6017
+LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
+ ${PY_BOOST}
-USES= compiler:c11 iconv localbase:ldflags python:3.6+
+USES= compiler:c11 iconv localbase python:3.6+
+USE_GITHUB= yes
+GH_ACCOUNT= arvidn
+GH_PROJECT= libtorrent
USE_PYTHON= distutils autoplist
-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
-
-PYDISTUTILS_BUILD_TARGET= build_ext
-PYDISTUTILS_BUILDARGS= --boost-link=shared # otherwise it uses the static library and fails to build the python object: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment
+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}" \
- BOOST_ROOT=${LOCALBASE}
+ PYTHON_VERSION="${PYTHON_VERSION}"
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libtorrent*.so
diff --git a/net-p2p/py-libtorrent-rasterbar/distinfo b/net-p2p/py-libtorrent-rasterbar/distinfo
index ad7cd69af61a..146fcd43aa5b 100644
--- a/net-p2p/py-libtorrent-rasterbar/distinfo
+++ b/net-p2p/py-libtorrent-rasterbar/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1614539774
-SHA256 (libtorrent-rasterbar-2.0.2.tar.gz) = 3af22ea1b60e04a7cf357a3d770470ea5df15e968501782bd1414634a2b42cb7
-SIZE (libtorrent-rasterbar-2.0.2.tar.gz) = 4269533
-SHA256 (2e9a8423c8e2d3eba49165bacbae2878e25991cb.patch) = 189088dc121b6c62915b1edb76681298ccf34e0a4f628c4bee67a95b4ffceba9
-SIZE (2e9a8423c8e2d3eba49165bacbae2878e25991cb.patch) = 1422
+TIMESTAMP = 1599281590
+SHA256 (arvidn-libtorrent-libtorrent-1.2.10_GH0.tar.gz) = e0fedb583f1e7bdcc0eb80a9df064a1e6fb0b825d8423e64bdb0f7a35879a09e
+SIZE (arvidn-libtorrent-libtorrent-1.2.10_GH0.tar.gz) = 3586008