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