1 |
calchan 07/11/19 16:39:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hplip-2.7.10.ebuild |
5 |
Log: |
6 |
Version bump, bug #196795. Replaced udev rules, bug #197726. |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.87 net-print/hplip/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.87&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.87&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.86&r2=1.87 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v |
19 |
retrieving revision 1.86 |
20 |
retrieving revision 1.87 |
21 |
diff -u -r1.86 -r1.87 |
22 |
--- ChangeLog 18 Nov 2007 16:05:18 -0000 1.86 |
23 |
+++ ChangeLog 19 Nov 2007 16:39:16 -0000 1.87 |
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.86 2007/11/18 16:05:18 calchan Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.87 2007/11/19 16:39:16 calchan Exp $ |
29 |
+ |
30 |
+*hplip-2.7.10 (19 Nov 2007) |
31 |
+ |
32 |
+ 19 Nov 2007; Denis Dupeyron <calchan@g.o> +files/70-hpmud.rules, |
33 |
+ +hplip-2.7.10.ebuild: |
34 |
+ Version bump, bug #196795. Replaced udev rules, bug #197726. |
35 |
|
36 |
18 Nov 2007; Denis Dupeyron <calchan@g.o> hplip-2.7.9-r1.ebuild: |
37 |
Fixed bug #193671 again. |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-print/hplip/hplip-2.7.10.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.7.10.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.7.10.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: hplip-2.7.10.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.10.ebuild,v 1.1 2007/11/19 16:39:16 calchan Exp $ |
51 |
|
52 |
inherit eutils 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? ( |
69 |
>=net-print/cups-1.2 |
70 |
dev-libs/libusb |
71 |
scanner? ( >=media-gfx/sane-backends-1.0.9 ) |
72 |
snmp? ( |
73 |
net-analyzer/net-snmp |
74 |
dev-libs/openssl |
75 |
) |
76 |
)" |
77 |
|
78 |
RDEPEND="${DEPEND} |
79 |
!minimal? ( |
80 |
!<sys-fs/udev-114 |
81 |
fax? ( dev-python/reportlab ) |
82 |
scanner? ( |
83 |
dev-python/imaging |
84 |
X? ( >=media-gfx/xsane-0.89 ) |
85 |
!X? ( >=media-gfx/sane-frontends-1.0.9 ) |
86 |
) |
87 |
X? ( >=dev-python/PyQt-3.14 ) |
88 |
)" |
89 |
|
90 |
CONFIG_CHECK="PARPORT" |
91 |
ERROR_PARPORT="Please make sure Device Drivers -> Parallel port support is enabled in your kernel" |
92 |
|
93 |
pkg_setup() { |
94 |
if ! use ppds ; then |
95 |
ewarn "Not installing built-in PPD files, which is probably not what you want." |
96 |
ewarn "You need USE=ppds if you want to install them." |
97 |
fi |
98 |
if use minimal ; then |
99 |
ewarn "Installing hpijs driver only, make sure you know what you are doing." |
100 |
else |
101 |
use parport && linux-info_pkg_setup |
102 |
fi |
103 |
|
104 |
# avoid collisions with cups-1.2 compat symlinks |
105 |
if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then |
106 |
rm -f "${ROOT}"/usr/libexec/cups/backend/hp{,fax}; |
107 |
fi |
108 |
} |
109 |
|
110 |
src_unpack() { |
111 |
unpack ${A} |
112 |
cd "${S}" |
113 |
|
114 |
sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed" |
115 |
sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \ |
116 |
-e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \ |
117 |
base/utils.py || die "Patching base/utils.py failed" |
118 |
|
119 |
# bug 98428 |
120 |
sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed" |
121 |
|
122 |
# Force recognition of Gentoo distro by hp-check |
123 |
sed -i \ |
124 |
-e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
125 |
installer/core_install.py || die "sed core_install.py" |
126 |
|
127 |
# Replace udev rules, see bug #197726. |
128 |
rm data/rules/55-hpmud.rules |
129 |
cp "${FILESDIR}"/70-hpmud.rules data/rules |
130 |
sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html */*/*.html |
131 |
} |
132 |
|
133 |
src_compile() { |
134 |
econf \ |
135 |
--disable-cups11-build \ |
136 |
--with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
137 |
$(use_enable minimal hpijs-only-build) \ |
138 |
$(use_enable doc doc-build) \ |
139 |
$(use_enable snmp network-build) \ |
140 |
$(use_enable parport pp-build) \ |
141 |
$(use_enable scanner scan-build) \ |
142 |
$(use_enable X gui-build) \ |
143 |
$(use_enable fax fax-build) \ |
144 |
$(use_enable ppds foomatic-ppd-install) \ |
145 |
--disable-foomatic-xml-install \ |
146 |
|| die "econf failed" |
147 |
emake || die "Compilation failed" |
148 |
} |
149 |
|
150 |
src_install() { |
151 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
152 |
|
153 |
# bug 106035 |
154 |
use X || rm -Rf "${D}"/usr/share/applications |
155 |
|
156 |
use minimal && rm -rf "${D}"/usr/lib |
157 |
} |
158 |
|
159 |
pkg_preinst() { |
160 |
if ! use minimal && use scanner ; then |
161 |
insinto /etc/sane.d |
162 |
[ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf . |
163 |
[ -e "${ROOT}"/etc/sane.d/dll.conf ] && cp "${ROOT}"/etc/sane.d/dll.conf . |
164 |
grep -q hpaio dll.conf || echo hpaio >> "${T}"/dll.conf |
165 |
doins "${T}"/dll.conf |
166 |
fi |
167 |
} |
168 |
|
169 |
pkg_postinst() { |
170 |
elog "You should run hp-setup as root if you are installing hplip for the first time, and may also" |
171 |
elog "need to run it if you are upgrading from an earlier version." |
172 |
elog |
173 |
elog "If your device is connected using USB, users will need to be in the lp group to access it." |
174 |
elog |
175 |
elog "This release doesn't use an init script anymore, so you should probably do a" |
176 |
elog "'rc-update del hplip' if you are updating from an old version." |
177 |
} |
178 |
|
179 |
|
180 |
|
181 |
-- |
182 |
gentoo-commits@g.o mailing list |