summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2009-12-02 19:27:15 +0000
committerDaniel Pielmeier <billie@gentoo.org>2009-12-02 19:27:15 +0000
commit55624bc0068b5db6b35936dc114e521e8c4ad109 (patch)
tree27069d83359fd660a1182dc703398c18641f73eb /net-print/hplip
parentForce the use of the newer upstream tarball, so we can drop the maintainer mo... (diff)
downloadhistorical-55624bc0068b5db6b35936dc114e521e8c4ad109.tar.gz
historical-55624bc0068b5db6b35936dc114e521e8c4ad109.tar.bz2
historical-55624bc0068b5db6b35936dc114e521e8c4ad109.zip
Patches part 2, replace sed expression with patches. If they don't get accepted upstream it is probaably a good idea to revert this. Ebuild cosmetics. Don't run gunzip/gzip on hpcups ppds as they don't not use foomatic-rip.
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'net-print/hplip')
-rw-r--r--net-print/hplip/ChangeLog9
-rw-r--r--net-print/hplip/Manifest6
-rw-r--r--net-print/hplip/files/hplip-3.9.10-cupsddk.patch22
-rw-r--r--net-print/hplip/files/hplip-3.9.10-htmldir.patch109
-rw-r--r--net-print/hplip/hplip-3.9.10.ebuild40
5 files changed, 164 insertions, 22 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog
index 407c4cc3b6c5..2719390f8175 100644
--- a/net-print/hplip/ChangeLog
+++ b/net-print/hplip/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-print/hplip
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.135 2009/12/01 12:43:27 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.136 2009/12/02 19:27:06 billie Exp $
+
+ 02 Dec 2009; Daniel Pielmeier <billie@gentoo.org> hplip-3.9.10.ebuild,
+ +files/hplip-3.9.10-cupsddk.patch, +files/hplip-3.9.10-htmldir.patch:
+ Patches part 2, replace sed expression with patches. If they don't get
+ accepted upstream it is probaably a good idea to revert this. Ebuild
+ cosmetics. Don't run gunzip/gzip on hpcups ppds as they don't use
+ foomatic-rip.
01 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
hplip-3.9.8-r3.ebuild, hplip-3.9.10.ebuild:
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest
index 70ee0e07c611..83d36a2f70bf 100644
--- a/net-print/hplip/Manifest
+++ b/net-print/hplip/Manifest
@@ -1,14 +1,16 @@
AUX 70-hpmud.rules 763 RMD160 b8326b26658b8e8355ae3d74423b51e2e15001e2 SHA1 fdb6b4937a814db50dc3ac3ca9b9c04cb44a6590 SHA256 6e7f2a0fd5a2111505066a412daea0d29c1ce858f09dbbaa489bb5a2f231e837
AUX hplip-3.9.10-browser.patch 1447 RMD160 0276eacae608821b6b900c9fb27dbd20fb207d04 SHA1 67eec05d9b29445a98a16d496e671cd0f29e1471 SHA256 0e3b3b251ff4cf73032f4c78b6c0495b2d95fefd53d9fd8897faf6528ddd2875
+AUX hplip-3.9.10-cupsddk.patch 1128 RMD160 de693684826251f595a54c32ac31ab1e1ff082ef SHA1 c95ed5c2313c951b543c1df58b179ee0f1290bd2 SHA256 80b09b3b6e24860aebdd856384261b7f7e1887a7779dec668693dcf10a1c159a
AUX hplip-3.9.10-desktop.patch 492 RMD160 52a8bcf1544d0073920e00a383aeb22a9caf5487 SHA1 9394a73448b7b1b3ab1a014ab63b9edc731def66 SHA256 04bb5ef5ee4145eadc5f9e6498ca8a2d3d2277569b179263cb86f0f56231e462
+AUX hplip-3.9.10-htmldir.patch 4444 RMD160 7c960a3049f0b27b761c0f05c4fa9b1484dcd323 SHA1 a9e4af023f23a8990c769158eca08eabd62a5566 SHA256 2ef20d6d8636e22789f48705d9ca219b88cf111d12c54ff0354b18f3b5e20476
AUX hplip-3.9.4+glibc-2.10.patch 1023 RMD160 9571a0c34421432f892a1535ff0bf6533dc3883c SHA1 1254a4c2b9f5d2e6a488b3b0567f7edda3ab7a26 SHA256 4ab1cde2cb9a405011faa5c3c3bf9d7c52ce97653a28aa056e01c71909d08b3b
DIST hplip-2.8.6b.tar.gz 10955713 RMD160 fa903344c59f4bc474aeb049dd75631e72435b92 SHA1 b15e1dcb00d745ccc424633a84ba062c307740f9 SHA256 aa1094f0f91bbc0b5a611ce6ece40651edc7b3da8fa111921a3524916fc179fa
DIST hplip-3.9.10.tar.gz 20999540 RMD160 65ea83e53bc19df0e2a054e723c74734fc5f39a8 SHA1 9c9a8b0bd990b7d6e29a9024ec80f3edceab269b SHA256 5dcde242478405a9f127a6a235a53f4d30a63725d9a6e4f4fda4662304e9723a
DIST hplip-3.9.4b.tar.gz 15712313 RMD160 bfed762c59b8dc2210d450ba86a5636773831cc1 SHA1 d2b06f1ee347a1f3aacd6b52600d08fc71ac5b12 SHA256 57496c01fb3ead9678e630c1c4a385e156b76d328440da550ebfc24b95ff8b1a
DIST hplip-3.9.8.tar.gz 15715640 RMD160 8b06537176bfb32d32ae20eec1cfa6765609ecc0 SHA1 bcf0d1d8d6a006dd00224b4f90c208c21af28e55 SHA256 6471d99bde2b1182f45082c50dbd9e424a3ec2c0e98c48c934a1cd0d4ccb4e36
EBUILD hplip-2.8.6b.ebuild 5243 RMD160 340bda9d2f26d4a6440a06ab40d25f7bab6ec8b5 SHA1 bb3a445a0b8d433985876ef91c01b8f18968935e SHA256 771ac5ef5f0a0b9c089b21a46bf4809d2e867d62c7a1b5e48d70a0f8154488af
-EBUILD hplip-3.9.10.ebuild 8400 RMD160 c166da115529cf57c9049f1862525136a4a89ae3 SHA1 95072176952f793c1bf7b3d449d4beec8cb422a4 SHA256 db04e8f1011b9c986983bf2e2ea4ea6d6fd6d46990c486815f70006b1f82f2e9
+EBUILD hplip-3.9.10.ebuild 8564 RMD160 25c238972e627c4f55ecad0a9ce92558f098b54e SHA1 7865c1f0ea0e52259412d9238f91788eb02a95fc SHA256 b6917aada1a816d011dd9d17aac138b60b897e6ba940b88c055f2e59a49d3e6c
EBUILD hplip-3.9.4b-r1.ebuild 6465 RMD160 99c22e2497c695a6f4756953ffba4006e035572c SHA1 739c86c85cc82a28c4344953be33d7a16573c5df SHA256 34547dc3ad9b7a905fc86380a10c8a8b8c010a3deb576544ac9f74b21e6d1840
EBUILD hplip-3.9.8-r3.ebuild 8043 RMD160 3fb2bc1970f674254cf33dce4f28909cfc579155 SHA1 0902a36e7f5e78294b6d0161bd972f3039ca7a0b SHA256 6b506822b4514d3a949b29343337eb820621a8329b0807ebca963c6721a3c262
-MISC ChangeLog 23205 RMD160 6f2e9554da3fb08ae4ce7db904aa5c6a9c3f8617 SHA1 d692a5e53b96e9d57381ac7988ae1ac126b768af SHA256 37a068bb1722bb12cf00d65a32f6b5b899d11bbc59b4d6ddc13672a920c11284
+MISC ChangeLog 23576 RMD160 ac597bd34b5d05d5005ed59e7e86265577700cad SHA1 277a95f66c0a54c0070c2cef6bd06b6f785356b1 SHA256 2622d7dd710c3bb3a15eb2d6a6860fbd0ebdceed8d7512170908d978a9821523
MISC metadata.xml 2576 RMD160 a22d81c0a7e8ec6c839a87c32d7c412d79ca5e2e SHA1 9971502edf107a48d22a1a0faf2160122baa7d56 SHA256 9b1b9e41c2df3d9fcc466aedccf078fa03e1b67b38c3bfb4723820e5b56ba0a5
diff --git a/net-print/hplip/files/hplip-3.9.10-cupsddk.patch b/net-print/hplip/files/hplip-3.9.10-cupsddk.patch
new file mode 100644
index 000000000000..906532cbcab9
--- /dev/null
+++ b/net-print/hplip/files/hplip-3.9.10-cupsddk.patch
@@ -0,0 +1,22 @@
+--- installer/core_install.py.old 2009-11-15 14:39:35.000000000 +0100
++++ installer/core_install.py 2009-11-15 16:38:27.000000000 +0100
+@@ -29,6 +29,7 @@
+ import grp
+ import pwd
+ import tarfile
++import commands # TODO: Replace with subprocess (commands is deprecated in Python 3.0)
+
+ try:
+ import hashlib # new in 2.5
+@@ -1036,9 +1037,8 @@
+ def check_cupsddk(self):
+ log.debug("Checking for cups-ddk...")
+ # TODO: Compute these paths some way or another...
+- #return check_tool("/usr/lib/cups/driver/drv list") and os.path.exists("/usr/share/cupsddk/include/media.defs")
+- return (check_file('drv', "/usr/lib/cups/driver") or check_file('drv', "/usr/lib64/cups/driver")) and \
+- check_file('media.defs', "/usr/share/cupsddk/include")
++ #return check_tool(commands.getoutput("cups-config --serverbin") + "/driver/drv list") and os.path.exists("/usr/share/cupsddk/include/media.defs")
++ return check_file('drv', commands.getoutput("cups-config --serverbin") + "/driver") and check_file('media.defs', "/usr/share/cupsddk/include")
+
+
+ def check_policykit(self):
diff --git a/net-print/hplip/files/hplip-3.9.10-htmldir.patch b/net-print/hplip/files/hplip-3.9.10-htmldir.patch
new file mode 100644
index 000000000000..60f7864adb37
--- /dev/null
+++ b/net-print/hplip/files/hplip-3.9.10-htmldir.patch
@@ -0,0 +1,109 @@
+diff -Naur hplip-3.9.10-old/configure.in hplip-3.9.10/configure.in
+--- hplip-3.9.10-old/configure.in 2009-11-15 18:24:03.000000000 +0100
++++ hplip-3.9.10/configure.in 2009-11-15 18:30:14.000000000 +0100
+@@ -319,6 +319,9 @@
+ AC_ARG_WITH(docdir, AC_HELP_STRING([--with-docdir=DIR], [set hplip documentation directory [default=datadir/doc]]),
+ hpdocdir=$withval, hpdocdir="$datadir/doc/hplip-$VERSION")
+
++AC_ARG_WITH(htmldir, AC_HELP_STRING([--with-htmldir=DIR], [set hplip html documentation directory [default=datadir/doc]]),
++ hphtmldir=$withval, hphtmldir="$datadir/doc/hplip-$VERSION")
++
+ AC_MSG_CHECKING([for foomatic ppd install])
+ AC_ARG_ENABLE(foomatic_ppd_install,
+ [ --enable-foomatic-ppd-install enable foomatic static ppd install (default=no), uses hpppddir],
+@@ -543,6 +546,7 @@
+ AC_DEFINE_DIR([abs_sbindir], [sbindir])
+ AC_DEFINE_DIR([abs_hpppddir], [hpppddir])
+ AC_DEFINE_DIR([abs_docdir], [hpdocdir])
++AC_DEFINE_DIR([abs_htmldir], [hphtmldir])
+ abs_ppddir=${abs_hpppddir%/*}
+ AC_DEFINE_DIR([abs_drvdir], [drvdir])
+
+@@ -550,6 +554,7 @@
+ AC_SUBST(abs_sbindir)
+ AC_SUBST(abs_hpppddir)
+ AC_SUBST(abs_docdir)
++AC_SUBST(abs_htmldir)
+ AC_SUBST(abs_ppddir)
+ AC_SUBST(abs_drvdir)
+ AC_SUBST(icondir)
+@@ -558,6 +563,7 @@
+ AC_SUBST(cupsfilterdir)
+ AC_SUBST(hpppddir)
+ AC_SUBST(hpdocdir)
++AC_SUBST(hphtmldir)
+ AC_SUBST(drvdir)
+ AC_SUBST(network_build)
+ AC_SUBST(pp_build)
+diff -Naur hplip-3.9.10-old/hplip.conf.in hplip-3.9.10/hplip.conf.in
+--- hplip-3.9.10-old/hplip.conf.in 2009-11-15 18:24:03.000000000 +0100
++++ hplip-3.9.10/hplip.conf.in 2009-11-15 18:25:01.000000000 +0100
+@@ -9,6 +9,7 @@
+ ppd=@abs_hpppddir@
+ ppdbase=@abs_ppddir@
+ doc=@abs_docdir@
++html=@abs_htmldir@
+ icon=@icondir@
+ cupsbackend=@cupsbackenddir@
+ cupsfilter=@cupsfilterdir@
+@@ -42,4 +43,4 @@
+ lite-build=@lite_build@
+ udev-acl-rules=@udev_acl_rules@
+ hpcups-only-build=@hpcups_only_build@
+-hpijs-only-build=@hpijs_only_build@
+\ Kein Zeilenumbruch am Dateiende.
++hpijs-only-build=@hpijs_only_build@
+diff -Naur hplip-3.9.10-old/hplip.list.in hplip-3.9.10/hplip.list.in
+--- hplip-3.9.10-old/hplip.list.in 2009-11-15 18:24:03.000000000 +0100
++++ hplip-3.9.10/hplip.list.in 2009-11-15 18:25:01.000000000 +0100
+@@ -49,6 +49,7 @@
+ $icondir=@icondir@
+ $systraydir=@systraydir@
+ $docdir=@hpdocdir@
++$htmldir=@hphtmldirdir@
+ $version=@VERSION@
+ $internal_tag=@PACKAGE_BUGREPORT@
+
+@@ -252,11 +253,11 @@
+ @epm_full@f 644 root root $home/pcard/photocard.py pcard/photocard.py
+ @epm_full@f 755 root root $home/info.py info.py
+ # docs
+-@epm_full@f 644 root root $docdir doc/*
+-@epm_full@d 775 root root $docdir/images -
+-@epm_full@f 644 root root $docdir/images doc/images/*
+-@epm_full@d 775 root root $docdir/styles -
+-@epm_full@f 644 root root $docdir/styles doc/styles/*
++@epm_full@f 644 root root $htmldir doc/*
++@epm_full@d 775 root root $htmldir/images -
++@epm_full@f 644 root root $htmldir/images doc/images/*
++@epm_full@d 775 root root $htmldir/styles -
++@epm_full@f 644 root root $htmldir/styles doc/styles/*
+ # python commands
+ @epm_full@l 755 root root $bindir/hp-toolbox ../share/hplip/toolbox.py
+ @epm_full@l 755 root root $bindir/hp-colorcal ../share/hplip/colorcal.py
+diff -Naur hplip-3.9.10-old/Makefile.am hplip-3.9.10/Makefile.am
+--- hplip-3.9.10-old/Makefile.am 2009-11-15 18:24:03.000000000 +0100
++++ hplip-3.9.10/Makefile.am 2009-11-15 18:27:20.000000000 +0100
+@@ -9,6 +9,7 @@
+ hplipdir = $(datadir)/hplip
+
+ docdir = $(hpdocdir)
++htmldir = $(hphtmldir)
+ doc_DATA = COPYING copyright prnt/hpijs/README_LIBJPG
+ EXTRA_DIST = prnt/hpijs/gdevijs-krgb-1.5-gs8.61.patch prnt/hpijs/README_LIBJPG copyright
+
+@@ -23,11 +24,11 @@
+
+ if DOC_BUILD
+ wwwsrc = doc
+-www0dir = $(docdir)
++www0dir = $(htmldir)
+ dist_www0_DATA = $(wwwsrc)/index.html $(wwwsrc)/commandline.html $(wwwsrc)/copying.html $(wwwsrc)/devicemanager.html $(wwwsrc)/faxtrouble.html $(wwwsrc)/gettinghelp.html $(wwwsrc)/hpscan.html $(wwwsrc)/mainttask.html $(wwwsrc)/plugins.html $(wwwsrc)/print.html $(wwwsrc)/printing.html $(wwwsrc)/printoptions.html $(wwwsrc)/printtroubleshooting.html $(wwwsrc)/scanning.html $(wwwsrc)/scantrouble.html $(wwwsrc)/sendfax.html $(wwwsrc)/setup.html $(wwwsrc)/systray.html $(wwwsrc)/troubleshooting.html $(wwwsrc)/uninstalling.html $(wwwsrc)/upgrading.html
+-www3dir = $(docdir)/styles
++www3dir = $(htmldir)/styles
+ dist_www3_DATA = $(wwwsrc)/styles/*
+-www4dir = $(docdir)/images
++www4dir = $(htmldir)/images
+ dist_www4_DATA = $(wwwsrc)/images/*
+ endif
+
diff --git a/net-print/hplip/hplip-3.9.10.ebuild b/net-print/hplip/hplip-3.9.10.ebuild
index 6580ed54e0d8..feee1f783c6f 100644
--- a/net-print/hplip/hplip-3.9.10.ebuild
+++ b/net-print/hplip/hplip-3.9.10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild,v 1.5 2009/12/01 12:43:27 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild,v 1.6 2009/12/02 19:27:06 billie Exp $
EAPI="2"
@@ -14,6 +14,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+# zeroconf does not work properly with >=cups-1.4. thus support for it is also disabled in hplip.
IUSE="doc fax gtk +hpcups hpijs libnotify minimal -new-hpcups parport policykit qt3 qt4 scanner snmp static-ppds -udev-acl"
# Note : libusb-compat untested (calchan 20090516)
@@ -91,30 +92,36 @@ pkg_setup() {
}
src_prepare() {
+ # Do not install desktop files if there is no gui
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/452113
epatch "${FILESDIR}"/${P}-desktop.patch
+
+ # Browser detection through xdg-open
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/482674
epatch "${FILESDIR}"/${P}-browser.patch
- # bug 98428
- sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Sed hpssd.py failed"
+ # Use cups-config when checking for cupsddk
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/483136
+ epatch "${FILESDIR}"/${P}-cupsddk.patch
- # Force recognition of Gentoo distro by hp-check
- sed -i \
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
- installer/core_install.py || die "Sed installer/core_install.py failed"
+ # htmldocs are not installed under docdir/html so enable htmldir configure switch
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/483217
+ epatch "${FILESDIR}"/${P}-htmldir.patch
- # SYSFS deprecated - https://bugs.launchpad.net/hplip/+bug/346390
+ # SYSFS deprecated but kept upstream for compatibility reasons
+ # Upstream bug: https://bugs.launchpad.net/hplip/+bug/346390
sed -i -e "s/SYSFS/ATTRS/g" -e "s/sysfs/attrs/g" data/rules/56-hpmud_support.rules \
data/rules/55-hpmud.rules || die "Sed 55-hpmud.rules 56-hpmud_support.rules failed"
+ # Force recognition of Gentoo distro by hp-check
sed -i \
- -e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \
+ -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
installer/core_install.py || die "Sed installer/core_install.py failed"
- # Use system foomatic-rip instead of foomatic-rip-hplip
+ # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
+ # The hpcups driver does not use foomatic-rip
local i
- for i in ppd/{hpcups,hpijs}/*.ppd.gz
+ for i in ppd/hpijs/*.ppd.gz
do
rm -f ${i}.temp
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "Sed *.ppd.gz failed"
@@ -134,12 +141,6 @@ src_prepare() {
hplip-systray.desktop.in || die "Sed hplip-systray.desktop.in failed"
fi
- # htmldocs are not installed under docdir/html
- # the following sed enables --htmldir configure switch in src_configure
- if use doc ; then
- sed -i -e 's/www\([0-9]\)dir = $(docdir)/www\1dir = $(htmldir)/g' Makefile.am || die "Sed Makefile.am failed"
- fi
-
eautoreconf
}
@@ -218,7 +219,7 @@ src_configure() {
--disable-shadow-build \
--with-cupsbackenddir=$(cups-config --serverbin)/backend \
--with-cupsfilterdir=$(cups-config --serverbin)/filter \
- --htmldir=/usr/share/doc/${P}/html \
+ --with-htmldir=/usr/share/doc/${P}/html \
${gui_build} \
${myconf} \
${drv_build} \
@@ -235,7 +236,8 @@ src_configure() {
src_install() {
emake DESTDIR="${D}" install || die "Emake install failed"
- # Bug #201023
+ # Installed by sane-backends
+ # Gentoo Bug: #201023
rm -f "${D}"/etc/sane.d/dll.conf
# kde3 autostart hack