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