summaryrefslogtreecommitdiff
path: root/graphics/sk1libs/files/patch-src-utils-system.py
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
commit26b4c8f71f91d22e081b27814782686edde0c90a (patch)
tree1c321c39372c25d8634e75b5c8e08edc676b296d /graphics/sk1libs/files/patch-src-utils-system.py
parentNew port: math/py-optuna: A hyperparameter optimization framework (diff)
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed With hat: portmgr
Notes
Notes: svn path=/head/; revision=559822
Diffstat (limited to 'graphics/sk1libs/files/patch-src-utils-system.py')
-rw-r--r--graphics/sk1libs/files/patch-src-utils-system.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/sk1libs/files/patch-src-utils-system.py b/graphics/sk1libs/files/patch-src-utils-system.py
new file mode 100644
index 000000000000..b9e5b1b63545
--- /dev/null
+++ b/graphics/sk1libs/files/patch-src-utils-system.py
@@ -0,0 +1,19 @@
+--- src/utils/system.py.orig 2010-03-08 00:15:33 UTC
++++ src/utils/system.py
+@@ -22,6 +22,7 @@ import platform, os, string, re, stat
+
+ WINDOWS = 'Windows'
+ LINUX = 'Linux'
++FREEBSD = 'FreeBSD'
+ MACOSX = 'Darwin'
+ GENERIC = 'generic'
+
+@@ -33,6 +34,8 @@ def get_os_family():
+ name = platform.system()
+ if name == LINUX:
+ return LINUX
++ elif name == FREEBSD:
++ return FREEBSD
+ elif name == WINDOWS:
+ return WINDOWS
+ elif name == MACOSX: