Gentoo Archives: gentoo-commits

From: "Daniel Pielmeier (billie)" <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/hplip: ChangeLog hplip-3.9.10.ebuild
Date: Wed, 02 Dec 2009 19:27:18
Message-Id: E1NFuqw-0005FA-BS@stork.gentoo.org
1 billie 09/12/02 19:27:06
2
3 Modified: ChangeLog hplip-3.9.10.ebuild
4 Log:
5 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.
6 (Portage version: 2.1.6.13/cvs/Linux i686)
7
8 Revision Changes Path
9 1.136 net-print/hplip/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.136&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.136&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.135&r2=1.136
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v
18 retrieving revision 1.135
19 retrieving revision 1.136
20 diff -u -r1.135 -r1.136
21 --- ChangeLog 1 Dec 2009 12:43:27 -0000 1.135
22 +++ ChangeLog 2 Dec 2009 19:27:06 -0000 1.136
23 @@ -1,6 +1,13 @@
24 # ChangeLog for net-print/hplip
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.135 2009/12/01 12:43:27 flameeyes Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.136 2009/12/02 19:27:06 billie Exp $
28 +
29 + 02 Dec 2009; Daniel Pielmeier <billie@g.o> hplip-3.9.10.ebuild,
30 + +files/hplip-3.9.10-cupsddk.patch, +files/hplip-3.9.10-htmldir.patch:
31 + Patches part 2, replace sed expression with patches. If they don't get
32 + accepted upstream it is probaably a good idea to revert this. Ebuild
33 + cosmetics. Don't run gunzip/gzip on hpcups ppds as they don't use
34 + foomatic-rip.
35
36 01 Dec 2009; Diego E. Pettenò <flameeyes@g.o>
37 hplip-3.9.8-r3.ebuild, hplip-3.9.10.ebuild:
38
39
40
41 1.6 net-print/hplip/hplip-3.9.10.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild?rev=1.6&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild?rev=1.6&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild?r1=1.5&r2=1.6
46
47 Index: hplip-3.9.10.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild,v
50 retrieving revision 1.5
51 retrieving revision 1.6
52 diff -u -r1.5 -r1.6
53 --- hplip-3.9.10.ebuild 1 Dec 2009 12:43:27 -0000 1.5
54 +++ hplip-3.9.10.ebuild 2 Dec 2009 19:27:06 -0000 1.6
55 @@ -1,6 +1,6 @@
56 # Copyright 1999-2009 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild,v 1.5 2009/12/01 12:43:27 flameeyes Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.10.ebuild,v 1.6 2009/12/02 19:27:06 billie Exp $
60
61 EAPI="2"
62
63 @@ -14,6 +14,7 @@
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
66
67 +# zeroconf does not work properly with >=cups-1.4. thus support for it is also disabled in hplip.
68 IUSE="doc fax gtk +hpcups hpijs libnotify minimal -new-hpcups parport policykit qt3 qt4 scanner snmp static-ppds -udev-acl"
69
70 # Note : libusb-compat untested (calchan 20090516)
71 @@ -91,30 +92,36 @@
72 }
73
74 src_prepare() {
75 + # Do not install desktop files if there is no gui
76 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/452113
77 epatch "${FILESDIR}"/${P}-desktop.patch
78 +
79 + # Browser detection through xdg-open
80 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/482674
81 epatch "${FILESDIR}"/${P}-browser.patch
82
83 - # bug 98428
84 - sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Sed hpssd.py failed"
85 -
86 - # Force recognition of Gentoo distro by hp-check
87 - sed -i \
88 - -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
89 - installer/core_install.py || die "Sed installer/core_install.py failed"
90 + # Use cups-config when checking for cupsddk
91 + # Upstream bug: https://bugs.launchpad.net/hplip/+bug/483136
92 + epatch "${FILESDIR}"/${P}-cupsddk.patch
93 +
94 + # htmldocs are not installed under docdir/html so enable htmldir configure switch
95 + # Upstream bug: https://bugs.launchpad.net/hplip/+bug/483217
96 + epatch "${FILESDIR}"/${P}-htmldir.patch
97
98 - # SYSFS deprecated - https://bugs.launchpad.net/hplip/+bug/346390
99 + # SYSFS deprecated but kept upstream for compatibility reasons
100 + # Upstream bug: https://bugs.launchpad.net/hplip/+bug/346390
101 sed -i -e "s/SYSFS/ATTRS/g" -e "s/sysfs/attrs/g" data/rules/56-hpmud_support.rules \
102 data/rules/55-hpmud.rules || die "Sed 55-hpmud.rules 56-hpmud_support.rules failed"
103
104 + # Force recognition of Gentoo distro by hp-check
105 sed -i \
106 - -e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \
107 + -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
108 installer/core_install.py || die "Sed installer/core_install.py failed"
109
110 - # Use system foomatic-rip instead of foomatic-rip-hplip
111 + # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
112 + # The hpcups driver does not use foomatic-rip
113 local i
114 - for i in ppd/{hpcups,hpijs}/*.ppd.gz
115 + for i in ppd/hpijs/*.ppd.gz
116 do
117 rm -f ${i}.temp
118 gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "Sed *.ppd.gz failed"
119 @@ -134,12 +141,6 @@
120 hplip-systray.desktop.in || die "Sed hplip-systray.desktop.in failed"
121 fi
122
123 - # htmldocs are not installed under docdir/html
124 - # the following sed enables --htmldir configure switch in src_configure
125 - if use doc ; then
126 - sed -i -e 's/www\([0-9]\)dir = $(docdir)/www\1dir = $(htmldir)/g' Makefile.am || die "Sed Makefile.am failed"
127 - fi
128 -
129 eautoreconf
130 }
131
132 @@ -218,7 +219,7 @@
133 --disable-shadow-build \
134 --with-cupsbackenddir=$(cups-config --serverbin)/backend \
135 --with-cupsfilterdir=$(cups-config --serverbin)/filter \
136 - --htmldir=/usr/share/doc/${P}/html \
137 + --with-htmldir=/usr/share/doc/${P}/html \
138 ${gui_build} \
139 ${myconf} \
140 ${drv_build} \
141 @@ -235,7 +236,8 @@
142 src_install() {
143 emake DESTDIR="${D}" install || die "Emake install failed"
144
145 - # Bug #201023
146 + # Installed by sane-backends
147 + # Gentoo Bug: #201023
148 rm -f "${D}"/etc/sane.d/dll.conf
149
150 # kde3 autostart hack