summaryrefslogtreecommitdiff
path: root/graphics/sk1libs/files/patch-src-utils-fs.py
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/sk1libs/files/patch-src-utils-fs.py')
-rw-r--r--graphics/sk1libs/files/patch-src-utils-fs.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/sk1libs/files/patch-src-utils-fs.py b/graphics/sk1libs/files/patch-src-utils-fs.py
new file mode 100644
index 000000000000..5d24e96ed3da
--- /dev/null
+++ b/graphics/sk1libs/files/patch-src-utils-fs.py
@@ -0,0 +1,22 @@
+--- src/utils/fs.py.orig 2010-05-23 10:46:21 UTC
++++ src/utils/fs.py
+@@ -203,9 +203,11 @@ def get_system_fontdirs():
+ The function detects system font directories according to detected
+ system type.
+ """
++ if system.get_os_family()==system.FREEBSD:
++ return ['/usr/local/lib/X11/fonts', '/usr/local/share/fonts', os.path.join(gethome(),'.fonts')]
+ if system.get_os_family()==system.LINUX:
+ return ['/usr/share/fonts', os.path.join(gethome(),'.fonts')]
+- if system.get_os_family()==system.WINDOWS:
++ if system.get_os_family()==system.WINDOWS:
+ try:
+ import _winreg
+ except ImportError:
+@@ -311,4 +313,4 @@ def _test():
+ if __name__ == '__main__':
+ _test()
+
+-
+\ No newline at end of file
++