openbsd-ports/graphics/sk1/patches/patch-src_uc2_utils_fs_py
rsadowski ca3637911d Import sk1-2.0rc3
From Elias M. Mariani <marianielias A gmail D com> (new maintainer) and
tweaks, hints, input from sthen@, kirby@ and bcallah@.

Comment:
multiplatform vector graphics editor

Description:
sK1 is an open source vector graphics editor. Being primarily aimed at
the prepress industry, it works with the CMYK colorspace and produces
CMYK-based PDF and postscript output.

WWW: https://sk1project.net/

Final ok sthen@, last tweaks from me
2018-07-16 19:50:36 +00:00

16 lines
619 B
Plaintext

$OpenBSD: patch-src_uc2_utils_fs_py,v 1.1.1.1 2018/07/16 19:50:36 rsadowski Exp $
Index: src/uc2/utils/fs.py
--- src/uc2/utils/fs.py.orig
+++ src/uc2/utils/fs.py
@@ -194,6 +194,9 @@ def get_system_fontdirs():
if system.get_os_family() == system.LINUX:
home = os.path.expanduser('~')
return ['/usr/share/fonts', os.path.join(home, '.fonts')]
+ if system.get_os_family() == system.OPENBSD:
+ home = os.path.expanduser('~')
+ return ['${PREFIX}/share/fonts', os.path.join(home, '.fonts')]
if system.get_os_family() == system.WINDOWS:
try:
import _winreg