Gentoo Archives: gentoo-commits

From: Daniel Pielmeier <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/hplip/
Date: Wed, 11 Mar 2020 19:43:24
Message-Id: 1583955784.c12546d783a3f036f4f7b59d4556798ea052261a.billie@gentoo
1 commit: c12546d783a3f036f4f7b59d4556798ea052261a
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 11 19:43:04 2020 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 11 19:43:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c12546d7
7
8 net-print/hplip: Remove old hplip-3.18.12-r1, hplip-3.19.11.
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
12
13 net-print/hplip/Manifest | 2 -
14 net-print/hplip/hplip-3.18.12-r1.ebuild | 276 --------------------------------
15 net-print/hplip/hplip-3.19.11.ebuild | 276 --------------------------------
16 3 files changed, 554 deletions(-)
17
18 diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest
19 index 9915f52bba2..fef246c0ccc 100644
20 --- a/net-print/hplip/Manifest
21 +++ b/net-print/hplip/Manifest
22 @@ -1,5 +1,3 @@
23 DIST hplip-3.18.12-patches-1.tar.xz 12032 BLAKE2B 33e6e4e1e0e5b4f998459073cf0742b7c56929b23e6c1cc3ba9df4eafb8007273a5a2e7f27af0d2d4a3a97ebb9cfe462b74dcddd7149088980893b2c66113b7c SHA512 3b0e2b4f7d8da257c6fcf12f2e049276d059426f2d1c626324982ce862efa2323cbb191a373c53fea7880e3b6e44ec62e584091676556d97e6a456edea4c44cf
24 -DIST hplip-3.18.12.tar.gz 24588202 BLAKE2B f2ffa6d0d54e467c03ccf9e74accb62ef69842001a00e8c4e6fd68b40c4daff5896fcdd69d37b5e50be2b837918058a5c9071615ab77c1ce83fffc546ff98c02 SHA512 7197cac325cf40c03f49053a98ee0e8ac6c670d142b2a64df09c0f7afa1d7d3602216c55c825ccbf20a1fbda9c9289173b8708e9f87171a862dae5b6b4ef7635
25 -DIST hplip-3.19.11.tar.gz 25632761 BLAKE2B d189fe4d4d25e7abfba216213aa8ba55410840e00731842080cc94d30c86a56a5a10de55964e63a7ed25e5206089a16cbcc85be632ed31d9f80f0a5a1447f3ca SHA512 f419de0e18937c93c2727f4d8b4f7bf1fcc24961a6b7a0d043ce8341c65d0c0332cd354c0cd907b85bc6ccc7735d23ba5f2c918dba5bf965540291cfcbe032d5
26 DIST hplip-3.19.12.tar.gz 25676247 BLAKE2B 1373aa70a2307071c28a22b0ae85e242c3e6bec614ef7490c1ecc0e5e745b81b6c2097948fbd062b5e72e10714cdc8d6f9145aacafc0fedeafde375909cb2cb6 SHA512 5552cd717ae082ee55cdb77d79e8d035d8ecb7cf23c79d659fda43468d8ed414a33c4d869eab4ab83dee836f0d1cceb74c3c4a249e26f904a5ab2350e08a5677
27 DIST hplip-3.20.2.tar.gz 25713273 BLAKE2B b96fc035fd166e5d7eb9af900c08c338bd9c5030c3c6c1bb14e0f193a5414ee26e09318235418d560b37ed827f816676868b58b8806e5894d1842beec0ec31de SHA512 013abeb1453a2b1045618543d2795d0653ac12b1804b99043b3ca04a8f7bc48289be1a0b3d7740064df1286eacfb5b1f504b64b280c169c7d263b7d5e7a213a0
28
29 diff --git a/net-print/hplip/hplip-3.18.12-r1.ebuild b/net-print/hplip/hplip-3.18.12-r1.ebuild
30 deleted file mode 100644
31 index 35552963b9d..00000000000
32 --- a/net-print/hplip/hplip-3.18.12-r1.ebuild
33 +++ /dev/null
34 @@ -1,276 +0,0 @@
35 -# Copyright 1999-2020 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -PYTHON_COMPAT=( python3_6 )
41 -PYTHON_REQ_USE="threads,xml"
42 -
43 -# 14 and 15 spit out a lot of warnings about subdirs
44 -WANT_AUTOMAKE="1.13"
45 -
46 -inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev
47 -
48 -DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools"
49 -HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing"
50 -SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz
51 - https://dev.gentoo.org/~billie/distfiles/${PN}-3.18.12-patches-1.tar.xz"
52 -
53 -LICENSE="GPL-2"
54 -SLOT="0"
55 -KEYWORDS="amd64 arm ppc ppc64 x86"
56 -
57 -IUSE="doc fax +hpcups hpijs kde libnotify libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X"
58 -
59 -COMMON_DEPEND="
60 - net-print/cups
61 - virtual/jpeg:0
62 - hpijs? ( net-print/cups-filters[foomatic] )
63 - !minimal? (
64 - ${PYTHON_DEPS}
65 - sys-apps/dbus
66 - !libusb0? ( virtual/libusb:1 )
67 - libusb0? ( virtual/libusb:0 )
68 - scanner? ( media-gfx/sane-backends )
69 - snmp? (
70 - !libressl? ( dev-libs/openssl:0= )
71 - libressl? ( dev-libs/libressl:= )
72 - net-analyzer/net-snmp
73 - )
74 - )
75 -"
76 -BDEPEND="
77 - virtual/pkgconfig
78 -"
79 -DEPEND="
80 - ${COMMON_DEPEND}
81 -"
82 -RDEPEND="
83 - ${COMMON_DEPEND}
84 - app-text/ghostscript-gpl
85 - !minimal? (
86 - $(python_gen_cond_dep 'dev-python/pygobject:2[${PYTHON_MULTI_USEDEP}]' 'python2*')
87 - $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]' 'python3*')
88 - kernel_linux? ( virtual/udev )
89 - $(python_gen_cond_dep '
90 - >=dev-python/dbus-python-1.2.0-r1[${PYTHON_MULTI_USEDEP}]
91 - fax? ( dev-python/reportlab[${PYTHON_MULTI_USEDEP}] )
92 - qt5? (
93 - >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_MULTI_USEDEP}]
94 - libnotify? ( dev-python/notify2[${PYTHON_MULTI_USEDEP}] )
95 - )
96 - scanner? (
97 - >=dev-python/reportlab-3.2[${PYTHON_MULTI_USEDEP}]
98 - >=dev-python/pillow-3.1.1[${PYTHON_MULTI_USEDEP}]
99 - X? (
100 - || (
101 - kde? ( kde-misc/skanlite )
102 - media-gfx/xsane
103 - media-gfx/sane-frontends
104 - )
105 - )
106 - )
107 - ')
108 - )
109 - policykit? ( sys-auth/polkit )
110 -"
111 -
112 -REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )"
113 -
114 -PATCHES=(
115 - "${WORKDIR}/patches"
116 -)
117 -
118 -CONFIG_CHECK="~PARPORT ~PPDEV"
119 -ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)."
120 -
121 -#DISABLE_AUTOFORMATTING="yes"
122 -DOC_CONTENTS="
123 -For more information on setting up your printer please take
124 -a look at the hplip section of the gentoo printing guide:
125 -https://wiki.gentoo.org/wiki/Printing
126 -
127 -Any user who wants to print must be in the lp group.
128 -"
129 -
130 -pkg_setup() {
131 - use !minimal && python-single-r1_pkg_setup
132 -
133 - use scanner && ! use X && ewarn "You need USE=X for the scanner GUI."
134 -
135 - if ! use hpcups && ! use hpijs ; then
136 - ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver,"
137 - ewarn "which is probably not what you want."
138 - ewarn "You will almost certainly not be able to print."
139 - fi
140 -
141 - if use minimal ; then
142 - ewarn "Installing driver portions only, make sure you know what you are doing."
143 - ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver"
144 - ewarn "is installed. If both USE flags are set hpijs overrides hpcups."
145 - else
146 - use parport && linux-info_pkg_setup
147 - fi
148 -}
149 -
150 -src_prepare() {
151 - default
152 -
153 - if use !minimal ; then
154 - python_export EPYTHON PYTHON
155 - python_fix_shebang .
156 - fi
157 -
158 - # Make desktop files follow the specification
159 - # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680
160 - # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324
161 - sed -i -e '/^Categories=/s/Application;//' \
162 - -e '/^Encoding=.*/d' hplip.desktop.in || die
163 - sed -i -e '/^Categories=/s/Application;//' \
164 - -e '/^Version=.*/d' \
165 - -e '/^Comment=.*/d' hplip-systray.desktop.in || die
166 -
167 - # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725
168 - # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847,
169 - # https://bugs.launchpad.net/hplip/+bug/500086
170 - local udevdir=$(get_udevdir)
171 - sed -i -e "s|/etc/udev|${udevdir}|g" \
172 - $(find . -type f -exec grep -l /etc/udev {} +) || die
173 -
174 - # Force recognition of Gentoo distro by hp-check
175 - sed -i \
176 - -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
177 - installer/core_install.py || die
178 -
179 - eautoreconf
180 -}
181 -
182 -src_configure() {
183 - local myconf drv_build minimal_build
184 -
185 - if use libusb0 ; then
186 - myconf="${myconf} --enable-libusb01_build"
187 - else
188 - myconf="${myconf} --disable-libusb01_build"
189 - fi
190 -
191 - if use hpcups ; then
192 - drv_build="$(use_enable hpcups hpcups-install)"
193 - if use static-ppds ; then
194 - drv_build="${drv_build} --enable-cups-ppd-install"
195 - drv_build="${drv_build} --disable-cups-drv-install"
196 - else
197 - drv_build="${drv_build} --enable-cups-drv-install"
198 - drv_build="${drv_build} --disable-cups-ppd-install"
199 - fi
200 - else
201 - drv_build="--disable-hpcups-install"
202 - drv_build="${drv_build} --disable-cups-drv-install"
203 - drv_build="${drv_build} --disable-cups-ppd-install"
204 - fi
205 -
206 - if use hpijs ; then
207 - drv_build="${drv_build} $(use_enable hpijs hpijs-install)"
208 - if use static-ppds ; then
209 - drv_build="${drv_build} --enable-foomatic-ppd-install"
210 - drv_build="${drv_build} --disable-foomatic-drv-install"
211 - else
212 - drv_build="${drv_build} --enable-foomatic-drv-install"
213 - drv_build="${drv_build} --disable-foomatic-ppd-install"
214 - fi
215 - else
216 - drv_build="${drv_build} --disable-hpijs-install"
217 - drv_build="${drv_build} --disable-foomatic-drv-install"
218 - drv_build="${drv_build} --disable-foomatic-ppd-install"
219 - fi
220 -
221 - if use minimal ; then
222 - if use hpijs ; then
223 - minimal_build="--enable-hpijs-only-build"
224 - else
225 - minimal_build="--disable-hpijs-only-build"
226 - fi
227 - if use hpcups ; then
228 - minimal_build="${minimal_build} --enable-hpcups-only-build"
229 - else
230 - minimal_build="${minimal_build} --disable-hpcups-only-build"
231 - fi
232 - fi
233 -
234 - # disable class driver for now
235 - econf \
236 - --disable-cups11-build \
237 - --disable-lite-build \
238 - --disable-foomatic-rip-hplip-install \
239 - --disable-shadow-build \
240 - --disable-qt3 \
241 - --disable-qt4 \
242 - --disable-udev_sysfs_rules \
243 - --with-cupsbackenddir=$(cups-config --serverbin)/backend \
244 - --with-cupsfilterdir=$(cups-config --serverbin)/filter \
245 - --with-docdir=/usr/share/doc/${PF} \
246 - --with-htmldir=/usr/share/doc/${PF}/html \
247 - ${myconf} \
248 - ${drv_build} \
249 - ${minimal_build} \
250 - --enable-hpps-install \
251 - --disable-class-driver \
252 - $(use_enable doc doc-build) \
253 - $(use_enable fax fax-build) \
254 - $(use_enable !minimal gui-build) \
255 - $(use_enable !minimal dbus-build) \
256 - $(use_enable parport pp-build) \
257 - $(use_enable policykit) \
258 - $(use_enable qt5) \
259 - $(use_enable scanner scan-build) \
260 - $(use_enable snmp network-build)
261 -
262 - # hpijs ppds are created at configure time but are not installed (3.17.11)
263 -
264 - # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
265 - # The hpcups driver does not use foomatic-rip
266 - #local i
267 - #for i in ppd/hpijs/*.ppd.gz ; do
268 - # rm -f ${i}.temp || die
269 - # gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
270 - # gzip > ${i}.temp || die
271 - # mv ${i}.temp ${i} || die
272 - #done
273 -}
274 -
275 -src_install() {
276 - # Disable parallel install
277 - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018
278 - emake -j1 DESTDIR="${D}" install
279 - einstalldocs
280 - # default
281 -
282 - # Installed by sane-backends
283 - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023
284 - rm -f "${ED}"/etc/sane.d/dll.conf || die
285 -
286 - # Remove desktop and autostart files
287 - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=638770
288 - use qt5 || {
289 - rm -Rf "${ED}"/usr/share/applications "${ED}"/etc/xdg
290 - }
291 -
292 - rm -f "${ED}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die
293 - rmdir --ignore-fail-on-non-empty "${ED}"/usr/share/doc/${PF}/ || die
294 -
295 - # Remove hal fdi files
296 - rm -rf "${ED}"/usr/share/hal || die
297 -
298 - find "${D}" -name '*.la' -delete || die
299 -
300 - if use !minimal ; then
301 - python_export EPYTHON PYTHON
302 - python_optimize "${ED}"/usr/share/hplip
303 - fi
304 -
305 - readme.gentoo_create_doc
306 -}
307 -
308 -pkg_postinst() {
309 - readme.gentoo_print_elog
310 -}
311
312 diff --git a/net-print/hplip/hplip-3.19.11.ebuild b/net-print/hplip/hplip-3.19.11.ebuild
313 deleted file mode 100644
314 index 49cad9be350..00000000000
315 --- a/net-print/hplip/hplip-3.19.11.ebuild
316 +++ /dev/null
317 @@ -1,276 +0,0 @@
318 -# Copyright 1999-2020 Gentoo Authors
319 -# Distributed under the terms of the GNU General Public License v2
320 -
321 -EAPI=7
322 -
323 -PYTHON_COMPAT=( python3_{6,7} )
324 -PYTHON_REQ_USE="threads(+),xml"
325 -
326 -# 14 and 15 spit out a lot of warnings about subdirs
327 -WANT_AUTOMAKE="1.13"
328 -
329 -inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev
330 -
331 -DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools"
332 -HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing"
333 -SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz
334 - https://dev.gentoo.org/~billie/distfiles/${PN}-3.18.12-patches-1.tar.xz"
335 -
336 -LICENSE="GPL-2"
337 -SLOT="0"
338 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
339 -
340 -IUSE="doc fax +hpcups hpijs kde libnotify libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X"
341 -
342 -COMMON_DEPEND="
343 - net-print/cups
344 - virtual/jpeg:0
345 - hpijs? ( net-print/cups-filters[foomatic] )
346 - !minimal? (
347 - ${PYTHON_DEPS}
348 - sys-apps/dbus
349 - !libusb0? ( virtual/libusb:1 )
350 - libusb0? ( virtual/libusb:0 )
351 - scanner? ( media-gfx/sane-backends )
352 - snmp? (
353 - !libressl? ( dev-libs/openssl:0= )
354 - libressl? ( dev-libs/libressl:= )
355 - net-analyzer/net-snmp
356 - )
357 - )
358 -"
359 -BDEPEND="
360 - virtual/pkgconfig
361 -"
362 -DEPEND="
363 - ${COMMON_DEPEND}
364 -"
365 -RDEPEND="
366 - ${COMMON_DEPEND}
367 - app-text/ghostscript-gpl
368 - !minimal? (
369 - $(python_gen_cond_dep 'dev-python/pygobject:2[${PYTHON_MULTI_USEDEP}]' 'python2*')
370 - $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]' 'python3*')
371 - kernel_linux? ( virtual/udev )
372 - $(python_gen_cond_dep '
373 - >=dev-python/dbus-python-1.2.0-r1[${PYTHON_MULTI_USEDEP}]
374 - fax? ( dev-python/reportlab[${PYTHON_MULTI_USEDEP}] )
375 - qt5? (
376 - >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_MULTI_USEDEP}]
377 - libnotify? ( dev-python/notify2[${PYTHON_MULTI_USEDEP}] )
378 - )
379 - scanner? (
380 - >=dev-python/reportlab-3.2[${PYTHON_MULTI_USEDEP}]
381 - >=dev-python/pillow-3.1.1[${PYTHON_MULTI_USEDEP}]
382 - X? (
383 - || (
384 - kde? ( kde-misc/skanlite )
385 - media-gfx/xsane
386 - media-gfx/sane-frontends
387 - )
388 - )
389 - )
390 - ')
391 - )
392 - policykit? ( sys-auth/polkit )
393 -"
394 -
395 -REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )"
396 -
397 -PATCHES=(
398 - "${WORKDIR}/patches"
399 -)
400 -
401 -CONFIG_CHECK="~PARPORT ~PPDEV"
402 -ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)."
403 -
404 -#DISABLE_AUTOFORMATTING="yes"
405 -DOC_CONTENTS="
406 -For more information on setting up your printer please take
407 -a look at the hplip section of the gentoo printing guide:
408 -https://wiki.gentoo.org/wiki/Printing
409 -
410 -Any user who wants to print must be in the lp group.
411 -"
412 -
413 -pkg_setup() {
414 - use !minimal && python-single-r1_pkg_setup
415 -
416 - use scanner && ! use X && ewarn "You need USE=X for the scanner GUI."
417 -
418 - if ! use hpcups && ! use hpijs ; then
419 - ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver,"
420 - ewarn "which is probably not what you want."
421 - ewarn "You will almost certainly not be able to print."
422 - fi
423 -
424 - if use minimal ; then
425 - ewarn "Installing driver portions only, make sure you know what you are doing."
426 - ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver"
427 - ewarn "is installed. If both USE flags are set hpijs overrides hpcups."
428 - else
429 - use parport && linux-info_pkg_setup
430 - fi
431 -}
432 -
433 -src_prepare() {
434 - default
435 -
436 - if use !minimal ; then
437 - python_export EPYTHON PYTHON
438 - python_fix_shebang .
439 - fi
440 -
441 - # Make desktop files follow the specification
442 - # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680
443 - # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324
444 - sed -i -e '/^Categories=/s/Application;//' \
445 - -e '/^Encoding=.*/d' hplip.desktop.in || die
446 - sed -i -e '/^Categories=/s/Application;//' \
447 - -e '/^Version=.*/d' \
448 - -e '/^Comment=.*/d' hplip-systray.desktop.in || die
449 -
450 - # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725
451 - # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847,
452 - # https://bugs.launchpad.net/hplip/+bug/500086
453 - local udevdir=$(get_udevdir)
454 - sed -i -e "s|/etc/udev|${udevdir}|g" \
455 - $(find . -type f -exec grep -l /etc/udev {} +) || die
456 -
457 - # Force recognition of Gentoo distro by hp-check
458 - sed -i \
459 - -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
460 - installer/core_install.py || die
461 -
462 - eautoreconf
463 -}
464 -
465 -src_configure() {
466 - local myconf drv_build minimal_build
467 -
468 - if use libusb0 ; then
469 - myconf="${myconf} --enable-libusb01_build"
470 - else
471 - myconf="${myconf} --disable-libusb01_build"
472 - fi
473 -
474 - if use hpcups ; then
475 - drv_build="$(use_enable hpcups hpcups-install)"
476 - if use static-ppds ; then
477 - drv_build="${drv_build} --enable-cups-ppd-install"
478 - drv_build="${drv_build} --disable-cups-drv-install"
479 - else
480 - drv_build="${drv_build} --enable-cups-drv-install"
481 - drv_build="${drv_build} --disable-cups-ppd-install"
482 - fi
483 - else
484 - drv_build="--disable-hpcups-install"
485 - drv_build="${drv_build} --disable-cups-drv-install"
486 - drv_build="${drv_build} --disable-cups-ppd-install"
487 - fi
488 -
489 - if use hpijs ; then
490 - drv_build="${drv_build} $(use_enable hpijs hpijs-install)"
491 - if use static-ppds ; then
492 - drv_build="${drv_build} --enable-foomatic-ppd-install"
493 - drv_build="${drv_build} --disable-foomatic-drv-install"
494 - else
495 - drv_build="${drv_build} --enable-foomatic-drv-install"
496 - drv_build="${drv_build} --disable-foomatic-ppd-install"
497 - fi
498 - else
499 - drv_build="${drv_build} --disable-hpijs-install"
500 - drv_build="${drv_build} --disable-foomatic-drv-install"
501 - drv_build="${drv_build} --disable-foomatic-ppd-install"
502 - fi
503 -
504 - if use minimal ; then
505 - if use hpijs ; then
506 - minimal_build="--enable-hpijs-only-build"
507 - else
508 - minimal_build="--disable-hpijs-only-build"
509 - fi
510 - if use hpcups ; then
511 - minimal_build="${minimal_build} --enable-hpcups-only-build"
512 - else
513 - minimal_build="${minimal_build} --disable-hpcups-only-build"
514 - fi
515 - fi
516 -
517 - # disable class driver for now
518 - econf \
519 - --disable-cups11-build \
520 - --disable-lite-build \
521 - --disable-foomatic-rip-hplip-install \
522 - --disable-shadow-build \
523 - --disable-qt3 \
524 - --disable-qt4 \
525 - --disable-udev_sysfs_rules \
526 - --with-cupsbackenddir=$(cups-config --serverbin)/backend \
527 - --with-cupsfilterdir=$(cups-config --serverbin)/filter \
528 - --with-docdir=/usr/share/doc/${PF} \
529 - --with-htmldir=/usr/share/doc/${PF}/html \
530 - ${myconf} \
531 - ${drv_build} \
532 - ${minimal_build} \
533 - --enable-hpps-install \
534 - --disable-class-driver \
535 - $(use_enable doc doc-build) \
536 - $(use_enable fax fax-build) \
537 - $(use_enable !minimal gui-build) \
538 - $(use_enable !minimal dbus-build) \
539 - $(use_enable parport pp-build) \
540 - $(use_enable policykit) \
541 - $(use_enable qt5) \
542 - $(use_enable scanner scan-build) \
543 - $(use_enable snmp network-build)
544 -
545 - # hpijs ppds are created at configure time but are not installed (3.17.11)
546 -
547 - # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
548 - # The hpcups driver does not use foomatic-rip
549 - #local i
550 - #for i in ppd/hpijs/*.ppd.gz ; do
551 - # rm -f ${i}.temp || die
552 - # gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
553 - # gzip > ${i}.temp || die
554 - # mv ${i}.temp ${i} || die
555 - #done
556 -}
557 -
558 -src_install() {
559 - # Disable parallel install
560 - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018
561 - emake -j1 DESTDIR="${D}" install
562 - einstalldocs
563 - # default
564 -
565 - # Installed by sane-backends
566 - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023
567 - rm -f "${ED}"/etc/sane.d/dll.conf || die
568 -
569 - # Remove desktop and autostart files
570 - # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=638770
571 - use qt5 || {
572 - rm -Rf "${ED}"/usr/share/applications "${ED}"/etc/xdg
573 - }
574 -
575 - rm -f "${ED}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die
576 - rmdir --ignore-fail-on-non-empty "${ED}"/usr/share/doc/${PF}/ || die
577 -
578 - # Remove hal fdi files
579 - rm -rf "${ED}"/usr/share/hal || die
580 -
581 - find "${D}" -name '*.la' -delete || die
582 -
583 - if use !minimal ; then
584 - python_export EPYTHON PYTHON
585 - python_optimize "${ED}"/usr/share/hplip
586 - fi
587 -
588 - readme.gentoo_create_doc
589 -}
590 -
591 -pkg_postinst() {
592 - readme.gentoo_print_elog
593 -}