Opened 11 years ago

Last modified 11 years ago

#42776 new submission

NEW: hplip @3.14.1

Reported by: okmacports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: aschenke@…, rich@…, adrian@…, icaines77@…, tristan.klocke@…, ryandesign (Ryan Carsten Schmidt)
Port: hplip

Description (last modified by mf2k (Frank Schima))

This replaces tickets #30061 and #7201.

I am resubmitting the Portfile to attempt to resolve the issues raised in the other ticket. Since several files are new, I am opening this as a new ticket, intended to replace the old one(s).

This port of HPLIP provides scanner support of HP all-in-one (HPAIO) printers, particularly intended to be used with SANE. (Note that it works under the MacPorts versions of xsane and saned, not the OS X versions.)

The official project page is ​http://hplipopensource.com/. It's a project, funded by HP, that creates open-source drivers for HP's printers/scanners.

While the intent of this port is to provide scanning support (because CUPS already supports printing to HP all-in-one printers under OS X), the port also provides printing support, so your HPAIO printers may appear duplicated.

Usage notes:

  • to use across a network, start saned with the -a option. Make sure you've edited saned.conf in /opt/local/etc/sane.d/ to allow access from local IP addresses (such as by uncommenting the line 192.168.0.1/29).
  • as noted repeatedly at the SANE project, run saned behind a firewall and don't run it as root!
  • make sure you activate the launchctl daemon and client items (client being the same user that runs saned) as noted in the installation log.

Attachments (30)

base-utils.py.patch (465 bytes) - added by okmacports@… 11 years ago.
check.py.patch (1.5 KB) - added by okmacports@… 11 years ago.
installer-core_install.py.patch (1.0 KB) - added by okmacports@… 11 years ago.
installer-dcheck.py.patch (822 bytes) - added by okmacports@… 11 years ago.
patch-io_hpmud_hpmud.c (1.6 KB) - added by okmacports@… 11 years ago.
patch-io_hpmud_hpmudi.h (792 bytes) - added by okmacports@… 11 years ago.
patch-io_hpmud_musb.h (265 bytes) - added by okmacports@… 11 years ago.
patch-Makefile.am (2.8 KB) - added by okmacports@… 11 years ago.
patch-Makefile.in (8.6 KB) - added by okmacports@… 11 years ago.
patch-base_codes.py (749 bytes) - added by okmacports@… 11 years ago.
patch-base_g.py (901 bytes) - added by okmacports@… 11 years ago.
patch-base_utils.py (469 bytes) - added by okmacports@… 11 years ago.
patch-check.py (3.5 KB) - added by okmacports@… 11 years ago.
patch-fax_backend_hpfax.py (622 bytes) - added by okmacports@… 11 years ago.
patch-hplip.conf.in (486 bytes) - added by okmacports@… 11 years ago.
patch-hplip.list.in (9.6 KB) - added by okmacports@… 11 years ago.
patch-installer_core-install.py (13.4 KB) - added by okmacports@… 11 years ago.
patch-installer_dcheck.py (1.2 KB) - added by okmacports@… 11 years ago.
patch-installer_distros.dat (772 bytes) - added by okmacports@… 11 years ago.
patch-io_hpmud_files (2.5 KB) - added by okmacports@… 11 years ago.
patch-prnt_hpcups_files (1.6 KB) - added by okmacports@… 11 years ago.
patch-prnt_hpijs_globals.cpp (394 bytes) - added by okmacports@… 11 years ago.
patch-python (2.0 KB) - added by okmacports@… 11 years ago.
patch-ui4_devmgr5.py (413 bytes) - added by okmacports@… 11 years ago.
patch-ui_devmgr4.py (418 bytes) - added by okmacports@… 11 years ago.
hpaio (6 bytes) - added by okmacports@… 11 years ago.
patch-ip_hpip.h (415 bytes) - added by okmacports@… 11 years ago.
patch-prnt_hpijs_context2.cpp (861 bytes) - added by okmacports@… 11 years ago.
patch-prnt_hpijs_ljzjscolor.cpp (804 bytes) - added by okmacports@… 11 years ago.
Portfile (6.3 KB) - added by okmacports@… 11 years ago.

Download all attachments as: .zip

Change History (34)

Changed 11 years ago by okmacports@…

Attachment: base-utils.py.patch added

