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