View | Details | Raw Unified | Return to bug 242797 | Differences between
and this patch

Collapse All | Expand All

(-)net-p2p/py-libtorrent-rasterbar/Makefile (-3 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	libtorrent-rasterbar
4
PORTNAME=	libtorrent-rasterbar
5
DISTVERSION=	1.2.2
5
DISTVERSION=	1.2.3
6
CATEGORIES=	net-p2p python
6
CATEGORIES=	net-p2p python
7
MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/
7
MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 13-20 Link Here
13
LICENSE=	BSD3CLAUSE
13
LICENSE=	BSD3CLAUSE
14
LICENSE_FILE=	${WRKSRC}/../../COPYING
14
LICENSE_FILE=	${WRKSRC}/../../COPYING
15
15
16
BROKEN=		Doesn't install anything since the last major release: https://github.com/arvidn/libtorrent/issues/4204
17
18
LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
16
LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
19
		${PY_BOOST}
17
		${PY_BOOST}
20
18
(-)net-p2p/py-libtorrent-rasterbar/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1576811230
1
TIMESTAMP = 1578773961
2
SHA256 (libtorrent-rasterbar-1.2.2.tar.gz) = e579261d7f0acbe82e9b4ce703cb721627cb8075023f8a26405992f489bc6202
2
SHA256 (libtorrent-rasterbar-1.2.3.tar.gz) = 1582fdbbd0449bcfe4ffae2ccb9e5bf0577459a32bb25604e01accb847da1a2d
3
SIZE (libtorrent-rasterbar-1.2.2.tar.gz) = 4088779
3
SIZE (libtorrent-rasterbar-1.2.3.tar.gz) = 4145859
(-)net-p2p/py-libtorrent-rasterbar/files/patch-setup.py (+42 lines)
Line 0 Link Here
1
--- setup.py.orig	2019-12-19 00:51:16 UTC
2
+++ setup.py
3
@@ -160,22 +160,25 @@ else:
4
     src_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "src"))
5
     source_list = [os.path.join(src_dir, s) for s in os.listdir(src_dir) if s.endswith(".cpp")]
6
 
7
-    if extra_cmd:
8
-        flags = flags_parser()
9
+    flags = flags_parser()
10
+    ext_extra = {}
11
+
12
+    if ldflags:
13
         # ldflags parsed first to ensure the correct library search path order
14
-        extra_link = flags.parse(ldflags)
15
-        extra_compile = flags.parse(extra_cmd)
16
+        ext_extra["extra_link_args"] = flags.parse(ldflags) + arch()
17
 
18
-        ext = [Extension(
19
-            'libtorrent',
20
-            sources=sorted(source_list),
21
-            language='c++',
22
-            include_dirs=flags.include_dirs,
23
-            library_dirs=flags.library_dirs,
24
-            extra_link_args=extra_link + arch(),
25
-            extra_compile_args=extra_compile + arch() + target_specific(),
26
-            libraries=['torrent-rasterbar'] + flags.libraries)
27
-        ]
28
+    if extra_cmd:
29
+        ext_extra["extra_compile_args"] = flags.parse(extra_cmd) + arch() + target_specific()
30
+
31
+    ext = [Extension(
32
+        'libtorrent',
33
+        sources=sorted(source_list),
34
+        language='c++',
35
+        include_dirs=flags.include_dirs,
36
+        library_dirs=flags.library_dirs,
37
+        libraries=['torrent-rasterbar'] + flags.libraries,
38
+        **ext_extra)
39
+    ]
40
 
41
 setup(
42
     name='python-libtorrent',

Return to bug 242797