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.8.2.ebuild
Date: Fri, 04 Apr 2008 14:35:26
Message-Id: E1Jhn0k-0006MZ-KO@stork.gentoo.org
1 calchan 08/04/04 14:35:22
2
3 Modified: ChangeLog
4 Added: hplip-2.8.2.ebuild
5 Log:
6 Version bump, bug #209641.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.97 net-print/hplip/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.97&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?rev=1.97&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/ChangeLog?r1=1.96&r2=1.97
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v
19 retrieving revision 1.96
20 retrieving revision 1.97
21 diff -u -r1.96 -r1.97
22 --- ChangeLog 24 Mar 2008 19:38:18 -0000 1.96
23 +++ ChangeLog 4 Apr 2008 14:35:21 -0000 1.97
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-print/hplip
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.96 2008/03/24 19:38:18 calchan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.97 2008/04/04 14:35:21 calchan Exp $
29 +
30 +*hplip-2.8.2 (04 Apr 2008)
31 +
32 + 04 Apr 2008; Denis Dupeyron <calchan@g.o> +hplip-2.8.2.ebuild:
33 + Version bump, bug #209641.
34
35 24 Mar 2008; Denis Dupeyron <calchan@g.o> hplip-2.7.10.ebuild,
36 hplip-2.7.12.ebuild, hplip-2.7.12-r1.ebuild:
37
38
39
40 1.1 net-print/hplip/hplip-2.8.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.8.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/hplip-2.8.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: hplip-2.8.2.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.8.2.ebuild,v 1.1 2008/04/04 14:35:21 calchan Exp $
50
51 inherit eutils linux-info
52
53 DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools."
54 HOMEPAGE="http://hplip.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
60
61 # Some stuff commented out because I wasn't able to make dynamic PPD install work properly. If you can or
62 # simply want to help with this feel free to contact me (calchan@g.o).
63
64 IUSE="X doc fax minimal parport ppds scanner snmp"
65 #IUSE="X cupsddk doc fax minimal parport ppds scanner snmp"
66
67 DEPEND="!net-print/hpijs
68 !net-print/hpoj
69 virtual/ghostscript
70 >=media-libs/jpeg-6b
71 net-print/foomatic-filters
72 !minimal? (
73 >=net-print/cups-1.2
74 dev-libs/libusb
75 scanner? ( >=media-gfx/sane-backends-1.0.19-r1 )
76 snmp? (
77 net-analyzer/net-snmp
78 dev-libs/openssl
79 )
80 )"
81
82 # The code snippet below should go in the '!minimal?' block above
83 # cupsddk? ( net-print/cupsddk )
84
85 RDEPEND="${DEPEND}
86 !minimal? (
87 !<sys-fs/udev-114
88 fax? ( dev-python/reportlab )
89 scanner? (
90 dev-python/imaging
91 X? ( >=media-gfx/xsane-0.89 )
92 !X? ( >=media-gfx/sane-frontends-1.0.9 )
93 )
94 X? ( >=dev-python/PyQt-3.14 )
95 )"
96
97 CONFIG_CHECK="PARPORT PPDEV"
98 ERROR_PARPORT="Please make sure parallel port support is enabled in your kernel (PARPORT and PPDEV)."
99
100 pkg_setup() {
101 if ! use ppds ; then
102 ewarn "Not installing built-in PPD files, which is probably not what you want. Without"
103 ewarn "them you will almost certainly not be able to print."
104 ewarn "You need USE=ppds if you want to install them."
105 epause
106 fi
107 # if ! use ppds && ! use cupsddk; then
108 # ewarn "Installing neither static (USE=-ppds) nor dynamic (USE=-cupsddk) PPD files,"
109 # ewarn "which is probably not what you want (recommended: USE=\"cupsddk -ppds\")."
110 # fi
111 if use minimal ; then
112 ewarn "Installing hpijs driver only, make sure you know what you are doing."
113 else
114 use parport && linux-info_pkg_setup
115 fi
116 }
117
118 src_unpack() {
119 unpack ${A}
120 cd "${S}"
121
122 sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed"
123 sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \
124 -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \
125 base/utils.py || die "Patching base/utils.py failed"
126
127 # bug 98428
128 sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed"
129
130 # Force recognition of Gentoo distro by hp-check
131 sed -i \
132 -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
133 installer/core_install.py || die "sed core_install.py"
134
135 # Replace udev rules, see bug #197726.
136 rm data/rules/55-hpmud.rules
137 cp "${FILESDIR}"/70-hpmud.rules data/rules
138 sed -i -e "s/55-hpmud.rules/70-hpmud.rules/g" Makefile.* */*.html */*/*.html
139 }
140
141 src_compile() {
142 econf \
143 --disable-dependency-tracking \
144 --disable-cups11-build \
145 --with-cupsbackenddir=$(cups-config --serverbin)/backend \
146 --with-cupsfilterdir=$(cups-config --serverbin)/filter \
147 $(use_enable minimal hpijs-only-build) \
148 $(use_enable doc doc-build) \
149 $(use_enable snmp network-build) \
150 $(use_enable parport pp-build) \
151 $(use_enable scanner scan-build) \
152 $(use_enable X gui-build) \
153 $(use_enable fax fax-build) \
154 $(use_enable ppds foomatic-ppd-install) \
155 $(use_enable ppds foomatic-rip-hplip-install) \
156 || die "econf failed"
157 emake || die "Compilation failed"
158 }
159
160 # The code snippet below should go in the 'econf' block above
161 # $(use_enable cupsddk foomatic-drv-install) \
162
163
164 src_install() {
165 emake -j1 DESTDIR="${D}" install || die "emake install failed"
166 rm -f "${D}"/etc/sane.d/dll.conf
167
168 # bug 106035
169 use X || rm -Rf "${D}"/usr/share/applications
170
171 use minimal && rm -rf "${D}"/usr/lib
172 }
173
174 pkg_preinst() {
175 # avoid collisions with cups-1.2 compat symlinks
176 if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then
177 rm -f "${ROOT}"/usr/libexec/cups/backend/hp{,fax};
178 fi
179 }
180
181 pkg_postinst() {
182 elog "You should run hp-setup as root if you are installing hplip for the first time, and may also"
183 elog "need to run it if you are upgrading from an earlier version."
184 elog
185 elog "If your device is connected using USB, users will need to be in the lp group to access it."
186 elog
187 elog "This release doesn't use an init script anymore, so you should probably do a"
188 elog "'rc-update del hplip' if you are updating from an old version."
189 }
190
191
192
193 --
194 gentoo-commits@l.g.o mailing list