1 |
calchan 07/09/30 14:14:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hplip-2.7.9.ebuild |
5 |
Log: |
6 |
Version bump. Reworked minimal installation to fix bug #193671, thanks to Jakub Moc for his suggestions and Dan Ost for reporting and testing. |
7 |
(Portage version: 2.1.3.11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.77 net-print/hplip/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.77&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.77&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.76&r2=1.77 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v |
19 |
retrieving revision 1.76 |
20 |
retrieving revision 1.77 |
21 |
diff -u -r1.76 -r1.77 |
22 |
--- ChangeLog 29 Sep 2007 20:31:08 -0000 1.76 |
23 |
+++ ChangeLog 30 Sep 2007 14:14:13 -0000 1.77 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-print/hplip |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.76 2007/09/29 20:31:08 calchan Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.77 2007/09/30 14:14:13 calchan Exp $ |
29 |
+ |
30 |
+*hplip-2.7.9 (30 Sep 2007) |
31 |
+ |
32 |
+ 30 Sep 2007; Denis Dupeyron <calchan@g.o> +hplip-2.7.9.ebuild: |
33 |
+ Version bump. Reworked minimal installation to fix bug #193671, thanks to |
34 |
+ Jakub Moc for his suggestions and Dan Ost for reporting and testing. |
35 |
|
36 |
*hplip-2.7.7-r3 (29 Sep 2007) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-print/hplip/hplip-2.7.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.7.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.7.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: hplip-2.7.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.7.9.ebuild,v 1.1 2007/09/30 14:14:13 calchan Exp $ |
51 |
|
52 |
inherit linux-info |
53 |
|
54 |
DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." |
55 |
HOMEPAGE="http://hplip.sourceforge.net/" |
56 |
SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
SLOT="0" |
60 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
61 |
IUSE="X doc fax minimal parport ppds scanner snmp" |
62 |
|
63 |
DEPEND="!net-print/hpijs |
64 |
!net-print/hpoj |
65 |
virtual/ghostscript |
66 |
>=media-libs/jpeg-6b |
67 |
net-print/foomatic-filters |
68 |
!minimal? ( dev-libs/openssl |
69 |
>=net-print/cups-1.2 |
70 |
dev-libs/libusb |
71 |
snmp? ( net-analyzer/net-snmp ) )" |
72 |
|
73 |
RDEPEND="${DEPEND} |
74 |
!minimal? ( !<sys-fs/udev-114 |
75 |
fax? ( dev-python/reportlab ) |
76 |
scanner? ( X? ( >=media-gfx/xsane-0.89 ) |
77 |
!X? ( >=media-gfx/sane-frontends-1.0.9 ) ) |
78 |
X? ( >=dev-python/PyQt-3.14 ) )" |
79 |
|
80 |
CONFIG_CHECK="PARPORT" |
81 |
ERROR_PARPORT="Please make sure Device Drivers -> Parallel port support is enabled in your kernel" |
82 |
|
83 |
pkg_setup() { |
84 |
if ! use ppds ; then |
85 |
ewarn "Not installing built-in PPD files, which is probably not what you want." |
86 |
ewarn "You need USE=ppds if you want to install them." |
87 |
fi |
88 |
if use minimal ; then |
89 |
ewarn "Installing hpijs driver only, make sure you know what you are doing." |
90 |
else |
91 |
use parport && linux-info_pkg_setup |
92 |
fi |
93 |
|
94 |
# avoid collisions with cups-1.2 compat symlinks |
95 |
if [ -e ${ROOT}/usr/lib/cups/backend/hp ] && [ -e ${ROOT}/usr/libexec/cups/backend/hp ]; then |
96 |
rm -f ${ROOT}/usr/libexec/cups/backend/hp{,fax}; |
97 |
fi |
98 |
} |
99 |
|
100 |
src_unpack() { |
101 |
unpack ${A} |
102 |
cd "${S}" |
103 |
|
104 |
sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed" |
105 |
sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ |
106 |
-e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ |
107 |
base/utils.py || die "Patching base/utils.py failed" |
108 |
|
109 |
# bug 98428 |
110 |
sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed" |
111 |
|
112 |
# Force recognition of Gentoo distro by hp-check |
113 |
sed -i \ |
114 |
-e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
115 |
installer/core_install.py || die "sed core_install.py" |
116 |
|
117 |
# bug 186906, makes udev-rules work also for kernel-2.6.22 |
118 |
sed -i -e "s/usb_device/usb|usb_device/" -e "s/SYSFS/ATTRS/g" \ |
119 |
data/rules/55-hpmud.rules || die "Patching 55-hpmud.rules failed" |
120 |
} |
121 |
|
122 |
src_compile() { |
123 |
econf \ |
124 |
--disable-cups11-build \ |
125 |
--with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
126 |
$(use_enable minimal hpijs-only-build) \ |
127 |
$(use_enable doc doc-build) \ |
128 |
$(use_enable snmp network-build) \ |
129 |
$(use_enable parport pp-build) \ |
130 |
$(use_enable scanner scan-build) \ |
131 |
$(use_enable X gui-build) \ |
132 |
$(use_enable fax fax-build) \ |
133 |
$(use_enable ppds foomatic-ppd-install) \ |
134 |
--disable-foomatic-xml-install \ |
135 |
|| die "econf failed" |
136 |
emake || die "Compilation failed" |
137 |
} |
138 |
|
139 |
src_install() { |
140 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
141 |
|
142 |
# bug 106035 |
143 |
use X || rm -Rf "${D}"/usr/share/applications |
144 |
|
145 |
use minimal && rm -rf "${D}"/usr/lib |
146 |
} |
147 |
|
148 |
pkg_preinst() { |
149 |
if ! use minimal && use scanner ; then |
150 |
insinto /etc/sane.d |
151 |
[ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf . |
152 |
[ -e ${ROOT}/etc/sane.d/dll.conf ] && cp ${ROOT}/etc/sane.d/dll.conf . |
153 |
grep -q hpaio dll.conf || echo hpaio >> dll.conf |
154 |
doins dll.conf |
155 |
fi |
156 |
} |
157 |
|
158 |
pkg_postinst() { |
159 |
elog "You should run hp-setup as root if you are installing hplip for the first time, and may also" |
160 |
elog "need to run it if you are upgrading from an earlier version." |
161 |
elog |
162 |
elog "This release doesn't use an init script anymore, so you should probably do a" |
163 |
elog "'rc-update del hplip' if you are updating." |
164 |
} |
165 |
|
166 |
|
167 |
|
168 |
-- |
169 |
gentoo-commits@g.o mailing list |