openbsd-ports/print/hplip/patches/patch-base_utils_py
ajacoutot f8bddf7e5a Major update to hplip-3.9.6b.
Refer to the project homepage for the complete changelog.

This port now comes into 5 subpackages (ala Fedora):
- main: complete hplip functionnalities
- hpijs: deprecated hpijs printer driver
- hpcups: new-gen printer driver
- libs: libraries and helpers used by other subpackages
- gui: graphical tools (systray applet...)

It seems this version works a least as good as the previous one we had
in-tree. I could use some feedbacks for the fancier stuffs that hplip
provides (besides regular printing using hpcups and/or hpijs), like
printer communication, ink levels... because I have no hp equipment, but
at least, there was no regression reported.
(some features are Linux-only and are expected not to work)

Tested by several, thanks!
2009-07-13 08:14:28 +00:00

40 lines
1.6 KiB
Plaintext

$OpenBSD: patch-base_utils_py,v 1.1 2009/07/13 08:14:28 ajacoutot Exp $
--- base/utils.py.orig Thu Jul 2 18:38:37 2009
+++ base/utils.py Thu Jul 2 18:38:55 2009
@@ -469,7 +469,7 @@ class UserSettings(object): # Note: Deprecated after 2
if len(path):
self.cmd_pcard = 'hp-unload -d %DEVICE_URI%'
else:
- self.cmd_pcard = 'python %HOME%/unload.py -d %DEVICE_URI%'
+ self.cmd_pcard = '${MODPY_BIN} %HOME%/unload.py -d %DEVICE_URI%'
# Copy
path = which('hp-makecopies')
@@ -477,7 +477,7 @@ class UserSettings(object): # Note: Deprecated after 2
if len(path):
self.cmd_copy = 'hp-makecopies -d %DEVICE_URI%'
else:
- self.cmd_copy = 'python %HOME%/makecopies.py -d %DEVICE_URI%'
+ self.cmd_copy = '${MODPY_BIN} %HOME%/makecopies.py -d %DEVICE_URI%'
# Fax
path = which('hp-sendfax')
@@ -485,7 +485,7 @@ class UserSettings(object): # Note: Deprecated after 2
if len(path):
self.cmd_fax = 'hp-sendfax -d %FAX_URI%'
else:
- self.cmd_fax = 'python %HOME%/sendfax.py -d %FAX_URI%'
+ self.cmd_fax = '${MODPY_BIN} %HOME%/sendfax.py -d %FAX_URI%'
# Fax Address Book
path = which('hp-fab')
@@ -493,7 +493,7 @@ class UserSettings(object): # Note: Deprecated after 2
if len(path):
self.cmd_fab = 'hp-fab'
else:
- self.cmd_fab = 'python %HOME%/fab.py'
+ self.cmd_fab = '${MODPY_BIN} %HOME%/fab.py'
def load(self):
self.loadDefaults()