xref: /mports/math/py-igraph/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	igraph
2DISTVERSION=	0.10.6
3PORTREVISION=	6
4CATEGORIES=	math python
5MASTER_SITES=	PYPI
6PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7DIST_SUBDIR=	python-igraph
8
9MAINTAINER=	ports@MidnightBSD.org
10COMMENT=	High performance graph data structures and algorithms
11WWW=		https://igraph.org/python/
12
13LICENSE=	gpl2
14
15BUILD_DEPENDS=	cmake:devel/cmake-core \
16		${LOCALBASE}/bin/flex:textproc/flex
17LIB_DEPENDS=	libigraph.so:math/igraph \
18		libarpack.so:math/arpack-ng \
19		libblas.so:math/blas \
20		libglpk.so:math/glpk \
21		libgmp.so:math/gmp \
22		liblapack.so:math/lapack \
23		libopenblas.so:math/openblas
24RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_FLAVOR}	\
25		${PYTHON_PKGNAMEPREFIX}cairocffi>0:graphics/py-cairocffi@${PY_FLAVOR}
26TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
27
28USES=		bison gnome pkgconfig python
29USE_PYTHON=	distutils concurrent autoplist
30USE_GNOME=	libxml2
31
32post-patch:
33	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
34	    ${PATCH_WRKSRC}/setup.py
35
36post-install:
37	@${STRIP_CMD} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/igraph/_igraph*.so
38
39do-test: install
40	(cd ${WRKSRC} && py.test)
41
42.include <bsd.port.mk>
43

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026