1 |
scarabeus 10/10/04 18:08:20 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hplip-3.10.9.ebuild |
5 |
Log: |
6 |
Version bump to the latest. Acked by billie and flameeyes. |
7 |
|
8 |
(Portage version: 2.2_rc88/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.167 net-print/hplip/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.167&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.167&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?r1=1.166&r2=1.167 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v |
20 |
retrieving revision 1.166 |
21 |
retrieving revision 1.167 |
22 |
diff -u -r1.166 -r1.167 |
23 |
--- ChangeLog 28 Aug 2010 15:02:44 -0000 1.166 |
24 |
+++ ChangeLog 4 Oct 2010 18:08:20 -0000 1.167 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-print/hplip |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.166 2010/08/28 15:02:44 billie Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.167 2010/10/04 18:08:20 scarabeus Exp $ |
30 |
+ |
31 |
+*hplip-3.10.9 (04 Oct 2010) |
32 |
+ |
33 |
+ 04 Oct 2010; Tomáš Chvátal <scarabeus@g.o> +hplip-3.10.9.ebuild: |
34 |
+ Version bump to the latest. Acked by billie and flameeyes. |
35 |
|
36 |
28 Aug 2010; Daniel Pielmeier <billie@g.o> |
37 |
-files/hplip-3.10.2-plugin.patch, -hplip-3.10.5.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-print/hplip/hplip-3.10.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.10.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.10.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: hplip-3.10.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.10.9.ebuild,v 1.1 2010/10/04 18:08:20 scarabeus Exp $ |
51 |
|
52 |
EAPI=2 |
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 System. 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. thus support for it is also disabled in hplip. |
69 |
IUSE="doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds -udev-acl X" |
70 |
|
71 |
COMMON_DEPEND=" |
72 |
media-libs/jpeg |
73 |
hpijs? ( >=net-print/foomatic-filters-3.0.20080507[cups] ) |
74 |
udev-acl? ( >=sys-fs/udev-145[extras] ) |
75 |
snmp? ( |
76 |
net-analyzer/net-snmp |
77 |
dev-libs/openssl |
78 |
) |
79 |
!minimal? ( |
80 |
net-print/cups |
81 |
virtual/libusb:0 |
82 |
scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
83 |
fax? ( sys-apps/dbus ) |
84 |
)" |
85 |
|
86 |
DEPEND="${COMMON_DEPEND} |
87 |
dev-util/pkgconfig" |
88 |
|
89 |
RDEPEND="${COMMON_DEPEND} |
90 |
>=app-text/ghostscript-gpl-8.71-r3 |
91 |
!static-ppds? ( || ( >=net-print/cups-1.4.0 net-print/cupsddk ) ) |
92 |
!minimal? ( |
93 |
dev-python/pygobject |
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/policykit |
114 |
) |
115 |
) |
116 |
)" |
117 |
|
118 |
CONFIG_CHECK="~PARPORT ~PPDEV" |
119 |
ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (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 |
# Do not install desktop files if there is no gui |
151 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/452113 |
152 |
epatch "${FILESDIR}"/${PN}-3.9.10-desktop.patch |
153 |
|
154 |
# Browser detection through xdg-open |
155 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/482674 |
156 |
epatch "${FILESDIR}"/${PN}-3.9.10-browser.patch |
157 |
|
158 |
# Use cups-config when checking for cupsddk |
159 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/483136 |
160 |
epatch "${FILESDIR}"/${PN}-3.9.12-cupsddk.patch |
161 |
|
162 |
# Htmldocs are not installed under docdir/html so enable htmldir configure switch |
163 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/483217 |
164 |
epatch "${FILESDIR}"/${PN}-3.9.10-htmldir.patch |
165 |
|
166 |
# Increase systray check timeout for slower machines |
167 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/335662 |
168 |
epatch "${FILESDIR}"/${PN}-3.9.12-systray.patch |
169 |
|
170 |
# SYSFS deprecated but kept upstream for compatibility reasons |
171 |
# Upstream bug: https://bugs.launchpad.net/hplip/+bug/346390 |
172 |
epatch "${FILESDIR}"/${PN}-3.10.5-udev-attrs.patch |
173 |
|
174 |
# Force recognition of Gentoo distro by hp-check |
175 |
sed -i \ |
176 |
-e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
177 |
installer/core_install.py || die |
178 |
|
179 |
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
180 |
# The hpcups driver does not use foomatic-rip |
181 |
local i |
182 |
for i in ppd/hpijs/*.ppd.gz |
183 |
do |
184 |
rm -f ${i}.temp |
185 |
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die |
186 |
mv ${i}.temp ${i} |
187 |
done |
188 |
|
189 |
eautoreconf |
190 |
} |
191 |
|
192 |
src_configure() { |
193 |
local gui_build myconf drv_build minimal_build |
194 |
|
195 |
if use qt4 ; then |
196 |
gui_build="--enable-gui-build --enable-qt4 --disable-qt3" |
197 |
if use policykit ; then |
198 |
myconf="--enable-policykit" |
199 |
else |
200 |
myconf="--disable-policykit" |
201 |
fi |
202 |
else |
203 |
gui_build="--disable-gui-build --disable-qt3 --disable-qt4" |
204 |
fi |
205 |
|
206 |
if use fax || use qt4 ; then |
207 |
myconf="${myconf} --enable-dbus-build" |
208 |
else |
209 |
myconf="${myconf} --disable-dbus-build" |
210 |
fi |
211 |
|
212 |
if use hpcups ; then |
213 |
drv_build="$(use_enable hpcups hpcups-install)" |
214 |
if use static-ppds ; then |
215 |
drv_build="${drv_build} --enable-cups-ppd-install" |
216 |
drv_build="${drv_build} --disable-cups-drv-install" |
217 |
else |
218 |
drv_build="${drv_build} --enable-cups-drv-install" |
219 |
drv_build="${drv_build} --disable-cups-ppd-install" |
220 |
fi |
221 |
else |
222 |
drv_build="--disable-hpcups-install --disable-cups-drv-install" |
223 |
drv_build="${drv_build} --disable-cups-ppd-install" |
224 |
fi |
225 |
|
226 |
if use hpijs ; then |
227 |
drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
228 |
if use static-ppds ; then |
229 |
drv_build="${drv_build} --enable-foomatic-ppd-install" |
230 |
drv_build="${drv_build} --disable-foomatic-drv-install" |
231 |
else |
232 |
drv_build="${drv_build} --enable-foomatic-drv-install" |
233 |
drv_build="${drv_build} --disable-foomatic-ppd-install" |
234 |
fi |
235 |
else |
236 |
drv_build="${drv_build} --disable-hpijs-install" |
237 |
drv_build="${drv_build} --disable-foomatic-drv-install" |
238 |
drv_build="${drv_build} --disable-foomatic-ppd-install" |
239 |
fi |
240 |
|
241 |
if use minimal ; then |
242 |
if use hpijs ; then |
243 |
minimal_build="--enable-hpijs-only-build" |
244 |
else |
245 |
minimal_build="--disable-hpijs-only-build" |
246 |
fi |
247 |
if use hpcups ; then |
248 |
minimal_build="${minimal_build} --enable-hpcups-only-build" |
249 |
else |
250 |
minimal_build="${minimal_build} --disable-hpcups-only-build" |
251 |
fi |
252 |
fi |
253 |
|
254 |
econf \ |
255 |
--disable-dependency-tracking \ |
256 |
--disable-cups11-build \ |
257 |
--disable-lite-build \ |
258 |
--disable-foomatic-rip-hplip-install \ |
259 |
--disable-shadow-build \ |
260 |
--with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
261 |
--with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
262 |
--with-docdir=/usr/share/doc/${PF} \ |
263 |
--with-htmldir=/usr/share/doc/${PF}/html \ |
264 |
${gui_build} \ |
265 |
${myconf} \ |
266 |
${drv_build} \ |
267 |
${minimal_build} \ |
268 |
$(use_enable doc doc-build) \ |
269 |
$(use_enable fax fax-build) \ |
270 |
$(use_enable parport pp-build) \ |
271 |
$(use_enable scanner scan-build) \ |
272 |
$(use_enable snmp network-build) \ |
273 |
$(use_enable udev-acl udev-acl-rules) |
274 |
} |
275 |
|
276 |
src_install() { |
277 |
emake DESTDIR="${D}" install || die |
278 |
|
279 |
# Installed by sane-backends |
280 |
# Gentoo Bug: #201023 |
281 |
rm -f "${D}"/etc/sane.d/dll.conf || die |
282 |
} |
283 |
|
284 |
pkg_postinst() { |
285 |
use !minimal && python_mod_optimize /usr/share/${PN} |
286 |
fdo-mime_desktop_database_update |
287 |
|
288 |
elog "You should run hp-setup as root if you are installing hplip for the first time," |
289 |
elog "and may also need to run it if you are upgrading from an earlier version." |
290 |
elog |
291 |
elog "If your device is connected using USB, users will need to be in the lp group to" |
292 |
elog "access it." |
293 |
elog |
294 |
elog "Starting with versions of hplip >=3.9.8 mDNS is the default network search" |
295 |
elog "mechanism. To make use of it you need to activate the zeroconf flag on cups." |
296 |
elog "If you prefer the SLP method you have to choose this when configuring the" |
297 |
elog "device." |
298 |
elog "Note: For cups-1.4.x SLP is the only supported method as mDNS (zeroconf) is not" |
299 |
elog "available here." |
300 |
|
301 |
} |
302 |
|
303 |
pkg_postrm() { |
304 |
use !minimal && python_mod_cleanup /usr/share/${PN} |
305 |
fdo-mime_desktop_database_update |
306 |
} |