summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-print')
-rw-r--r--net-print/hplip/ChangeLog10
-rw-r--r--net-print/hplip/Manifest38
-rw-r--r--net-print/hplip/files/digest-hplip-2.7.7-r33
-rw-r--r--net-print/hplip/files/digest-hplip-2.7.9-r1 (renamed from net-print/hplip/files/digest-hplip-2.7.9)0
-rw-r--r--net-print/hplip/files/hplip-2.7.7-udev-kernel.2.6.22.diff12
-rw-r--r--net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch99
-rw-r--r--net-print/hplip/hplip-2.7.7-r3.ebuild115
-rw-r--r--net-print/hplip/hplip-2.7.9-r1.ebuild (renamed from net-print/hplip/hplip-2.7.9.ebuild)13
8 files changed, 131 insertions, 159 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog
index f0669958393d..377f50f47ee5 100644
--- a/net-print/hplip/ChangeLog
+++ b/net-print/hplip/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-print/hplip
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.78 2007/10/10 18:19:47 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.79 2007/10/18 13:08:21 calchan Exp $
+
+*hplip-2.7.9-r1 (18 Oct 2007)
+
+ 18 Oct 2007; Denis Dupeyron <calchan@gentoo.org>
+ -files/hplip-2.7.7-udev-kernel.2.6.22.diff,
+ +files/hplip-2.7.9-subprocess_replacement.patch, -hplip-2.7.7-r3.ebuild,
+ -hplip-2.7.9.ebuild, +hplip-2.7.9-r1.ebuild:
+ Fixed bug #195565 for new 2.x branch. Fixed quoting.
10 Oct 2007; Stefan Schweizer <genstef@gentoo.org> hplip-2.7.9.ebuild:
Improve DEPEND-accuracy for jakub in bug 193671
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest
index 3af59314f5f6..4c43817b8e59 100644
--- a/net-print/hplip/Manifest
+++ b/net-print/hplip/Manifest
@@ -1,7 +1,7 @@
-AUX hplip-2.7.7-udev-kernel.2.6.22.diff 487 RMD160 02e0a2a32d74c8961eb437b546e133c9d29df6aa SHA1 cd21b7c16e89cd3984daae2b875123f051a664c4 SHA256 f6ab12991ecc45de10285829e4afb8db9943fab266a96a5b4a3da80b205b0447
-MD5 6691606bc7791b58ad912d84c9452ed9 files/hplip-2.7.7-udev-kernel.2.6.22.diff 487
-RMD160 02e0a2a32d74c8961eb437b546e133c9d29df6aa files/hplip-2.7.7-udev-kernel.2.6.22.diff 487
-SHA256 f6ab12991ecc45de10285829e4afb8db9943fab266a96a5b4a3da80b205b0447 files/hplip-2.7.7-udev-kernel.2.6.22.diff 487
+AUX hplip-2.7.9-subprocess_replacement.patch 3538 RMD160 8b74cea35584ad411b6634bc3ca12b9d20f10403 SHA1 92933732c2b6fbc35fea7b601c81ce5ea46a9b9c SHA256 ba9b51e5aa69c39dab519a30aac1707f1cbda5404cdd4ddf7fd0afc3aab19ed0
+MD5 e492d6b4706bc5c4f96d4a3067aa4e51 files/hplip-2.7.9-subprocess_replacement.patch 3538
+RMD160 8b74cea35584ad411b6634bc3ca12b9d20f10403 files/hplip-2.7.9-subprocess_replacement.patch 3538
+SHA256 ba9b51e5aa69c39dab519a30aac1707f1cbda5404cdd4ddf7fd0afc3aab19ed0 files/hplip-2.7.9-subprocess_replacement.patch 3538
AUX hplip.init.d 948 RMD160 3908cd5b42175416cc4ac6fc36f0006f7c65588c SHA1 bc9c9a8767c5f253cd9c0dd40bb7e4248cd13b0b SHA256 9dad79022ced93da207a50f8d49d93acfc19f36b89e2b3d77f6b809ee81abd95
MD5 dcda3bf144b5f2cd4bebd1719383dd31 files/hplip.init.d 948
RMD160 3908cd5b42175416cc4ac6fc36f0006f7c65588c files/hplip.init.d 948
@@ -9,7 +9,6 @@ SHA256 9dad79022ced93da207a50f8d49d93acfc19f36b89e2b3d77f6b809ee81abd95 files/hp
DIST foomatic-db-hpijs-20060720.tar.gz 98252 RMD160 0c2c09f3cea6fc2a8e5da216bd9996b96d91613d SHA1 0e4ec08d01cd28bb751bc2e5844f0d0f7b97ba42 SHA256 1e50f603b46b1d07980212b2e5dfc5d72d07c889259e79ecbf09469fef5ad20e
DIST hplip-1.6.10.tar.gz 10561620 RMD160 3608757fca36865528565c0c40571d91a936fd3f SHA1 7c877cac132fc8695c693800c7e34322bdc8d858 SHA256 45f4eafd4568a06889bf4b996a3c75ef571a157b921f56b027b567766d8e239f
DIST hplip-1.7.4a.tar.gz 13566965 RMD160 e2777b8b065abe385bfe557b9eed86848029e2c9 SHA1 98fcb0ce13ee7d9f17cc6c61c568528dd9cbf71d SHA256 903957b1b1aa86438d546a205a3d526a600b1e56754a5ba5ce99228a26cc475e
-DIST hplip-2.7.7.tar.gz 14412854 RMD160 d3bc36b44b2fd07d8938fce2f508bbc9b4c47b5b SHA1 5b80ba8a62035985cbc4a0ae656df8a1779dbbdb SHA256 0804bda4dd18480597bf408351fe56412b84f737d2554b07aafaa1fb089674ba
DIST hplip-2.7.9.tar.gz 14488632 RMD160 007a4c888bde277e86b1a78628062774a43ff2f7 SHA1 1ac491fd2b49f8a5a658532fd44e2aa0b008e072 SHA256 e8867529434411f6c44ef6224405f92fd6be25f04513946621bf209b2e81baaf
EBUILD hplip-1.6.10.ebuild 3675 RMD160 877081de0015019133f1031fda241b7709771b87 SHA1 c09c30009fb5a98caefe8bf1b75e856160f1be26 SHA256 583c89b73d79581d51e8ca1dff6d2139bd5a2137c4871e536c0d5d3e00f04070
MD5 8446d1a564a05b03114e9a4cc7e35d1f hplip-1.6.10.ebuild 3675
@@ -19,18 +18,14 @@ EBUILD hplip-1.7.4a-r1.ebuild 3690 RMD160 2205bf20df3371dfb7e17600300c9b866fe746
MD5 33e0e690f7dddf3786a73ff1ac6c19bd hplip-1.7.4a-r1.ebuild 3690
RMD160 2205bf20df3371dfb7e17600300c9b866fe746db hplip-1.7.4a-r1.ebuild 3690
SHA256 adae960db7d1bc4df717b8a53f9e65fcc6011938a2ed9f1526221856c3cd7c96 hplip-1.7.4a-r1.ebuild 3690
-EBUILD hplip-2.7.7-r3.ebuild 3640 RMD160 ea6608f71a41f451f5170dfbf5baedd461e242f1 SHA1 f8453d091aab87c7a28c8ca2479cac520209bbdc SHA256 cd31a789f69d2ff5297b8f5e3f2b25483421b37c0d34e94ad79c71d244061772
-MD5 c57089ac7c68f7b2cf3e8c311bd326e7 hplip-2.7.7-r3.ebuild 3640
-RMD160 ea6608f71a41f451f5170dfbf5baedd461e242f1 hplip-2.7.7-r3.ebuild 3640
-SHA256 cd31a789f69d2ff5297b8f5e3f2b25483421b37c0d34e94ad79c71d244061772 hplip-2.7.7-r3.ebuild 3640
-EBUILD hplip-2.7.9.ebuild 3731 RMD160 3414b2654235c1a0a7e641a097b30293bb73db37 SHA1 21046973a27f8e5636cea64cc3799d5e18da5825 SHA256 2c5c6cc2b226f35635a82d8c229e29a4f41be0cbab5975cc59087457a957fe65
-MD5 b888503b15bbf1b1d3d3146466548d2f hplip-2.7.9.ebuild 3731
-RMD160 3414b2654235c1a0a7e641a097b30293bb73db37 hplip-2.7.9.ebuild 3731
-SHA256 2c5c6cc2b226f35635a82d8c229e29a4f41be0cbab5975cc59087457a957fe65 hplip-2.7.9.ebuild 3731
-MISC ChangeLog 13442 RMD160 20834a6a68d4516e9f8d4589db274370dbf3b290 SHA1 baa06116d5db4b6698387039e2d7052ddfa64c8e SHA256 8453b8808eee936e429cc440cdbfd96670ad526dcae0847e988167932dea32cf
-MD5 5abc214d3297bfeacaf9b091cf30bbdf ChangeLog 13442
-RMD160 20834a6a68d4516e9f8d4589db274370dbf3b290 ChangeLog 13442
-SHA256 8453b8808eee936e429cc440cdbfd96670ad526dcae0847e988167932dea32cf ChangeLog 13442
+EBUILD hplip-2.7.9-r1.ebuild 3825 RMD160 5b368908abfd46bffa3b02c534e368a983842c37 SHA1 1791d363a4a52ab7eb3203115c2c7caada17b1fb SHA256 ccc4856fcf3904f24e44851ef4a333ce3807b10e111a71d9e53ef142e015f864
+MD5 8d058d337fca7a7d3b8720add13cb22e hplip-2.7.9-r1.ebuild 3825
+RMD160 5b368908abfd46bffa3b02c534e368a983842c37 hplip-2.7.9-r1.ebuild 3825
+SHA256 ccc4856fcf3904f24e44851ef4a333ce3807b10e111a71d9e53ef142e015f864 hplip-2.7.9-r1.ebuild 3825
+MISC ChangeLog 13748 RMD160 1884361dba9116402d37294496201c5e966cb99c SHA1 3f849c0d9cf23695225c567e9a5b8211ef2ad890 SHA256 232664ffc3519c9cd80a79038a73e6c252f827f881411a8794afe1e7d597430a
+MD5 d2fd07d6dbaf775086d9da6e955f58f2 ChangeLog 13748
+RMD160 1884361dba9116402d37294496201c5e966cb99c ChangeLog 13748
+SHA256 232664ffc3519c9cd80a79038a73e6c252f827f881411a8794afe1e7d597430a ChangeLog 13748
MISC metadata.xml 250 RMD160 00f8254bd6b52bc050cdc822b7370b3e2d2f4970 SHA1 f91d1e6c01026cba252d042ba254f4a4bc61194a SHA256 ab106df12671f3f541e0416f8c0d5a96b6e725ed7b3b111d27af7a584c4bf164
MD5 a7f39f5758507140c896dcc24a3e0e2f metadata.xml 250
RMD160 00f8254bd6b52bc050cdc822b7370b3e2d2f4970 metadata.xml 250
@@ -41,9 +36,6 @@ SHA256 a6a40ef739f13c2b5baf4d46161d709d65d1770a0bef40d472cd3161562c92ef files/di
MD5 8cdad3401711a59d614863b839c45335 files/digest-hplip-1.7.4a-r1 521
RMD160 ac859e445b139c0789441184c5af69e1cb75d679 files/digest-hplip-1.7.4a-r1 521
SHA256 4d98dfc9fec72da07fc2405364c623aaed10c8476d582920a75639e8499cd135 files/digest-hplip-1.7.4a-r1 521
-MD5 f2a0a963b9b861e21a85682d0c052886 files/digest-hplip-2.7.7-r3 241
-RMD160 65b7854d37748cd9132fe9a021cd75af7324e442 files/digest-hplip-2.7.7-r3 241
-SHA256 c0010a4a83dce3e4d7f01acb21db5cf45068c4060a7bc99f3f37554de50e9fba files/digest-hplip-2.7.7-r3 241
-MD5 f68fb8f4981ef3faecff859da377ddb1 files/digest-hplip-2.7.9 241
-RMD160 1c32e9bb5148d9cafb89f9c096e793197fc76485 files/digest-hplip-2.7.9 241
-SHA256 6854a0c055d17b18ecdf0d14a071a5c01b818a85a2fcc47fef928fb4aa1cb2f7 files/digest-hplip-2.7.9 241
+MD5 f68fb8f4981ef3faecff859da377ddb1 files/digest-hplip-2.7.9-r1 241
+RMD160 1c32e9bb5148d9cafb89f9c096e793197fc76485 files/digest-hplip-2.7.9-r1 241
+SHA256 6854a0c055d17b18ecdf0d14a071a5c01b818a85a2fcc47fef928fb4aa1cb2f7 files/digest-hplip-2.7.9-r1 241
diff --git a/net-print/hplip/files/digest-hplip-2.7.7-r3 b/net-print/hplip/files/digest-hplip-2.7.7-r3
deleted file mode 100644
index 3dbaf8aeb6e1..000000000000
--- a/net-print/hplip/files/digest-hplip-2.7.7-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 086bd6a306fa2dfbd6e8c962fddcdef4 hplip-2.7.7.tar.gz 14412854
-RMD160 d3bc36b44b2fd07d8938fce2f508bbc9b4c47b5b hplip-2.7.7.tar.gz 14412854
-SHA256 0804bda4dd18480597bf408351fe56412b84f737d2554b07aafaa1fb089674ba hplip-2.7.7.tar.gz 14412854
diff --git a/net-print/hplip/files/digest-hplip-2.7.9 b/net-print/hplip/files/digest-hplip-2.7.9-r1
index 46ad4669e85f..46ad4669e85f 100644
--- a/net-print/hplip/files/digest-hplip-2.7.9
+++ b/net-print/hplip/files/digest-hplip-2.7.9-r1
diff --git a/net-print/hplip/files/hplip-2.7.7-udev-kernel.2.6.22.diff b/net-print/hplip/files/hplip-2.7.7-udev-kernel.2.6.22.diff
deleted file mode 100644
index 7dd55c1c7466..000000000000
--- a/net-print/hplip/files/hplip-2.7.7-udev-kernel.2.6.22.diff
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: hplip-2.7.7/55-hpmud.rules
-===================================================================
---- hplip-2.7.7.orig/55-hpmud.rules
-+++ hplip-2.7.7/55-hpmud.rules
-@@ -1,5 +1,5 @@
- # TODO: add PROGRAM rule for 7/xx/xx printer class interface
--SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
-+SUBSYSTEM!="usb|usb_device", GOTO="hpmud_rules_end"
- ACTION!="add", GOTO="hpmud_rules_end"
--SYSFS{idVendor}=="03f0", GROUP="lp"
-+ATTRS{idVendor}=="03f0", GROUP="lp"
- LABEL="hpmud_rules_end"
diff --git a/net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch b/net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch
new file mode 100644
index 000000000000..15b386e227f5
--- /dev/null
+++ b/net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch
@@ -0,0 +1,99 @@
+diff -urNad hplip-2.7.7.dfsg.1~/hpssd.py hplip-2.7.7.dfsg.1/hpssd.py
+--- hplip-2.7.7.dfsg.1~/hpssd.py 2007-10-04 12:45:29.000000000 -0700
++++ hplip-2.7.7.dfsg.1/hpssd.py 2007-10-04 12:46:39.000000000 -0700
+@@ -53,7 +53,7 @@
+
+ # Std Lib
+ import sys, socket, os, os.path, signal, getopt, time, select
+-import popen2, threading, tempfile
++import subprocess, threading, tempfile
+
+ from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \
+ ENOTCONN, ESHUTDOWN, EINTR, EISCONN
+@@ -560,21 +560,23 @@
+
+ if sendmail:
+ sendmail = os.path.join(sendmail, 'sendmail')
+- sendmail += ' -t -r %s' % self.from_address
++ cmd = [sendmail,'-t','-r',self.from_address]
+
+- log.debug(sendmail)
+- std_out, std_in, std_err = popen2.popen3(sendmail)
+- log.debug(repr(self.message))
+- std_in.write(self.message)
+- std_in.close()
++ log.debug(repr(cmd))
++ err = None
++ try:
++ sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
++ std_out, std_err = sp.communicate(self.message)
++ log.debug(repr(self.message))
++ if std_err != '':
++ err = std_err
+
+- r, w, e = select.select([std_err], [], [], 2.0)
++ except OSError, e:
++ err = str(e)
+
+- if r:
+- err = std_err.read()
+- if err:
+- log.error(repr(err))
+- self.result = ERROR_TEST_EMAIL_FAILED
++ if err:
++ log.error(repr(err))
++ self.result = ERROR_TEST_EMAIL_FAILED
+
+ else:
+ log.error("Mail send failed. sendmail not found.")
+diff -urNad hplip-2.7.7.dfsg.1~/scan.py hplip-2.7.7.dfsg.1/scan.py
+--- hplip-2.7.7.dfsg.1~/scan.py 2007-10-04 12:45:14.000000000 -0700
++++ hplip-2.7.7.dfsg.1/scan.py 2007-10-04 12:46:48.000000000 -0700
+@@ -782,7 +782,7 @@
+ from scan import sane
+ import scanext
+ import cStringIO
+- import popen2
++ import subprocess
+
+ try:
+ import Image
+@@ -1139,26 +1139,21 @@
+
+ if sendmail:
+ sendmail = os.path.join(sendmail, 'sendmail')
+- sendmail += ' -t -r %s' % email_from
+-
+- log.debug(sendmail)
+- std_out, std_in, std_err = popen2.popen3(sendmail)
+- std_in.write(msg.as_string())
+- std_in.close()
+-
+- while True:
+- update_spinner()
+- r, w, e = select.select([std_err], [], [], 1.0)
+-
+- if r:
+- break
++ cmd = [sendmail,'-t','-r',email_from]
+
++ log.debug(repr(cmd))
++ err = None
++ try:
++ sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
++ std_out, std_err = sp.communicate(msg.as_string())
++ if std_err != '':
++ err = std_err
++ except OSError, e:
++ err = str(e)
+ cleanup_spinner()
+
+- if r:
+- err = std_err.read()
+- if err:
+- log.error(repr(err))
++ if err:
++ log.error(repr(err))
+
+ else:
+ log.error("Mail send failed. 'sendmail' not found.")
diff --git a/net-print/hplip/hplip-2.7.7-r3.ebuild b/net-print/hplip/hplip-2.7.7-r3.ebuild
deleted file mode 100644
index f7c4465e2a7b..000000000000
--- a/net-print/hplip/hplip-2.7.7-r3.ebuild
+++ /dev/null
@@ -1,115 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.7.7-r3.ebuild,v 1.1 2007/09/29 20:31:08 calchan Exp $
-
-inherit eutils linux-info
-
-DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools."
-HOMEPAGE="http://hplip.sourceforge.net/"
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="X doc fax minimal parport ppds scanner snmp"
-
-DEPEND="!net-print/hpijs
- !net-print/hpoj
- dev-libs/openssl
- virtual/ghostscript
- >=media-libs/jpeg-6b
- >=net-print/cups-1.2
- dev-libs/libusb
- >=dev-lang/python-2.2
- net-print/foomatic-filters
- fax? ( >=dev-lang/python-2.3 )
- snmp? ( net-analyzer/net-snmp )"
-
-RDEPEND="${DEPEND}
- !<sys-fs/udev-114
- fax? ( dev-python/reportlab )
- X? ( >=dev-python/PyQt-3.14 )
- scanner? (
- X? ( >=media-gfx/xsane-0.89 )
- !X? ( >=media-gfx/sane-frontends-1.0.9 )
- )"
-
-CONFIG_CHECK="PARPORT"
-ERROR_PARPORT="Please make sure Device Drivers -> Parallel port support is enabled in your kernel"
-
-pkg_setup() {
- use parport && linux-info_pkg_setup
-
- # avoid collisions with cups-1.2 compat symlinks
- if [ -e ${ROOT}/usr/lib/cups/backend/hp ] && [ -e ${ROOT}/usr/libexec/cups/backend/hp ]; then
- rm -f ${ROOT}/usr/libexec/cups/backend/hp{,fax};
- fi
-
- use ppds || ewarn "Not installing built-in PPD files. You need USE=ppds if you want to install them."
- use minimal && ewarn "Installing hpijs driver only, make sure you know what you are doing."
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed"
- sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \
- -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \
- base/utils.py || die "Patching base/utils.py failed"
-
- # bug 98428
- sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed"
-
- # Force recognition of Gentoo distro by hp-check
- sed -i \
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
- installer/core_install.py || die "sed core_install.py"
-
- # bug 186906, makes udev-rules work also for kernel-2.6.22
- epatch "${FILESDIR}/${P}-udev-kernel.2.6.22.diff"
-}
-
-src_compile() {
- econf \
- --disable-cups11-build \
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \
- $(use_enable minimal hpijs-only-build) \
- $(use_enable doc doc-build) \
- $(use_enable snmp network-build) \
- $(use_enable parport pp-build) \
- $(use_enable scanner scan-build) \
- $(use_enable X gui-build) \
- $(use_enable fax fax-build) \
- $(use_enable ppds foomatic-ppd-install) \
- --disable-foomatic-xml-install \
- || die "econf failed"
- emake || die "Compilation failed"
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install || die "emake install failed"
-
- # bug 106035
- use X || rm -Rf "${D}"/usr/share/applications
-}
-
-pkg_preinst() {
- if use scanner; then
- insinto /etc/sane.d
- [ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf .
- [ -e ${ROOT}/etc/sane.d/dll.conf ] && cp ${ROOT}/etc/sane.d/dll.conf .
- grep -q hpaio dll.conf || echo hpaio >> dll.conf
- doins dll.conf
- fi
-}
-
-pkg_postinst() {
- elog "You should run hp-setup as root if you are installing hplip for the first time, and may also"
- elog "need to run it if you are upgrading from an earlier version."
- elog
- elog "If your device is connected using USB, users will need to be in the lp group to access it."
- elog
- elog "This release doesn't use an init script anymore, so you should probably do a"
- elog "'rc-update del hplip' if you are updating."
-}
diff --git a/net-print/hplip/hplip-2.7.9.ebuild b/net-print/hplip/hplip-2.7.9-r1.ebuild
index f4bdb22da6b3..631348e13627 100644
--- a/net-print/hplip/hplip-2.7.9.ebuild
+++ b/net-print/hplip/hplip-2.7.9-r1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.7.9.ebuild,v 1.3 2007/10/12 16:29:34 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.7.9-r1.ebuild,v 1.1 2007/10/18 13:08:21 calchan Exp $
-inherit linux-info
+inherit eutils linux-info
DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools."
HOMEPAGE="http://hplip.sourceforge.net/"
@@ -48,8 +48,8 @@ pkg_setup() {
fi
# avoid collisions with cups-1.2 compat symlinks
- if [ -e ${ROOT}/usr/lib/cups/backend/hp ] && [ -e ${ROOT}/usr/libexec/cups/backend/hp ]; then
- rm -f ${ROOT}/usr/libexec/cups/backend/hp{,fax};
+ if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then
+ rm -f "${ROOT}"/usr/libexec/cups/backend/hp{,fax};
fi
}
@@ -57,6 +57,9 @@ src_unpack() {
unpack ${A}
cd "${S}"
+ # Fix bug #195565
+ epatch "${FILESDIR}"/${P}-subprocess_replacement.patch
+
sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed"
sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \
-e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \
@@ -105,7 +108,7 @@ pkg_preinst() {
if ! use minimal && use scanner ; then
insinto /etc/sane.d
[ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf .
- [ -e ${ROOT}/etc/sane.d/dll.conf ] && cp ${ROOT}/etc/sane.d/dll.conf .
+ [ -e "${ROOT}"/etc/sane.d/dll.conf ] && cp "${ROOT}"/etc/sane.d/dll.conf .
grep -q hpaio dll.conf || echo hpaio >> dll.conf
doins dll.conf
fi