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

Collapse All | Expand All

(-)b/math/py-python-igraph/Makefile (-2 / +5 lines)
Lines 1-7 Link Here
1
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
1
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
2
2
3
PORTNAME=	python-igraph
3
PORTNAME=	python-igraph
4
PORTVERSION=	0.8.3
4
PORTVERSION=	0.9.1
5
CATEGORIES=	math python
5
CATEGORIES=	math python
6
MASTER_SITES=	CHEESESHOP
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 17-23 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_ Link Here
17
TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
17
TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
18
18
19
USES=		bison gnome pkgconfig python:3.6+
19
USES=		bison gnome pkgconfig python:3.6+
20
USE_PYTHON=	distutils
20
USE_PYTHON=	distutils concurrent autoplist
21
USE_GNOME=	libxml2
21
USE_GNOME=	libxml2
22
PYDISTUTILS_BUILDARGS=	--use-pkg-config
22
PYDISTUTILS_BUILDARGS=	--use-pkg-config
23
PYDISTUTILS_INSTALLARGS=${PYDISTUTILS_BUILDARGS}
23
PYDISTUTILS_INSTALLARGS=${PYDISTUTILS_BUILDARGS}
Lines 26-31 pre-configure: Link Here
26
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|'	\
26
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|'	\
27
		${WRKSRC}/src/igraph/configuration.py
27
		${WRKSRC}/src/igraph/configuration.py
28
28
29
post-install:
30
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/igraph/_igraph.so
31
29
do-test: install
32
do-test: install
30
	(cd ${WRKSRC} && py.test)
33
	(cd ${WRKSRC} && py.test)
31
34
(-)b/math/py-python-igraph/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1609586406
1
TIMESTAMP = 1617900174
2
SHA256 (python-igraph-0.8.3.tar.gz) = e1f27622eddeb2bd5fdcbadb41ef048e884790bb050f9627c086dc609d0f1236
2
SHA256 (python-igraph-0.9.1.tar.gz) = f1895a83c57180f03c50fb77334a4d5029327aefee14f03381e10d34a1794410
3
SIZE (python-igraph-0.8.3.tar.gz) = 4059460
3
SIZE (python-igraph-0.9.1.tar.gz) = 3572314
(-)a/math/py-python-igraph/files/patch-src_igraph_configuration.py (-21 lines)
Removed Link Here
1
--- src/igraph/configuration.py.orig	2020-10-08 10:13:28 UTC
2
+++ src/igraph/configuration.py
3
@@ -56,6 +56,18 @@ def get_platform_image_viewer():
4
                 if os.path.isfile(full_path):
5
                     return full_path
6
         return ""
7
+    elif plat == "FreeBSD":
8
+        # FreeBSD also has a whole lot of choices, try to find one
9
+        choices = ["eog", "gthumb", "geeqie", "display",
10
+                   "gpicview", "gwenview", "qiv", "gimv", "ristretto",
11
+                   "geeqie", "eom"]
12
+        paths = ["%%LOCALBASE%%/bin"]
13
+        for path in paths:
14
+            for choice in choices:
15
+                full_path = os.path.join(path, choice)
16
+                if os.path.isfile(full_path):
17
+                    return full_path
18
+        return ""
19
     elif plat == "Windows" or plat == "Microsoft":    # Thanks to Dale Hunscher
20
         # Use the built-in Windows image viewer, if available
21
         return "start"

Return to bug 254889