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