Gentoo Archives: gentoo-commits

From: "Denis Dupeyron (calchan)" <calchan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/hplip: ChangeLog hplip-2.7.7-r3.ebuild hplip-2.7.7-r2.ebuild
Date: Sat, 29 Sep 2007 20:39:56
Message-Id: E1Ibixx-0004wm-9X@stork.gentoo.org
1 calchan 07/09/29 20:31:09
2
3 Modified: ChangeLog
4 Added: hplip-2.7.7-r3.ebuild
5 Removed: hplip-2.7.7-r2.ebuild
6 Log:
7 Fixed bug #194052, thanks to Dmitri Pogosian. Removed fix for bug #161926 which isn't necessary anymore.
8 (Portage version: 2.1.3.11)
9
10 Revision Changes Path
11 1.76 net-print/hplip/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.76&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.76&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.75&r2=1.76
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v
20 retrieving revision 1.75
21 retrieving revision 1.76
22 diff -u -r1.75 -r1.76
23 --- ChangeLog 20 Sep 2007 08:25:31 -0000 1.75
24 +++ ChangeLog 29 Sep 2007 20:31:08 -0000 1.76
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-print/hplip
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.75 2007/09/20 08:25:31 calchan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.76 2007/09/29 20:31:08 calchan Exp $
30 +
31 +*hplip-2.7.7-r3 (29 Sep 2007)
32 +
33 + 29 Sep 2007; Denis Dupeyron <calchan@g.o> -hplip-2.7.7-r2.ebuild,
34 + +hplip-2.7.7-r3.ebuild:
35 + Fixed bug #194052, thanks to Dmitri Pogosian. Removed fix for bug #161926
36 + which isn't necessary anymore.
37
38 20 Sep 2007; Denis Dupeyron <calchan@g.o> -hplip-2.7.6.ebuild,
39 -hplip-2.7.7.ebuild:
40
41
42
43 1.1 net-print/hplip/hplip-2.7.7-r3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.7.7-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.7.7-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: hplip-2.7.7-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.7.7-r3.ebuild,v 1.1 2007/09/29 20:31:08 calchan Exp $
53
54 inherit eutils linux-info
55
56 DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools."
57 HOMEPAGE="http://hplip.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
63 IUSE="X doc fax minimal parport ppds scanner snmp"
64
65 DEPEND="!net-print/hpijs
66 !net-print/hpoj
67 dev-libs/openssl
68 virtual/ghostscript
69 >=media-libs/jpeg-6b
70 >=net-print/cups-1.2
71 dev-libs/libusb
72 >=dev-lang/python-2.2
73 net-print/foomatic-filters
74 fax? ( >=dev-lang/python-2.3 )
75 snmp? ( net-analyzer/net-snmp )"
76
77 RDEPEND="${DEPEND}
78 !<sys-fs/udev-114
79 fax? ( dev-python/reportlab )
80 X? ( >=dev-python/PyQt-3.14 )
81 scanner? (
82 X? ( >=media-gfx/xsane-0.89 )
83 !X? ( >=media-gfx/sane-frontends-1.0.9 )
84 )"
85
86 CONFIG_CHECK="PARPORT"
87 ERROR_PARPORT="Please make sure Device Drivers -> Parallel port support is enabled in your kernel"
88
89 pkg_setup() {
90 use parport && linux-info_pkg_setup
91
92 # avoid collisions with cups-1.2 compat symlinks
93 if [ -e ${ROOT}/usr/lib/cups/backend/hp ] && [ -e ${ROOT}/usr/libexec/cups/backend/hp ]; then
94 rm -f ${ROOT}/usr/libexec/cups/backend/hp{,fax};
95 fi
96
97 use ppds || ewarn "Not installing built-in PPD files. You need USE=ppds if you want to install them."
98 use minimal && ewarn "Installing hpijs driver only, make sure you know what you are doing."
99 }
100
101 src_unpack() {
102 unpack ${A}
103 cd "${S}"
104
105 sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed"
106 sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \
107 -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \
108 base/utils.py || die "Patching base/utils.py failed"
109
110 # bug 98428
111 sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed"
112
113 # Force recognition of Gentoo distro by hp-check
114 sed -i \
115 -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
116 installer/core_install.py || die "sed core_install.py"
117
118 # bug 186906, makes udev-rules work also for kernel-2.6.22
119 epatch "${FILESDIR}/${P}-udev-kernel.2.6.22.diff"
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
146 pkg_preinst() {
147 if use scanner; then
148 insinto /etc/sane.d
149 [ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf .
150 [ -e ${ROOT}/etc/sane.d/dll.conf ] && cp ${ROOT}/etc/sane.d/dll.conf .
151 grep -q hpaio dll.conf || echo hpaio >> dll.conf
152 doins dll.conf
153 fi
154 }
155
156 pkg_postinst() {
157 elog "You should run hp-setup as root if you are installing hplip for the first time, and may also"
158 elog "need to run it if you are upgrading from an earlier version."
159 elog
160 elog "If your device is connected using USB, users will need to be in the lp group to access it."
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