freebsd-ports/math/py-python-igraph/Makefile
Yuri Victorovich df6dd49864 math/py-python-igraph: Fix the problem that it didn't install anything
The Python package was renamed into 'igraph', and when the source
tarball is taken for 'igraph' it builds properly.

PR:		269786
Approved by:	portmgr (bugfix)
2023-03-27 14:54:45 -07:00

31 lines
911 B
Makefile

PORTNAME= python-igraph # it has been renamed to igraph
DISTVERSION= 0.9.9
PORTREVISION= 3
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= igraph-${PORTVERSION}
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= High performance graph data structures and algorithms
WWW= https://igraph.org/python/
LICENSE= GPLv2
BUILD_DEPENDS= cmake:devel/cmake-core
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 pkgconfig python:3.6+
USE_PYTHON= distutils concurrent autoplist
USE_GNOME= libxml2
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/igraph/_igraph${PYTHON_EXT_SUFFIX}.so
do-test: install
(cd ${WRKSRC} && py.test)
.include <bsd.port.mk>