View | Details | Raw Unified | Return to bug 273168
Collapse All | Expand All

(-)b/math/py-igraph/Makefile (-4 / +16 lines)
Lines 1-8 Link Here
1
PORTNAME=	igraph
1
PORTNAME=	igraph
2
DISTVERSION=	0.10.4
2
DISTVERSION=	0.10.6
3
CATEGORIES=	math python
3
CATEGORIES=	math python
4
MASTER_SITES=	PYPI
4
MASTER_SITES=	PYPI
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
DIST_SUBDIR=	python-igraph
6
7
7
MAINTAINER=	lwhsu@FreeBSD.org
8
MAINTAINER=	lwhsu@FreeBSD.org
8
COMMENT=	High performance graph data structures and algorithms
9
COMMENT=	High performance graph data structures and algorithms
Lines 10-17 WWW= https://igraph.org/python/ Link Here
10
11
11
LICENSE=	GPLv2
12
LICENSE=	GPLv2
12
13
13
BUILD_DEPENDS=	cmake:devel/cmake-core
14
BUILD_DEPENDS=	cmake:devel/cmake-core \
14
LIB_DEPENDS=	libigraph.so:math/igraph
15
		${LOCALBASE}/bin/flex:textproc/flex
16
LIB_DEPENDS=	libigraph.so:math/igraph \
17
		libarpack.so:math/arpack-ng \
18
		libblas.so:math/blas \
19
		libglpk.so:math/glpk \
20
		libgmp.so:math/gmp \
21
		liblapack.so:math/lapack \
22
		libopenblas.so:math/openblas
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_FLAVOR}	\
23
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_FLAVOR}	\
16
		${PYTHON_PKGNAMEPREFIX}cairocffi>0:graphics/py-cairocffi@${PY_FLAVOR}
24
		${PYTHON_PKGNAMEPREFIX}cairocffi>0:graphics/py-cairocffi@${PY_FLAVOR}
17
TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
25
TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
Lines 20-27 USES= bison gnome pkgconfig python Link Here
20
USE_PYTHON=	distutils concurrent autoplist
28
USE_PYTHON=	distutils concurrent autoplist
21
USE_GNOME=	libxml2
29
USE_GNOME=	libxml2
22
30
31
post-patch:
32
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
33
	    ${PATCH_WRKSRC}/setup.py
34
23
post-install:
35
post-install:
24
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/igraph/_igraph${PYTHON_EXT_SUFFIX}.so
36
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/igraph/_igraph*.so
25
37
26
do-test: install
38
do-test: install
27
	(cd ${WRKSRC} && py.test)
39
	(cd ${WRKSRC} && py.test)
(-)b/math/py-igraph/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1684430156
1
TIMESTAMP = 1692030616
2
SHA256 (igraph-0.10.4.tar.gz) = 4786e05919ee93f6479fe8ca697d68537edfe47549ed09dfb33bda4daced1fb9
2
SHA256 (python-igraph/igraph-0.10.6.tar.gz) = 76f7aad294514412f835366a7d9a9c1e7a34c3e6ef0a6c3a1a835234323228e8
3
SIZE (igraph-0.10.4.tar.gz) = 4209850
3
SIZE (python-igraph/igraph-0.10.6.tar.gz) = 4233333
(-)b/math/py-igraph/files/patch-setup.py (+24 lines)
Added Link Here
1
--- setup.py.orig	2023-07-13 11:49:16 UTC
2
+++ setup.py
3
@@ -281,7 +281,7 @@ class IgraphCCoreCMakeBuilder:
4
 
5
         # Build the Python interface with vendored libraries
6
         for deps in "ARPACK BLAS GLPK GMP LAPACK".split():
7
-            args.append("-DIGRAPH_USE_INTERNAL_" + deps + "=ON")
8
+            args.append("-DIGRAPH_USE_INTERNAL_" + deps + "=OFF")
9
 
10
         # -fPIC is needed on Linux so we can link to a static igraph lib from a
11
         # Python shared library
12
@@ -289,6 +289,12 @@ class IgraphCCoreCMakeBuilder:
13
 
14
         # No need to build tests
15
         args.append("-DBUILD_TESTING=OFF")
16
+
17
+        # Always use flex from ports
18
+        args.append("-DFLEX_EXECUTABLE:FILEPATH=%%LOCALBASE%%/bin/flex")
19
+	
20
+        # Don't try to use git
21
+        args.append("-DCMAKE_DISABLE_FIND_PACKAGE_Git:BOOL=True")
22
         
23
         # Do not treat compilation warnings as errors in case someone is trying
24
         # to "pip install" igraph in an environment for which we don't provide

Return to bug 273168