summaryrefslogtreecommitdiff
path: root/math/py-python-igraph/files/patch-src_igraph_configuration.py
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/files/patch-src_igraph_configuration.py
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/files/patch-src_igraph_configuration.py')
-rw-r--r--math/py-python-igraph/files/patch-src_igraph_configuration.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/math/py-python-igraph/files/patch-src_igraph_configuration.py b/math/py-python-igraph/files/patch-src_igraph_configuration.py
new file mode 100644
index 000000000000..d165d46dbf32
--- /dev/null
+++ b/math/py-python-igraph/files/patch-src_igraph_configuration.py
@@ -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"