Changed 11 years ago by okmacports@…

Attachment: check.py.patch added

Changed 11 years ago by okmacports@…

Changed 11 years ago by okmacports@…

Attachment: installer-dcheck.py.patch added

Changed 11 years ago by okmacports@…

Attachment: patch-io_hpmud_hpmud.c added

Changed 11 years ago by okmacports@…

Attachment: patch-io_hpmud_hpmudi.h added

Changed 11 years ago by okmacports@…

Attachment: patch-io_hpmud_musb.h added

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Version: 2.2.1

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Thanks. Sorry this port has taken so long. I have some comments on this submission:

  • master_sites should be written to avoid redirects.
  • You needn’t use quotes around arguments when using configure.env-append, configure.cppflags-append, configure.cflags-append, etc.
  • You don’t need “--prefix=${prefix}” in configure.args because MacPorts already puts it in configure.pre_args for you.
  • The reinplaces in pre-configure are usually done in post-patch. However, there are rather a lot of them, and it would be difficult for an outsider to evaluate, years from now, after new versions of the software have been released, whether they are all still needed or still functioning correctly. Therefore we usually use patch files, not just reinplaces.
  • installer-dcheck.py.patch hardcodes the path /opt/local. MacPorts could be installed in a different prefix. You must arrange to use the value of the MacPorts variable ${prefix} instead of hardcoding it. For example, many ports write “@PREFIX@” into the patch file, then use reinplace in the Portfile in a post-patch block to replace “@PREFIX@” with “${prefix}”.
  • Please remove the lines of “#” characters from the beginning and end of the notes. Just put the text of your note. If you believe MacPorts does not display port notes prominently enough, then surely that’s a problem that would affect all ports, not just hplip, and should be solved in MacPorts base, not in each individual Portfile.
  • Portfile indentation should be consistent. Currently some indents are 4 spaces and others are 8 spaces. 4 spaces is the MacPorts standard indentation style.

comment:3 Changed 11 years ago by okmacports@…

Thanks for the fast reply, and for acknowledging the long process. Since this has been working for me for a couple of years, it was a low priority. It now works with Mavericks and should be easier to maintain with your suggestions, which I hope I have followed.

I don't know your philosophy on patch files but to simplify my life I have done some combining of them to avoid the huge number of patch files that would result from removing the reinplaces.

I have no way to delete the attachments above. The patch-io*.[ch] and *.patch files are obsolete.

Changed 11 years ago by okmacports@…

Attachment: patch-Makefile.am added

Changed 11 years ago by okmacports@…

Attachment: patch-Makefile.in added

Changed 11 years ago by okmacports@…

Attachment: patch-base_codes.py added

Changed 11 years ago by okmacports@…

Attachment: patch-base_g.py added

Changed 11 years ago by okmacports@…

Attachment: patch-base_utils.py added

Changed 11 years ago by okmacports@…

Attachment: patch-check.py added

Changed 11 years ago by okmacports@…

Attachment: patch-fax_backend_hpfax.py added

Changed 11 years ago by okmacports@…

Attachment: patch-hplip.conf.in added

Changed 11 years ago by okmacports@…

Attachment: patch-hplip.list.in added

Changed 11 years ago by okmacports@…

Changed 11 years ago by okmacports@…

Attachment: patch-installer_dcheck.py added

Changed 11 years ago by okmacports@…

Attachment: patch-installer_distros.dat added

Changed 11 years ago by okmacports@…

Attachment: patch-io_hpmud_files added

Changed 11 years ago by okmacports@…

Attachment: patch-prnt_hpcups_files added

Changed 11 years ago by okmacports@…

Changed 11 years ago by okmacports@…

Attachment: patch-python added

Changed 11 years ago by okmacports@…

Attachment: patch-ui4_devmgr5.py added

Changed 11 years ago by okmacports@…

Attachment: patch-ui_devmgr4.py added

Changed 11 years ago by okmacports@…

Attachment: hpaio added

Changed 11 years ago by okmacports@…

Attachment: patch-ip_hpip.h added

Changed 11 years ago by okmacports@…

Changed 11 years ago by okmacports@…

comment:4 Changed 11 years ago by okmacports@…

Updating Portfile for version 3.14.3 (latest)

Changed 11 years ago by okmacports@…

Attachment: Portfile added
Note: See TracTickets for help on using tickets.