openbsd-ports/print/hplip/patches/patch-base_pkit_py
2012-01-17 09:54:27 +00:00

24 lines
801 B
Plaintext

$OpenBSD: patch-base_pkit_py,v 1.5 2012/01/17 09:54:27 ajacoutot Exp $
--- base/pkit.py.orig Fri Dec 9 12:20:37 2011
+++ base/pkit.py Mon Jan 16 18:49:35 2012
@@ -346,8 +346,8 @@ def copyPluginFiles(src_dir):
SANELIBDIR = '/usr/lib64/sane'
LIBDIR = '/usr/lib64'
else:
- SANELIBDIR = '/usr/lib/sane'
- LIBDIR = '/usr/lib'
+ SANELIBDIR = '${LOCALBASE}/lib/sane'
+ LIBDIR = '${LOCALBASE}/lib'
copies = []
@@ -483,7 +483,7 @@ def run_plugin_command(required=True, plugin_reason=PL
if utils.which("hp-plugin"):
p_path="hp-plugin"
else:
- p_path="python ./plugin.py"
+ p_path="${MODPY_BIN} ./plugin.py"
if 'gksu' in su_sudo:
cmd = su_sudo % ("%s -u %s --reason %s" % (p_path, req, plugin_reason))