net-p2p/py-libtorrent-rasterbar: Add workarounds for several bugs in the python binding

Several missing symbol problems are worked around by adding a define to CFLAGS, and adding libraries to LDFLAGS.
Also fix a typo in pkg-descr.

Reported by:	TJ <tj@mrsk.me>
This commit is contained in:
Yuri Victorovich 2018-10-06 23:18:17 +00:00
parent 39709077f1
commit ef33df61d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=481404
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= libtorrent-rasterbar
DISTVERSION= 1.1.10
PORTREVISION= 1
CATEGORIES= net-p2p ipv6 python
MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -16,9 +17,12 @@ LICENSE_FILE= ${WRKSRC}/../../COPYING
LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
${PY_BOOST}
USES= localbase python
USES= iconv localbase python
USE_PYTHON= distutils autoplist
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

View File

@ -1,4 +1,4 @@
The python vinfing of libtorrent, an open source C++ library implementing the
The python binfing of libtorrent, an open source C++ library implementing the
BitTorrent protocol.
WWW: http://libtorrent.org/