From a3149917d04797e0bb228d33481ea79ea237a1c4 Mon Sep 17 00:00:00 2001 From: Dennis Veatch Date: Tue, 17 Jul 2012 11:41:08 -0400 Subject: [PATCH] hplip: Readding to moonbase. --- printer/hplip/BUILD | 23 +++++++++++++++++++++++ printer/hplip/CONFIGURE | 3 +++ printer/hplip/DEPENDS | 33 +++++++++++++++++++++++++++++++++ printer/hplip/DETAILS | 17 +++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 printer/hplip/BUILD create mode 100644 printer/hplip/CONFIGURE create mode 100644 printer/hplip/DEPENDS create mode 100644 printer/hplip/DETAILS diff --git a/printer/hplip/BUILD b/printer/hplip/BUILD new file mode 100644 index 00000000000..0b7640904fd --- /dev/null +++ b/printer/hplip/BUILD @@ -0,0 +1,23 @@ +( + +# Inserting a missing include. + sed -i "41i #include " prnt/hpps/hppsfilter.c && + + if in_depends $MODULE PyQt4; then + . /etc/profile.d/qt4.rc + fi && + + # Install /usr/bin/hpijs so don't get this error: + # (/usr/lib/cups/filter/foomatic-rip-hplip) stopped with status 3! + # Or this error: + # sh: hpijs: command not found + OPTS+=" --enable-hpijs-install" && + + default_config && + + # To fix the /var/log/messages warning that SYSFS will be removed in future udev versions. + sedit "s:SYSFS:ATTR:g" data/rules/56-hpmud_support.rules data/rules/55-hpmud.rules && + + default_make + +) > $C_FIFO 2>&1 diff --git a/printer/hplip/CONFIGURE b/printer/hplip/CONFIGURE new file mode 100644 index 00000000000..b2c6d88c4e3 --- /dev/null +++ b/printer/hplip/CONFIGURE @@ -0,0 +1,3 @@ +mquery PARPORT "Enable printing via parallel port (not needed for USB printers)?" y "--enable-pp-build" "--disable-pp-build" +mquery FAX "Enable built-in fax in your HP printer?" y "--enable-fax-build" "--disable-fax-build" +mquery FOOMATIC "Install foomatic ppd's (required for PSC and Photosmart printers)?" y "--enable-foomatic-ppd-install --enable-foomatic-rip-hplip-install" diff --git a/printer/hplip/DEPENDS b/printer/hplip/DEPENDS new file mode 100644 index 00000000000..154c962abb5 --- /dev/null +++ b/printer/hplip/DEPENDS @@ -0,0 +1,33 @@ +depends %JPEG +depends cups +depends libusb-compat + +optional_depends "%UDEV" \ + "--enable-udev-acl-rules" \ + "--disable-udev-acl-rules" \ + "for udev access rules support" + +optional_depends "polkit" \ + "--enable-policykit" \ + "--disable-policykit" \ + "for policykit support" + +optional_depends "sane-backends" \ + "--enable-scan-build" \ + "--disable-scan-build" \ + "for builtin scanner support" + +optional_depends "PyQt" \ + "--enable-qt4 --disable-qt3" \ + "--disable-qt4 --disable-qt3" \ + "for HP Qt4 GUI Support" + +optional_depends "reportlab" \ + "" \ + "" \ + "for PDF and Fax cover page support" + +optional_depends "net-snmp" \ + "--enable-network-build" \ + "--disable-network-build" \ + "for network printing support" diff --git a/printer/hplip/DETAILS b/printer/hplip/DETAILS new file mode 100644 index 00000000000..dac491c1ca5 --- /dev/null +++ b/printer/hplip/DETAILS @@ -0,0 +1,17 @@ + MODULE=hplip + VERSION=3.12.6 + SOURCE=$MODULE-$VERSION.tar.gz + SOURCE_URL=$SFORGE_URL/$MODULE + SOURCE_VFY=sha1:f3d7f66fb5eff2158ac42bb5a115f8ef8bd7a383 + WEB_SITE=http://hplipopensource.com/hplip-web/index.html + ENTERED=20061216 + UPDATED=20120624 + SHORT="Hewlett Packard's drivers for HP printers" + +cat << EOF +HPLIP is an HP developed solution for printing, scanning, and faxing +with HP inkjet and laser based printers in Linux. +The HPLIP project provides printing support for 1,040 printer models, +including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business +Inkjet, LaserJet, and LaserJet MFP. +EOF