1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

- 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)
This commit is contained in:
Thierry Thomas 2021-01-04 12:08:32 +00:00
parent 311f0b56b7
commit 91627c0fe2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=560285
6 changed files with 100 additions and 22 deletions

View File

@ -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>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1597653394
SHA256 (python-igraph-0.8.2.tar.gz) = 4601638d7d22eae7608cdf793efac75e6c039770ec4bd2cecf76378c84ce7d72
SIZE (python-igraph-0.8.2.tar.gz) = 3970354
TIMESTAMP = 1609586406
SHA256 (python-igraph-0.8.3.tar.gz) = e1f27622eddeb2bd5fdcbadb41ef048e884790bb050f9627c086dc609d0f1236
SIZE (python-igraph-0.8.3.tar.gz) = 4059460

View File

@ -0,0 +1,21 @@
--- src/igraph/configuration.py.orig 2020-10-08 10:13:28 UTC
+++ src/igraph/configuration.py
@@ -56,6 +56,18 @@ def get_platform_image_viewer():
if os.path.isfile(full_path):
return full_path
return ""
+ elif plat == "FreeBSD":
+ # FreeBSD also has a whole lot of choices, try to find one
+ choices = ["eog", "gthumb", "geeqie", "display",
+ "gpicview", "gwenview", "qiv", "gimv", "ristretto",
+ "geeqie", "eom"]
+ paths = ["%%LOCALBASE%%/bin"]
+ for path in paths:
+ for choice in choices:
+ full_path = os.path.join(path, choice)
+ if os.path.isfile(full_path):
+ return full_path
+ return ""
elif plat == "Windows" or plat == "Microsoft": # Thanks to Dale Hunscher
# Use the built-in Windows image viewer, if available
return "start"

View File

@ -1,11 +0,0 @@
--- vendor/source/igraph/bootstrap.sh.orig 2020-08-17 08:48:54 UTC
+++ vendor/source/igraph/bootstrap.sh
@@ -4,7 +4,7 @@ cd "`dirname $0`"
## Find out our version number, need git for this
printf "Finding out version number/string... "
-tools/getversion.sh > IGRAPH_VERSION
+#tools/getversion.sh > IGRAPH_VERSION
cat IGRAPH_VERSION
for i in glibtoolize libtoolize; do

View File

@ -4,4 +4,4 @@ of edges. Since the module makes use of the open source igraph library
written in almost 100% pure C, it is blazing fast and outperforms most other
pure Python-based packages around.
WWW: http://cneurocvs.rmki.kfki.hu/igraph/
WWW: https://igraph.org/python/

View File

@ -0,0 +1,61 @@
bin/igraph
%%PYTHON_INCLUDEDIR%%/python-igraph/igraphmodule_api.h
%%PYTHON_SITELIBDIR%%/igraph/__init__.py
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/clustering.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/compat.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/configuration.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/cut.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/datatypes.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/formula.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/layout.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/matching.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/operators.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/statistics.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/summary.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/utils.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/_igraph.so
%%PYTHON_SITELIBDIR%%/igraph/app/__init__.py
%%PYTHON_SITELIBDIR%%/igraph/app/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/app/__pycache__/shell.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/app/shell.py
%%PYTHON_SITELIBDIR%%/igraph/clustering.py
%%PYTHON_SITELIBDIR%%/igraph/compat.py
%%PYTHON_SITELIBDIR%%/igraph/configuration.py
%%PYTHON_SITELIBDIR%%/igraph/cut.py
%%PYTHON_SITELIBDIR%%/igraph/datatypes.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/__init__.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/baseclasses.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/colors.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/coord.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/edge.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/graph.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/metamagic.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/shapes.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/text.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/utils.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/__pycache__/vertex.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/drawing/baseclasses.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/colors.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/coord.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/edge.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/graph.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/metamagic.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/shapes.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/text.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/utils.py
%%PYTHON_SITELIBDIR%%/igraph/drawing/vertex.py
%%PYTHON_SITELIBDIR%%/igraph/formula.py
%%PYTHON_SITELIBDIR%%/igraph/layout.py
%%PYTHON_SITELIBDIR%%/igraph/matching.py
%%PYTHON_SITELIBDIR%%/igraph/operators.py
%%PYTHON_SITELIBDIR%%/igraph/remote/__init__.py
%%PYTHON_SITELIBDIR%%/igraph/remote/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/remote/__pycache__/gephi.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/igraph/remote/gephi.py
%%PYTHON_SITELIBDIR%%/igraph/statistics.py
%%PYTHON_SITELIBDIR%%/igraph/summary.py
%%PYTHON_SITELIBDIR%%/igraph/utils.py
%%PYTHON_SITELIBDIR%%/igraph/version.py