1 |
tommy 09/03/29 14:12:11 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: hplip-3.9.2.ebuild |
5 |
Log: |
6 |
Version bump for bug 245136, thanks to Yar Odin and Daniel Pielmeier and fix bug 242498 thanks Daniel Santos for reporting |
7 |
(Portage version: 2.2_rc28/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.5 net-print/hplip/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/metadata.xml?rev=1.5&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/metadata.xml?rev=1.5&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/metadata.xml?r1=1.4&r2=1.5 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/metadata.xml,v |
19 |
retrieving revision 1.4 |
20 |
retrieving revision 1.5 |
21 |
diff -u -r1.4 -r1.5 |
22 |
--- metadata.xml 18 Aug 2008 14:54:59 -0000 1.4 |
23 |
+++ metadata.xml 29 Mar 2009 14:12:10 -0000 1.5 |
24 |
@@ -25,7 +25,7 @@ |
25 |
<flag name='ppds'>Use precompiled PPD files (obsolete, use cupsddk |
26 |
instead)</flag> |
27 |
<flag name='qt3'>Enable graphical interface using Qt 3 (recommended); when |
28 |
- both qt3 and qt4 USE flags are enabled then qt3 is prioritary over |
29 |
+ both qt3 and qt4 USE flags are enabled then qt3 has priority over |
30 |
qt4</flag> |
31 |
<flag name='qt4'>Enable graphical interface using Qt 4 (experimental); when |
32 |
both qt3 and qt4 USE flags are enabled then qt3 is prioritary over |
33 |
|
34 |
|
35 |
|
36 |
1.113 net-print/hplip/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.113&view=markup |
39 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.113&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.112&r2=1.113 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v |
45 |
retrieving revision 1.112 |
46 |
retrieving revision 1.113 |
47 |
diff -u -r1.112 -r1.113 |
48 |
--- ChangeLog 14 Mar 2009 19:04:39 -0000 1.112 |
49 |
+++ ChangeLog 29 Mar 2009 14:12:11 -0000 1.113 |
50 |
@@ -1,6 +1,14 @@ |
51 |
# ChangeLog for net-print/hplip |
52 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.112 2009/03/14 19:04:39 armin76 Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.113 2009/03/29 14:12:11 tommy Exp $ |
55 |
+ |
56 |
+*hplip-3.9.2 (29 Mar 2009) |
57 |
+ |
58 |
+ 29 Mar 2009; Thomas Sachau (Tommy[D]) <tommy@g.o> |
59 |
+ +files/hplip-3.9.2-high_cpu_utilization_logout.patch, metadata.xml, |
60 |
+ +hplip-3.9.2.ebuild: |
61 |
+ Version bump for bug 245136, thanks to Yar Odin and Daniel Pielmeier and |
62 |
+ fix bug 242498 thanks Daniel Santos for reporting |
63 |
|
64 |
14 Mar 2009; Raúl Porcel <armin76@g.o> hplip-2.8.7.ebuild: |
65 |
Add ~arm wrt #261391 |
66 |
|
67 |
|
68 |
|
69 |
1.1 net-print/hplip/hplip-3.9.2.ebuild |
70 |
|
71 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.9.2.ebuild?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-3.9.2.ebuild?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: hplip-3.9.2.ebuild |
75 |
=================================================================== |
76 |
# Copyright 1999-2009 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.9.2.ebuild,v 1.1 2009/03/29 14:12:11 tommy Exp $ |
79 |
|
80 |
EAPI="2" |
81 |
|
82 |
inherit eutils fdo-mime linux-info python |
83 |
|
84 |
DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." |
85 |
HOMEPAGE="http://hplip.sourceforge.net/" |
86 |
SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" |
87 |
|
88 |
LICENSE="GPL-2" |
89 |
SLOT="0" |
90 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
91 |
|
92 |
IUSE="cupsddk dbus doc fax gtk minimal parport ppds qt3 qt4 scanner snmp" |
93 |
|
94 |
DEPEND="!net-print/hpijs |
95 |
!net-print/hpoj |
96 |
virtual/ghostscript |
97 |
media-libs/jpeg |
98 |
>=net-print/foomatic-filters-3.0.20080507[cups] |
99 |
!minimal? ( |
100 |
net-print/cups |
101 |
dev-libs/libusb |
102 |
cupsddk? ( net-print/cupsddk ) |
103 |
dbus? ( sys-apps/dbus ) |
104 |
scanner? ( >=media-gfx/sane-backends-1.0.19-r1 ) |
105 |
snmp? ( |
106 |
net-analyzer/net-snmp |
107 |
dev-libs/openssl |
108 |
) |
109 |
)" |
110 |
|
111 |
RDEPEND="${DEPEND} |
112 |
!minimal? ( |
113 |
!<sys-fs/udev-114 |
114 |
scanner? ( |
115 |
dev-python/imaging |
116 |
gtk? ( media-gfx/xsane ) |
117 |
!gtk? ( media-gfx/sane-frontends ) |
118 |
) |
119 |
qt4? ( !qt3? ( |
120 |
dev-python/PyQt4 |
121 |
dbus? ( dev-python/dbus-python ) |
122 |
fax? ( dev-python/reportlab ) |
123 |
) ) |
124 |
qt3? ( |
125 |
dev-python/PyQt |
126 |
dbus? ( dev-python/dbus-python ) |
127 |
fax? ( dev-python/reportlab ) |
128 |
) |
129 |
)" |
130 |
|
131 |
CONFIG_CHECK="PARPORT PPDEV" |
132 |
ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)." |
133 |
|
134 |
pkg_setup() { |
135 |
! use qt3 && ! use qt4 && ewarn "You need USE=qt3 (recommended) or USE=qt4 for the hplip GUI." |
136 |
|
137 |
use scanner && ! use gtk && ewarn "You need USE=gtk for the scanner GUI." |
138 |
|
139 |
if ! use ppds && ! use cupsddk; then |
140 |
ewarn "Installing neither static (USE=-ppds) nor dynamic (USE=-cupsddk) PPD files," |
141 |
ewarn "which is probably not what you want. You will almost certainly not be able to " |
142 |
ewarn "print (recommended: USE=\"cupsddk -ppds\")." |
143 |
fi |
144 |
|
145 |
if use minimal ; then |
146 |
ewarn "Installing hpijs driver only, make sure you know what you are doing." |
147 |
else |
148 |
use parport && linux-info_pkg_setup |
149 |
fi |
150 |
} |
151 |
|
152 |
src_prepare() { |
153 |
epatch "${FILESDIR}"/${P}-high_cpu_utilization_logout.patch |
154 |
sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed" |
155 |
sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ |
156 |
-e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ |
157 |
base/utils.py || die "Patching base/utils.py failed" |
158 |
|
159 |
# bug 98428 |
160 |
sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed" |
161 |
|
162 |
# Force recognition of Gentoo distro by hp-check |
163 |
sed -i \ |
164 |
-e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
165 |
installer/core_install.py || die "sed core_install.py" |
166 |
|
167 |
# Replace udev rules, see bug #197726. |
168 |
rm data/rules/55-hpmud.rules |
169 |
cp "${FILESDIR}"/70-hpmud.rules data/rules |
170 |
sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html || die "sed failed" |
171 |
|
172 |
sed -i \ |
173 |
-e s:/usr/lib/cups/driver:$(cups-config --serverbin)/driver:g \ |
174 |
installer/core_install.py || die "sed core_install.py" |
175 |
|
176 |
# Use system foomatic-rip instead of foomatic-rip-hplip |
177 |
local i |
178 |
for i in ppd/*.ppd.gz |
179 |
do |
180 |
rm -f ${i}.temp |
181 |
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | gzip > ${i}.temp || die "*.ppd.gz sed failed" |
182 |
mv ${i}.temp ${i} |
183 |
done |
184 |
|
185 |
# Qt4 is still undocumented by upstream, so use with caution |
186 |
local qt_ver |
187 |
use qt3 && qt_ver="3" |
188 |
use qt4 && qt_ver="4" |
189 |
if use qt3 || use qt4 ; then |
190 |
sed -i \ |
191 |
-e "s/%s --force-startup/%s --force-startup --qt${qt_ver}/" \ |
192 |
-e "s/'--force-startup'/'--force-startup', '--qt${qt_ver}'/" \ |
193 |
base/device.py || die "sed failed" |
194 |
sed -i \ |
195 |
-e "s/Exec=hp-systray/Exec=hp-systray --qt${qt_ver}/" \ |
196 |
hplip-systray.desktop.in || die "sed failed" |
197 |
fi |
198 |
} |
199 |
|
200 |
src_configure() { |
201 |
if use qt3 || use qt4 ; then |
202 |
local gui_build="--enable-gui-build" |
203 |
else |
204 |
local gui_build="--disable-gui-build" |
205 |
fi |
206 |
use qt4 && gui_build="${gui_build} --enable-qt4 --disable-qt3" |
207 |
|
208 |
econf \ |
209 |
--disable-dependency-tracking \ |
210 |
--disable-cups11-build \ |
211 |
--with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
212 |
--with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
213 |
--disable-foomatic-rip-hplip-install \ |
214 |
${gui_build} \ |
215 |
$(use_enable doc doc-build) \ |
216 |
$(use_enable cupsddk foomatic-drv-install) \ |
217 |
$(use_enable dbus dbus-build) \ |
218 |
$(use_enable fax fax-build) \ |
219 |
$(use_enable minimal hpijs-only-build) \ |
220 |
$(use_enable parport pp-build) \ |
221 |
$(use_enable ppds foomatic-ppd-install) \ |
222 |
$(use_enable scanner scan-build) \ |
223 |
$(use_enable snmp network-build) |
224 |
} |
225 |
|
226 |
src_install() { |
227 |
emake DESTDIR="${D}" install || die "emake install failed" |
228 |
rm -f "${D}"/etc/sane.d/dll.conf |
229 |
|
230 |
use minimal && rm -rf "${D}"/usr/lib |
231 |
|
232 |
# bug 106035/259763 |
233 |
if ! use qt3 && ! use qt4; then |
234 |
rm -Rf "${D}"/usr/share/applications "${D}"/etc/xdg |
235 |
fi |
236 |
|
237 |
# kde3 autostart hack |
238 |
if [[ -d /usr/kde/3.5/share/autostart ]] && use !minimal ; then |
239 |
insinto /usr/kde/3.5/share/autostart |
240 |
doins hplip-systray.desktop |
241 |
fi |
242 |
|
243 |
# Do not install unzipped ppd files |
244 |
rm -f "${D}"/usr/share/ppd/HP/*.ppd |
245 |
} |
246 |
|
247 |
pkg_preinst() { |
248 |
# avoid collisions with cups-1.2 compat symlinks |
249 |
if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then |
250 |
rm -f "${ROOT}"/usr/libexec/cups/backend/hp{,fax}; |
251 |
fi |
252 |
} |
253 |
|
254 |
pkg_postinst() { |
255 |
python_mod_optimize /usr/share/${PN} |
256 |
fdo-mime_desktop_database_update |
257 |
|
258 |
elog "You should run hp-setup as root if you are installing hplip for the first time, and may also" |
259 |
elog "need to run it if you are upgrading from an earlier version." |
260 |
elog |
261 |
elog "If your device is connected using USB, users will need to be in the lp group to access it." |
262 |
elog |
263 |
elog "This release doesn't use an init script anymore, so you should probably do a" |
264 |
elog "'rc-update del hplip' if you are updating from an old version." |
265 |
} |
266 |
|
267 |
pkg_postrm() { |
268 |
python_mod_cleanup /usr/share/${PN} |
269 |
fdo-mime_desktop_database_update |
270 |
} |