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.11.10-r1.ebuild
Date: Tue, 01 Nov 2011 12:37:21
Message-Id: 20111101123710.C6B302004B@flycatcher.gentoo.org
1 billie 11/11/01 12:37:10
2
3 Modified: ChangeLog
4 Added: hplip-3.11.10-r1.ebuild
5 Log:
6 Revision bump to remove la files, thanks to Agostino Sarubbo in bug #388989.
7
8 (Portage version: 2.1.10.32/cvs/Linux i686)
9
10 Revision Changes Path
11 1.197 net-print/hplip/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.197&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.197&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?r1=1.196&r2=1.197
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v
20 retrieving revision 1.196
21 retrieving revision 1.197
22 diff -u -r1.196 -r1.197
23 --- ChangeLog 24 Oct 2011 06:36:35 -0000 1.196
24 +++ ChangeLog 1 Nov 2011 12:37:10 -0000 1.197
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-print/hplip
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.196 2011/10/24 06:36:35 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.197 2011/11/01 12:37:10 billie Exp $
30 +
31 +*hplip-3.11.10-r1 (01 Nov 2011)
32 +
33 + 01 Nov 2011; Daniel Pielmeier <billie@g.o> +hplip-3.11.10-r1.ebuild:
34 + Revision bump to remove la files, thanks to Agostino Sarubbo in bug #388989.
35
36 24 Oct 2011; Alexandre Rostovtsev <tetromino@g.o> hplip-3.11.5.ebuild,
37 hplip-3.11.7.ebuild, hplip-3.11.10.ebuild:
38
39
40
41 1.1 net-print/hplip/hplip-3.11.10-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.11.10-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.11.10-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hplip-3.11.10-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.11.10-r1.ebuild,v 1.1 2011/11/01 12:37:10 billie Exp $
51
52 EAPI=3
53
54 PYTHON_DEPEND="!minimal? 2"
55 PYTHON_USE_WITH="threads xml"
56 PYTHON_USE_WITH_OPT="!minimal"
57
58 inherit fdo-mime linux-info python autotools
59
60 DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools."
61 HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
62 SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
67
68 # zeroconf does not work properly with >=cups-1.4.
69 # Thus support for it is also disabled in hplip.
70 IUSE="doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds -acl X"
71
72 COMMON_DEPEND="
73 virtual/jpeg
74 hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] )
75 acl? ( || ( >=sys-fs/udev-171[acl] >=sys-fs/udev-145[extras] ) )
76 snmp? (
77 net-analyzer/net-snmp
78 dev-libs/openssl
79 )
80 !minimal? (
81 >=net-print/cups-1.4.0
82 virtual/libusb:0
83 scanner? ( >=media-gfx/sane-backends-1.0.19-r1 )
84 fax? ( sys-apps/dbus )
85 )"
86
87 DEPEND="${COMMON_DEPEND}
88 dev-util/pkgconfig"
89
90 RDEPEND="${COMMON_DEPEND}
91 >=app-text/ghostscript-gpl-8.71-r3
92 !minimal? (
93 dev-python/pygobject:2
94 kernel_linux? ( >=sys-fs/udev-114 )
95 scanner? (
96 dev-python/imaging
97 X? ( || (
98 kde? ( kde-misc/skanlite )
99 media-gfx/xsane
100 media-gfx/sane-frontends
101 ) )
102 )
103 fax? (
104 dev-python/reportlab
105 dev-python/dbus-python
106 )
107 qt4? (
108 dev-python/PyQt4[dbus,X]
109 libnotify? (
110 dev-python/notify-python
111 )
112 policykit? (
113 sys-auth/polkit
114 )
115 )
116 )"
117
118 CONFIG_CHECK="~PARPORT ~PPDEV"
119 ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)."
120
121 pkg_setup() {
122 if ! use minimal; then
123 python_set_active_version 2
124 python_pkg_setup
125 fi
126
127 ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI."
128
129 use scanner && ! use X && ewarn "You need USE=X for the scanner GUI."
130
131 if ! use hpcups && ! use hpijs ; then
132 ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver,"
133 ewarn "which is probably not what you want."
134 ewarn "You will almost certainly not be able to print."
135 ewarn "Recommended USE flags: USE=\"hpcups -hpijs\")."
136 fi
137
138 if use minimal ; then
139 ewarn "Installing driver portions only, make sure you know what you are doing."
140 ewarn "Depending on the USE flags set for hpcups and/or hpijs the appropiate"
141 ewarn "drivers are installed."
142 else
143 use parport && linux-info_pkg_setup
144 fi
145 }
146
147 src_prepare() {
148 python_convert_shebangs -q -r 2 .
149
150 # Fix for Gentoo bug #345725
151 sed -i -e "s|/etc/udev/rules.d|/$(get_libdir)/udev/rules.d|" \
152 $(find ./ -type f -exec grep -l '/etc/udev/rules.d' '{}' '+') \
153 || die "sed udev rules"
154
155 # Do not install desktop files if there is no gui
156 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/452113
157 epatch "${FILESDIR}"/${PN}-3.11.1-desktop.patch
158
159 # Browser detection through xdg-open
160 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/482674
161 epatch "${FILESDIR}"/${PN}-3.9.10-browser.patch
162
163 # Use cups-config when checking for cupsddk
164 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/483136
165 epatch "${FILESDIR}"/${PN}-3.9.12-cupsddk.patch
166
167 # Htmldocs are not installed under docdir/html so enable htmldir configure
168 # switch
169 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/483217
170 epatch "${FILESDIR}"/${PN}-3.11.1-htmldir.patch
171
172 # Increase systray check timeout for slower machines
173 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/335662
174 epatch "${FILESDIR}"/${PN}-3.9.12-systray.patch
175
176 # SYSFS deprecated but kept upstream for compatibility reasons
177 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/346390
178 epatch "${FILESDIR}"/${PN}-3.11.10-udev-attrs.patch
179
180 # CVE-2010-4267 SNMP Response Processing Buffer Overflow Vulnerability
181 # http://secunia.com/advisories/42956/
182 # https://bugzilla.redhat.com/show_bug.cgi?id=662740
183 epatch "${FILESDIR}"/${PN}-3.10.9-cve-2010-4267.patch
184
185 # Force recognition of Gentoo distro by hp-check
186 sed -i \
187 -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
188 installer/core_install.py || die
189
190 # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
191 # The hpcups driver does not use foomatic-rip
192 local i
193 for i in ppd/hpijs/*.ppd.gz ; do
194 rm -f ${i}.temp
195 gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
196 gzip > ${i}.temp || die
197 mv ${i}.temp ${i}
198 done
199
200 eautoreconf
201 }
202
203 src_configure() {
204 local gui_build myconf drv_build minimal_build
205
206 if use qt4 ; then
207 gui_build="--enable-gui-build --enable-qt4 --disable-qt3"
208 if use policykit ; then
209 myconf="--enable-policykit"
210 else
211 myconf="--disable-policykit"
212 fi
213 else
214 gui_build="--disable-gui-build --disable-qt3 --disable-qt4"
215 fi
216
217 if use fax || use qt4 ; then
218 myconf="${myconf} --enable-dbus-build"
219 else
220 myconf="${myconf} --disable-dbus-build"
221 fi
222
223 if use hpcups ; then
224 drv_build="$(use_enable hpcups hpcups-install)"
225 if use static-ppds ; then
226 drv_build="${drv_build} --enable-cups-ppd-install"
227 drv_build="${drv_build} --disable-cups-drv-install"
228 else
229 drv_build="${drv_build} --enable-cups-drv-install"
230 drv_build="${drv_build} --disable-cups-ppd-install"
231 fi
232 else
233 drv_build="--disable-hpcups-install --disable-cups-drv-install"
234 drv_build="${drv_build} --disable-cups-ppd-install"
235 fi
236
237 if use hpijs ; then
238 drv_build="${drv_build} $(use_enable hpijs hpijs-install)"
239 if use static-ppds ; then
240 drv_build="${drv_build} --enable-foomatic-ppd-install"
241 drv_build="${drv_build} --disable-foomatic-drv-install"
242 else
243 drv_build="${drv_build} --enable-foomatic-drv-install"
244 drv_build="${drv_build} --disable-foomatic-ppd-install"
245 fi
246 else
247 drv_build="${drv_build} --disable-hpijs-install"
248 drv_build="${drv_build} --disable-foomatic-drv-install"
249 drv_build="${drv_build} --disable-foomatic-ppd-install"
250 fi
251
252 if use minimal ; then
253 if use hpijs ; then
254 minimal_build="--enable-hpijs-only-build"
255 else
256 minimal_build="--disable-hpijs-only-build"
257 fi
258 if use hpcups ; then
259 minimal_build="${minimal_build} --enable-hpcups-only-build"
260 else
261 minimal_build="${minimal_build} --disable-hpcups-only-build"
262 fi
263 fi
264
265 econf \
266 --disable-dependency-tracking \
267 --disable-cups11-build \
268 --disable-lite-build \
269 --disable-foomatic-rip-hplip-install \
270 --disable-shadow-build \
271 --with-cupsbackenddir=$(cups-config --serverbin)/backend \
272 --with-cupsfilterdir=$(cups-config --serverbin)/filter \
273 --with-docdir=/usr/share/doc/${PF} \
274 --with-htmldir=/usr/share/doc/${PF}/html \
275 ${gui_build} \
276 ${myconf} \
277 ${drv_build} \
278 ${minimal_build} \
279 $(use_enable doc doc-build) \
280 $(use_enable fax fax-build) \
281 $(use_enable parport pp-build) \
282 $(use_enable scanner scan-build) \
283 $(use_enable snmp network-build) \
284 $(use_enable acl udev-acl-rules)
285 }
286
287 src_install() {
288 emake DESTDIR="${D}" install || die
289
290 # Installed by sane-backends
291 # Gentoo Bug: #201023
292 rm -f "${D}"/etc/sane.d/dll.conf || die
293
294 find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die
295 }
296
297 pkg_postinst() {
298 use !minimal && python_mod_optimize /usr/share/${PN}
299 fdo-mime_desktop_database_update
300
301 elog "For more information on setting up your printer please take"
302 elog "a look at the hplip section of the gentoo printing guide:"
303 elog "http://www.gentoo.org/doc/en/printing-howto.xml"
304 }
305
306 pkg_postrm() {
307 use !minimal && python_mod_cleanup /usr/share/${PN}
308 fdo-mime_desktop_database_update
309 }