Index: net-p2p/py-libtorrent-rasterbar/Makefile =================================================================== --- net-p2p/py-libtorrent-rasterbar/Makefile (revision 522710) +++ net-p2p/py-libtorrent-rasterbar/Makefile (working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= libtorrent-rasterbar -DISTVERSION= 1.2.2 +DISTVERSION= 1.2.3 CATEGORIES= net-p2p python MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,8 +13,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/../../COPYING -BROKEN= Doesn't install anything since the last major release: https://github.com/arvidn/libtorrent/issues/4204 - LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \ ${PY_BOOST} Index: net-p2p/py-libtorrent-rasterbar/distinfo =================================================================== --- net-p2p/py-libtorrent-rasterbar/distinfo (revision 522710) +++ net-p2p/py-libtorrent-rasterbar/distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1576811230 -SHA256 (libtorrent-rasterbar-1.2.2.tar.gz) = e579261d7f0acbe82e9b4ce703cb721627cb8075023f8a26405992f489bc6202 -SIZE (libtorrent-rasterbar-1.2.2.tar.gz) = 4088779 +TIMESTAMP = 1578773961 +SHA256 (libtorrent-rasterbar-1.2.3.tar.gz) = 1582fdbbd0449bcfe4ffae2ccb9e5bf0577459a32bb25604e01accb847da1a2d +SIZE (libtorrent-rasterbar-1.2.3.tar.gz) = 4145859 Index: net-p2p/py-libtorrent-rasterbar/files/patch-setup.py =================================================================== --- net-p2p/py-libtorrent-rasterbar/files/patch-setup.py (nonexistent) +++ net-p2p/py-libtorrent-rasterbar/files/patch-setup.py (working copy) @@ -0,0 +1,42 @@ +--- setup.py.orig 2019-12-19 00:51:16 UTC ++++ setup.py +@@ -160,22 +160,25 @@ else: + src_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "src")) + source_list = [os.path.join(src_dir, s) for s in os.listdir(src_dir) if s.endswith(".cpp")] + +- if extra_cmd: +- flags = flags_parser() ++ flags = flags_parser() ++ ext_extra = {} ++ ++ if ldflags: + # ldflags parsed first to ensure the correct library search path order +- extra_link = flags.parse(ldflags) +- extra_compile = flags.parse(extra_cmd) ++ ext_extra["extra_link_args"] = flags.parse(ldflags) + arch() + +- ext = [Extension( +- 'libtorrent', +- sources=sorted(source_list), +- language='c++', +- include_dirs=flags.include_dirs, +- library_dirs=flags.library_dirs, +- extra_link_args=extra_link + arch(), +- extra_compile_args=extra_compile + arch() + target_specific(), +- libraries=['torrent-rasterbar'] + flags.libraries) +- ] ++ if extra_cmd: ++ ext_extra["extra_compile_args"] = flags.parse(extra_cmd) + arch() + target_specific() ++ ++ ext = [Extension( ++ 'libtorrent', ++ sources=sorted(source_list), ++ language='c++', ++ include_dirs=flags.include_dirs, ++ library_dirs=flags.library_dirs, ++ libraries=['torrent-rasterbar'] + flags.libraries, ++ **ext_extra) ++ ] + + setup( + name='python-libtorrent',