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