1 |
billie 10/02/28 12:21:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hplip-3.10.2.ebuild |
5 |
Removed: hplip-3.9.4b-r1.ebuild hplip-3.9.10.ebuild |
6 |
hplip-3.9.12.ebuild |
7 |
Log: |
8 |
Version bump. Remove old. |
9 |
(Portage version: 2.1.7.16/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.147 net-print/hplip/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.147&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.147&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.146&r2=1.147 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v |
21 |
retrieving revision 1.146 |
22 |
retrieving revision 1.147 |
23 |
diff -u -r1.146 -r1.147 |
24 |
--- ChangeLog 12 Feb 2010 19:09:57 -0000 1.146 |
25 |
+++ ChangeLog 28 Feb 2010 12:21:59 -0000 1.147 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-print/hplip |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.146 2010/02/12 19:09:57 josejx Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.147 2010/02/28 12:21:59 billie Exp $ |
31 |
+ |
32 |
+*hplip-3.10.2 (28 Feb 2010) |
33 |
+ |
34 |
+ 28 Feb 2010; Daniel Pielmeier <billie@g.o> -hplip-3.9.4b-r1.ebuild, |
35 |
+ -hplip-3.9.10.ebuild, -hplip-3.9.12.ebuild, +hplip-3.10.2.ebuild: |
36 |
+ Version bump. Remove old. |
37 |
|
38 |
12 Feb 2010; Joseph Jezak <josejx@g.o> hplip-3.9.12-r1.ebuild: |
39 |
Marked ppc/ppc64 stable for bug #304079. |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-print/hplip/hplip-3.10.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.10.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.10.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: hplip-3.10.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 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.10.2.ebuild,v 1.1 2010/02/28 12:21:59 billie Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
inherit fdo-mime linux-info python autotools |
57 |
|
58 |
DESCRIPTION="HP Linux Imaging and Printing System. Includes printer, scanner, fax drivers and service tools." |
59 |
HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
60 |
SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
65 |
|
66 |
# zeroconf does not work properly with >=cups-1.4. thus support for it is also disabled in hplip. |
67 |
IUSE="doc fax gtk +hpcups hpijs libnotify minimal -new-hpcups parport policykit qt4 scanner snmp static-ppds -udev-acl" |
68 |
|
69 |
COMMON_DEPEND=" |
70 |
media-libs/jpeg |
71 |
hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) |
72 |
udev-acl? ( >=sys-fs/udev-145[extras] ) |
73 |
!minimal? ( |
74 |
net-print/cups |
75 |
virtual/libusb:0 |
76 |
>=dev-lang/python-2.4.4[threads,xml] |
77 |
scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
78 |
fax? ( sys-apps/dbus ) |
79 |
snmp? ( |
80 |
net-analyzer/net-snmp |
81 |
dev-libs/openssl |
82 |
) |
83 |
)" |
84 |
|
85 |
DEPEND="${COMMON_DEPEND} |
86 |
dev-util/pkgconfig" |
87 |
|
88 |
RDEPEND="${COMMON_DEPEND} |
89 |
>=app-text/ghostscript-gpl-8.70 |
90 |
dev-python/pygobject |
91 |
!static-ppds? ( || ( >=net-print/cups-1.4.0 net-print/cupsddk ) ) |
92 |
!minimal? ( |
93 |
kernel_linux? ( >=sys-fs/udev-114 ) |
94 |
scanner? ( |
95 |
gtk? ( media-gfx/xsane ) |
96 |
!gtk? ( || ( media-gfx/sane-frontends dev-python/imaging ) ) |
97 |
) |
98 |
fax? ( |
99 |
dev-python/reportlab |
100 |
dev-python/dbus-python |
101 |
) |
102 |
qt4? ( |
103 |
dev-python/PyQt4[dbus,X] |
104 |
libnotify? ( |
105 |
dev-python/notify-python |
106 |
) |
107 |
policykit? ( |
108 |
sys-auth/policykit |
109 |
) |
110 |
) |
111 |
)" |
112 |
|
113 |
CONFIG_CHECK="~PARPORT ~PPDEV" |
114 |
ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)." |
115 |
|
116 |
pkg_setup() { |
117 |
! use qt4 && ewarn "You need USE=qt4 for the hplip GUI." |
118 |
|
119 |
use scanner && ! use gtk && ewarn "You need USE=gtk for the scanner GUI." |
120 |
|
121 |
if ! use hpcups && ! use hpijs ; then |
122 |
ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
123 |
ewarn "which is probably not what you want." |
124 |
ewarn "You will almost certainly not be able to print." |
125 |
ewarn "Recommended USE flags: USE=\"hpcups -hpijs\")." |
126 |
fi |
127 |
|
128 |
if use minimal ; then |
129 |
ewarn "Installing driver portions only, make sure you know what you are doing." |
130 |
ewarn "Depending on the USE flags set for hpcups and/or hpijs the appropiate" |
131 |
ewarn "drivers are installed." |
132 |
else |
133 |
use parport && linux-info_pkg_setup |
134 |
fi |
135 |
} |
136 |
|
137 |
src_prepare() { |
138 |
# Do not install desktop files if there is no gui |
139 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/452113 |
140 |
epatch "${FILESDIR}"/${PN}-3.9.10-desktop.patch |
141 |
|
142 |
# Browser detection through xdg-open |
143 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/482674 |
144 |
epatch "${FILESDIR}"/${PN}-3.9.10-browser.patch |
145 |
|
146 |
# Use cups-config when checking for cupsddk |
147 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/483136 |
148 |
epatch "${FILESDIR}"/${PN}-3.9.12-cupsddk.patch |
149 |
|
150 |
# htmldocs are not installed under docdir/html so enable htmldir configure switch |
151 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/483217 |
152 |
epatch "${FILESDIR}"/${PN}-3.9.10-htmldir.patch |
153 |
|
154 |
# Increase systray check timeout for slower machines |
155 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/335662 |
156 |
epatch "${FILESDIR}"/${PN}-3.9.12-systray.patch |
157 |
|
158 |
# SYSFS deprecated but kept upstream for compatibility reasons |
159 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/346390 |
160 |
sed -i -e "s/SYSFS/ATTRS/g" -e "s/sysfs/attrs/g" data/rules/56-hpmud_support.rules \ |
161 |
data/rules/55-hpmud.rules || die |
162 |
|
163 |
# Force recognition of Gentoo distro by hp-check |
164 |
sed -i \ |
165 |
-e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
166 |
installer/core_install.py || die |
167 |
|
168 |
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
169 |
# The hpcups driver does not use foomatic-rip |
170 |
local i |
171 |
for i in ppd/hpijs/*.ppd.gz |
172 |
do |
173 |
rm -f ${i}.temp |
174 |
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die |
175 |
mv ${i}.temp ${i} |
176 |
done |
177 |
|
178 |
eautoreconf |
179 |
} |
180 |
|
181 |
src_configure() { |
182 |
local gui_build myconf drv_build minimal_build |
183 |
|
184 |
if use qt4 ; then |
185 |
gui_build="--enable-gui-build --enable-qt4 --disable-qt3" |
186 |
if use policykit ; then |
187 |
myconf="--enable-policykit" |
188 |
else |
189 |
myconf="--disable-policykit" |
190 |
fi |
191 |
else |
192 |
gui_build="--disable-gui-build --disable-qt3 --disable-qt4" |
193 |
fi |
194 |
|
195 |
if use fax || use qt4 ; then |
196 |
myconf="${myconf} --enable-dbus-build" |
197 |
else |
198 |
myconf="${myconf} --disable-dbus-build" |
199 |
fi |
200 |
|
201 |
if use hpcups ; then |
202 |
drv_build="$(use_enable hpcups hpcups-install)" |
203 |
if use static-ppds ; then |
204 |
drv_build="${drv_build} --enable-cups-ppd-install" |
205 |
drv_build="${drv_build} --disable-cups-drv-install" |
206 |
else |
207 |
drv_build="${drv_build} --enable-cups-drv-install" |
208 |
drv_build="${drv_build} --disable-cups-ppd-install" |
209 |
fi |
210 |
else |
211 |
drv_build="--disable-hpcups-install --disable-cups-drv-install" |
212 |
drv_build="${drv_build} --disable-cups-ppd-install" |
213 |
fi |
214 |
|
215 |
if use hpijs ; then |
216 |
drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
217 |
if use static-ppds ; then |
218 |
drv_build="${drv_build} --enable-foomatic-ppd-install" |
219 |
drv_build="${drv_build} --disable-foomatic-drv-install" |
220 |
else |
221 |
drv_build="${drv_build} --enable-foomatic-drv-install" |
222 |
drv_build="${drv_build} --disable-foomatic-ppd-install" |
223 |
fi |
224 |
else |
225 |
drv_build="${drv_build} --disable-hpijs-install" |
226 |
drv_build="${drv_build} --disable-foomatic-drv-install" |
227 |
drv_build="${drv_build} --disable-foomatic-ppd-install" |
228 |
fi |
229 |
|
230 |
if use minimal ; then |
231 |
if use hpijs ; then |
232 |
minimal_build="--enable-hpijs-only-build" |
233 |
else |
234 |
minimal_build="--disable-hpijs-only-build" |
235 |
fi |
236 |
if use hpcups ; then |
237 |
minimal_build="${minimal_build} --enable-hpcups-only-build" |
238 |
else |
239 |
minimal_build="${minimal_build} --disable-hpcups-only-build" |
240 |
fi |
241 |
fi |
242 |
|
243 |
econf \ |
244 |
--disable-dependency-tracking \ |
245 |
--disable-cups11-build \ |
246 |
--disable-lite-build \ |
247 |
--disable-foomatic-rip-hplip-install \ |
248 |
--disable-shadow-build \ |
249 |
--with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
250 |
--with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
251 |
--with-htmldir=/usr/share/doc/${P}/html \ |
252 |
${gui_build} \ |
253 |
${myconf} \ |
254 |
${drv_build} \ |
255 |
${minimal_build} \ |
256 |
$(use_enable new-hpcups new-hpcups) \ |
257 |
$(use_enable doc doc-build) \ |
258 |
$(use_enable fax fax-build) \ |
259 |
$(use_enable parport pp-build) \ |
260 |
$(use_enable scanner scan-build) \ |
261 |
$(use_enable snmp network-build) \ |
262 |
$(use_enable udev-acl udev-acl-rules) |
263 |
} |
264 |
|
265 |
src_install() { |
266 |
emake DESTDIR="${D}" install || die |
267 |
|
268 |
# Installed by sane-backends |
269 |
# Gentoo Bug: #201023 |
270 |
rm -f "${D}"/etc/sane.d/dll.conf || die |
271 |
} |
272 |
|
273 |
pkg_postinst() { |
274 |
use !minimal && python_mod_optimize /usr/share/${PN} |
275 |
fdo-mime_desktop_database_update |
276 |
|
277 |
elog "You should run hp-setup as root if you are installing hplip for the first time," |
278 |
elog "and may also need to run it if you are upgrading from an earlier version." |
279 |
elog |
280 |
elog "If your device is connected using USB, users will need to be in the lp group to" |
281 |
elog "access it." |
282 |
elog |
283 |
elog "This release doesn't use an init script anymore, so you should probably do a" |
284 |
elog "'rc-update del hplip' if you are updating from an old version." |
285 |
elog |
286 |
elog "Starting with versions of hplip >=3.9.8 mDNS is the default network search" |
287 |
elog "mechanism. To make use of it you need to activate the zeroconf flag on cups." |
288 |
elog "If you prefer the SLP method you have to choose this when configuring the" |
289 |
elog "device." |
290 |
} |
291 |
|
292 |
pkg_postrm() { |
293 |
use !minimal && python_mod_cleanup /usr/share/${PN} |
294 |
fdo-mime_desktop_database_update |
295 |
} |