Gentoo Archives: gentoo-commits

From: "Daniel Pielmeier (billie)" <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/hplip: ChangeLog hplip-3.15.7.ebuild
Date: Fri, 31 Jul 2015 14:27:55
Message-Id: 20150731142745.BBAE5112@oystercatcher.gentoo.org
1 billie 15/07/31 14:27:45
2
3 Modified: ChangeLog
4 Added: hplip-3.15.7.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 215AD14D)
9
10 Revision Changes Path
11 1.328 net-print/hplip/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.328&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?rev=1.328&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/ChangeLog?r1=1.327&r2=1.328
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v
20 retrieving revision 1.327
21 retrieving revision 1.328
22 diff -u -r1.327 -r1.328
23 --- ChangeLog 14 Jun 2015 08:41:22 -0000 1.327
24 +++ ChangeLog 31 Jul 2015 14:27:45 -0000 1.328
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-print/hplip
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.327 2015/06/14 08:41:22 billie Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.328 2015/07/31 14:27:45 billie Exp $
30 +
31 +*hplip-3.15.7 (31 Jul 2015)
32 +
33 + 31 Jul 2015; Daniel Pielmeier <billie@g.o> +hplip-3.15.7.ebuild:
34 + Version bump.
35
36 *hplip-3.15.6 (14 Jun 2015)
37
38
39
40
41 1.1 net-print/hplip/hplip-3.15.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.15.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/hplip/hplip-3.15.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hplip-3.15.7.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.15.7.ebuild,v 1.1 2015/07/31 14:27:45 billie Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python2_7 )
55 PYTHON_REQ_USE="threads,xml"
56
57 inherit eutils fdo-mime linux-info python-single-r1 udev autotools toolchain-funcs
58
59 DESCRIPTION="HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools"
60 HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
61 SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz
62 http://dev.gentoo.org/~billie/distfiles/${PN}-3.15.6-patches-1.tar.xz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
67
68 IUSE="doc fax +hpcups hpijs kde libnotify -libusb0 minimal parport policykit qt4 scanner snmp static-ppds X"
69
70 COMMON_DEPEND="
71 virtual/jpeg:0
72 hpijs? (
73 || ( >=net-print/cups-filters-1.0.43-r1[foomatic] >=net-print/foomatic-filters-3.0.20080507[cups] )
74 )
75 !minimal? (
76 ${PYTHON_DEPS}
77 >=net-print/cups-1.4.0
78 !libusb0? ( virtual/libusb:1 )
79 libusb0? ( virtual/libusb:0 )
80 scanner? ( >=media-gfx/sane-backends-1.0.19-r1 )
81 fax? ( >=sys-apps/dbus-1.6.8-r1 )
82 snmp? (
83 net-analyzer/net-snmp
84 dev-libs/openssl:0
85 )
86 )"
87
88 DEPEND="${COMMON_DEPEND}
89 virtual/pkgconfig"
90
91 RDEPEND="${COMMON_DEPEND}
92 >=app-text/ghostscript-gpl-8.71-r3
93 policykit? (
94 sys-auth/polkit
95 )
96 !minimal? (
97 >=dev-python/dbus-python-1.1.1-r1[${PYTHON_USEDEP}]
98 >=dev-python/pygobject-2.28.6-r53:2[${PYTHON_USEDEP}]
99 kernel_linux? ( virtual/udev )
100 scanner? (
101 >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
102 >=virtual/python-imaging-1[${PYTHON_USEDEP}]
103 X? ( || (
104 kde? ( kde-misc/skanlite )
105 media-gfx/xsane
106 media-gfx/sane-frontends
107 ) )
108 )
109 fax? (
110 >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
111 )
112 qt4? (
113 >=dev-python/PyQt4-4.9.6-r2[dbus,X,${PYTHON_USEDEP}]
114 libnotify? (
115 >=dev-python/notify-python-0.1.1-r3[${PYTHON_USEDEP}]
116 )
117 )
118 )"
119
120 REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )"
121
122 CONFIG_CHECK="~PARPORT ~PPDEV"
123 ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)."
124
125 pkg_setup() {
126 use !minimal && python-single-r1_pkg_setup
127
128 ! use qt4 && ewarn "You need USE=qt4 for the hplip GUI."
129
130 use scanner && ! use X && ewarn "You need USE=X for the scanner GUI."
131
132 if ! use hpcups && ! use hpijs ; then
133 ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver,"
134 ewarn "which is probably not what you want."
135 ewarn "You will almost certainly not be able to print."
136 fi
137
138 if use minimal ; then
139 ewarn "Installing driver portions only, make sure you know what you are doing."
140 ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver"
141 ewarn "is installed. If both USE flags are set hpijs overrides hpcups."
142 else
143 use parport && linux-info_pkg_setup
144 fi
145 }
146
147 src_prepare() {
148 if use !minimal ; then
149 python_export EPYTHON PYTHON
150 python_fix_shebang .
151 fi
152
153 EPATCH_SUFFIX="patch" \
154 EPATCH_FORCE="yes" \
155 epatch "${WORKDIR}"
156
157 # Make desktop files follow the specification
158 # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680
159 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324
160 sed -i -e '/^Categories=/s/Application;//' \
161 -e '/^Encoding=.*/d' hplip.desktop.in || die
162 sed -i -e '/^Categories=/s/Application;//' \
163 -e '/^Version=.*/d' \
164 -e '/^Comment=.*/d' hplip-systray.desktop.in || die
165
166 # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725
167 # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847,
168 # https://bugs.launchpad.net/hplip/+bug/500086
169 local udevdir=$(get_udevdir)
170 sed -i -e "s|/etc/udev|${udevdir}|g" \
171 $(find . -type f -exec grep -l /etc/udev {} +) || die
172
173 # Force recognition of Gentoo distro by hp-check
174 sed -i \
175 -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
176 installer/core_install.py || die
177
178 # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
179 # The hpcups driver does not use foomatic-rip
180 local i
181 for i in ppd/hpijs/*.ppd.gz ; do
182 rm -f ${i}.temp || die
183 gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
184 gzip > ${i}.temp || die
185 mv ${i}.temp ${i} || die
186 done
187
188 eautoreconf
189 }
190
191 src_configure() {
192 local myconf drv_build minimal_build
193
194 if use fax || use qt4 ; then
195 myconf="${myconf} --enable-dbus-build"
196 else
197 myconf="${myconf} --disable-dbus-build"
198 fi
199
200 if use libusb0 ; then
201 myconf="${myconf} --enable-libusb01_build"
202 else
203 myconf="${myconf} --disable-libusb01_build"
204 fi
205
206 if use hpcups ; then
207 drv_build="$(use_enable hpcups hpcups-install)"
208 if use static-ppds ; then
209 drv_build="${drv_build} --enable-cups-ppd-install"
210 drv_build="${drv_build} --disable-cups-drv-install"
211 else
212 drv_build="${drv_build} --enable-cups-drv-install"
213 drv_build="${drv_build} --disable-cups-ppd-install"
214 fi
215 else
216 drv_build="--disable-hpcups-install"
217 drv_build="${drv_build} --disable-cups-drv-install"
218 drv_build="${drv_build} --disable-cups-ppd-install"
219 fi
220
221 if use hpijs ; then
222 drv_build="${drv_build} $(use_enable hpijs hpijs-install)"
223 if use static-ppds ; then
224 drv_build="${drv_build} --enable-foomatic-ppd-install"
225 drv_build="${drv_build} --disable-foomatic-drv-install"
226 else
227 drv_build="${drv_build} --enable-foomatic-drv-install"
228 drv_build="${drv_build} --disable-foomatic-ppd-install"
229 fi
230 else
231 drv_build="${drv_build} --disable-hpijs-install"
232 drv_build="${drv_build} --disable-foomatic-drv-install"
233 drv_build="${drv_build} --disable-foomatic-ppd-install"
234 fi
235
236 if use minimal ; then
237 if use hpijs ; then
238 minimal_build="--enable-hpijs-only-build"
239 else
240 minimal_build="--disable-hpijs-only-build"
241 fi
242 if use hpcups ; then
243 minimal_build="${minimal_build} --enable-hpcups-only-build"
244 else
245 minimal_build="${minimal_build} --disable-hpcups-only-build"
246 fi
247 fi
248
249 econf \
250 --disable-cups11-build \
251 --disable-lite-build \
252 --disable-foomatic-rip-hplip-install \
253 --disable-shadow-build \
254 --disable-qt3 \
255 --disable-udev_sysfs_rules \
256 --with-cupsbackenddir=$(cups-config --serverbin)/backend \
257 --with-cupsfilterdir=$(cups-config --serverbin)/filter \
258 --with-docdir=/usr/share/doc/${PF} \
259 --with-htmldir=/usr/share/doc/${PF}/html \
260 ${myconf} \
261 ${drv_build} \
262 ${minimal_build} \
263 $(use_enable doc doc-build) \
264 $(use_enable fax fax-build) \
265 $(use_enable parport pp-build) \
266 $(use_enable scanner scan-build) \
267 $(use_enable snmp network-build) \
268 $(use_enable qt4 gui-build) \
269 $(use_enable qt4) \
270 $(use_enable policykit)
271 }
272
273 src_install() {
274 default
275
276 # Installed by sane-backends
277 # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023
278 rm -f "${D}"/etc/sane.d/dll.conf || die
279
280 rm -f "${D}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die
281 rmdir --ignore-fail-on-non-empty "${D}"/usr/share/doc/${PF}/ || die
282
283 # Remove hal fdi files
284 rm -rf "${D}"/usr/share/hal || die
285
286 prune_libtool_files --all
287
288 if use !minimal ; then
289 python_export EPYTHON PYTHON
290 python_optimize "${D}"/usr/share/hplip
291 fi
292 }
293
294 pkg_postinst() {
295 if [[ -z "${REPLACING_VERSIONS}" ]]; then
296 elog "For more information on setting up your printer please take"
297 elog "a look at the hplip section of the gentoo printing guide:"
298 elog "https://wiki.gentoo.org/wiki/Printing"
299 elog
300 elog "Any user who wants to print must be in the lp group."
301 elog
302 elog "Please note: Printers requiring a binary plugin are currently"
303 elog "not supported. All bugs regarding the plugin are most likely"
304 elog "closed. A bug about including the plugin package to gentoo is"
305 elog "available here: https://bugs.gentoo.org/352439"
306 fi
307 }