summaryrefslogtreecommitdiff
path: root/math/py-python-igraph/Makefile
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2021-01-04 12:08:32 +0000
committerThierry Thomas <thierry@FreeBSD.org>2021-01-04 12:08:32 +0000
commit91627c0fe2d0ac800a6b67e07cd0228ccbc50b75 (patch)
treed58751054868fcb99eb730c0bdc93c2f7c42b31d /math/py-python-igraph/Makefile
parentnet/py-libcloud: update to 3.3.0 (diff)
- Upgrade to 0.8.3
Release notes at <https://github.com/igraph/python-igraph/releases/tag/0.8.3> - Update WWW: URL - Set LIB_DEPENDS for math/igraph - Depends on py-cairocffi - Let it find an image viewer for FreeBSD Without that, you cannot run code like: >>> import igraph as ig >>> g = ig.Graph.Famous("petersen") >>> ig.plot(g) - Add a plist PR: 252381 Submitted by: /me Approved by: lwhsu@ (maintainer)
Notes
Notes: svn path=/head/; revision=560285
Diffstat (limited to 'math/py-python-igraph/Makefile')
-rw-r--r--math/py-python-igraph/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/math/py-python-igraph/Makefile b/math/py-python-igraph/Makefile
index c20012be3dd4..6fec0112b049 100644
--- a/math/py-python-igraph/Makefile
+++ b/math/py-python-igraph/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= python-igraph
-PORTVERSION= 0.8.2
+PORTVERSION= 0.8.3
CATEGORIES= math python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,15 +12,22 @@ COMMENT= High performance graph data structures and algorithms
LICENSE= GPLv2
-BUILD_DEPENDS= ${LOCALBASE}/lib/libigraph.so:math/igraph \
- aclocal:devel/automake
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_FLAVOR}
+LIB_DEPENDS= libigraph.so:math/igraph
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cairocffi>0:graphics/py-cairocffi@${PY_FLAVOR}
+TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR}
-USES= bison gnome libtool:build python:3.6+
-USE_PYTHON= autoplist concurrent distutils
+USES= bison gnome pkgconfig python:3.6+
+USE_PYTHON= distutils
USE_GNOME= libxml2
+PYDISTUTILS_BUILDARGS= --use-pkg-config
+PYDISTUTILS_INSTALLARGS=${PYDISTUTILS_BUILDARGS}
pre-configure:
- @${ECHO} ${PORTVERSION} > ${WRKSRC}/vendor/source/igraph/IGRAPH_VERSION
+ ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
+ ${WRKSRC}/src/igraph/configuration.py
+
+do-test: install
+ (cd ${WRKSRC} && py.test)
.include <bsd.port.mk>