1 |
commit: 9d5803ed86983147a870e3e8d39ce0c52619c2cc |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 22:14:22 2020 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 22:14:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d5803ed |
7 |
|
8 |
net-print/hplip: Remove old hplip-3.19.12-r1 hplip-3.20.3. |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
12 |
|
13 |
net-print/hplip/Manifest | 3 - |
14 |
net-print/hplip/hplip-3.19.12-r1.ebuild | 275 ------------------------------- |
15 |
net-print/hplip/hplip-3.20.3.ebuild | 276 -------------------------------- |
16 |
3 files changed, 554 deletions(-) |
17 |
|
18 |
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest |
19 |
index 47f295ec2ba..288d649dd6b 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.19.12.tar.gz 25676247 BLAKE2B 1373aa70a2307071c28a22b0ae85e242c3e6bec614ef7490c1ecc0e5e745b81b6c2097948fbd062b5e72e10714cdc8d6f9145aacafc0fedeafde375909cb2cb6 SHA512 5552cd717ae082ee55cdb77d79e8d035d8ecb7cf23c79d659fda43468d8ed414a33c4d869eab4ab83dee836f0d1cceb74c3c4a249e26f904a5ab2350e08a5677 |
25 |
-DIST hplip-3.20.3.tar.gz 25672070 BLAKE2B 4c6209a268898de123b2b557d662acddb3ad90b227c0752ebdd1e2afb3fe3d19fddc819aba999347708dd0c098f2b8fea4580dcfb3d5fc7893e47520cae7c1d5 SHA512 a397eb3896292ac956a1969b76707af62c866e47d88148fa75b68574e4639283f7414a2c77e6854c5d22daea49181d4f1bc2daf11fb3058372ff084d591696f1 |
26 |
DIST hplip-3.20.5-patches-1.tar.xz 12716 BLAKE2B 982480185b2decb9f4e857336b474dab585d64aa44a9f0da70ba568e20488f451507aae3bd1427aef4274d36db93dd9bcb1d906f7b393939dfc43c81a1f9a9db SHA512 ae46a6f490253a1112838b08d56199c6257d33911569619483d925798b54a8bc9fe57afd1e86dedb9482d89d42f44bec81db215f37cbcd8fb5982596c80c1117 |
27 |
DIST hplip-3.20.6-patches-1.tar.xz 14384 BLAKE2B 89436c36478e96f91053a75d65af99d3b32e8d0a60417c26baf4a9ae72070409e7210e1fb9232bd69309b251d2960671020c1203d3e6672b9639e00827c4e4bf SHA512 4b903438a56ca16846a7e940c09e9555d3d2ee54cbb77a7d031027cefd04c37bde6ea1dad4a266f89fd03f0595851db973947b9a363f49972bd02522704c20f8 |
28 |
DIST hplip-3.20.6.tar.gz 25908476 BLAKE2B cd70d00081ff41d36b566d6f6f546b2cddabb46427afafcd2d04ea7769ce5114feff74612e58ffa83dde4e817ffa2804dbf41411187d9cd15ed7b888b87658ad SHA512 ccd82112afb5ee73f5d027819ab89ba8f52ec36a4b061d314565f95d288be24e045050c3368332eeae50c0fb170f8cb015fdd8dde4b32a08e3758f0f0f4e8e96 |
29 |
|
30 |
diff --git a/net-print/hplip/hplip-3.19.12-r1.ebuild b/net-print/hplip/hplip-3.19.12-r1.ebuild |
31 |
deleted file mode 100644 |
32 |
index 4730c3b7cfa..00000000000 |
33 |
--- a/net-print/hplip/hplip-3.19.12-r1.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,275 +0,0 @@ |
36 |
-# Copyright 1999-2020 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{6,7} ) |
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 |
- $(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.20.3.ebuild b/net-print/hplip/hplip-3.20.3.ebuild |
313 |
deleted file mode 100644 |
314 |
index ed4bfbdd046..00000000000 |
315 |
--- a/net-print/hplip/hplip-3.20.3.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,8} ) |
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 flag-o-matic 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:3[${PYTHON_MULTI_USEDEP}]' 'python3*') |
370 |
- kernel_linux? ( virtual/udev ) |
371 |
- $(python_gen_cond_dep ' |
372 |
- >=dev-python/dbus-python-1.2.0-r1[${PYTHON_MULTI_USEDEP}] |
373 |
- dev-python/distro[${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_fix_shebang . |
438 |
- fi |
439 |
- |
440 |
- # Make desktop files follow the specification |
441 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
442 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
443 |
- sed -i -e '/^Categories=/s/Application;//' \ |
444 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
445 |
- sed -i -e '/^Categories=/s/Application;//' \ |
446 |
- -e '/^Version=.*/d' \ |
447 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
448 |
- |
449 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
450 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
451 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
452 |
- local udevdir=$(get_udevdir) |
453 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
454 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
455 |
- |
456 |
- # Force recognition of Gentoo distro by hp-check |
457 |
- sed -i \ |
458 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
459 |
- installer/core_install.py || die |
460 |
- |
461 |
- eautoreconf |
462 |
-} |
463 |
- |
464 |
-src_configure() { |
465 |
- local myconf drv_build minimal_build |
466 |
- |
467 |
- append-cppflags "$(python-config --includes)" |
468 |
- |
469 |
- if use libusb0 ; then |
470 |
- myconf="${myconf} --enable-libusb01_build" |
471 |
- else |
472 |
- myconf="${myconf} --disable-libusb01_build" |
473 |
- fi |
474 |
- |
475 |
- if use hpcups ; then |
476 |
- drv_build="$(use_enable hpcups hpcups-install)" |
477 |
- if use static-ppds ; then |
478 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
479 |
- drv_build="${drv_build} --disable-cups-drv-install" |
480 |
- else |
481 |
- drv_build="${drv_build} --enable-cups-drv-install" |
482 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
483 |
- fi |
484 |
- else |
485 |
- drv_build="--disable-hpcups-install" |
486 |
- drv_build="${drv_build} --disable-cups-drv-install" |
487 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
488 |
- fi |
489 |
- |
490 |
- if use hpijs ; then |
491 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
492 |
- if use static-ppds ; then |
493 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
494 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
495 |
- else |
496 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
497 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
498 |
- fi |
499 |
- else |
500 |
- drv_build="${drv_build} --disable-hpijs-install" |
501 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
502 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
503 |
- fi |
504 |
- |
505 |
- if use minimal ; then |
506 |
- if use hpijs ; then |
507 |
- minimal_build="--enable-hpijs-only-build" |
508 |
- else |
509 |
- minimal_build="--disable-hpijs-only-build" |
510 |
- fi |
511 |
- if use hpcups ; then |
512 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
513 |
- else |
514 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
515 |
- fi |
516 |
- fi |
517 |
- |
518 |
- # disable class driver for now |
519 |
- econf \ |
520 |
- --disable-cups11-build \ |
521 |
- --disable-lite-build \ |
522 |
- --disable-foomatic-rip-hplip-install \ |
523 |
- --disable-shadow-build \ |
524 |
- --disable-qt3 \ |
525 |
- --disable-qt4 \ |
526 |
- --disable-udev_sysfs_rules \ |
527 |
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
528 |
- --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
529 |
- --with-docdir=/usr/share/doc/${PF} \ |
530 |
- --with-htmldir=/usr/share/doc/${PF}/html \ |
531 |
- ${myconf} \ |
532 |
- ${drv_build} \ |
533 |
- ${minimal_build} \ |
534 |
- --enable-hpps-install \ |
535 |
- --disable-class-driver \ |
536 |
- $(use_enable doc doc-build) \ |
537 |
- $(use_enable fax fax-build) \ |
538 |
- $(use_enable !minimal gui-build) \ |
539 |
- $(use_enable !minimal dbus-build) \ |
540 |
- $(use_enable parport pp-build) \ |
541 |
- $(use_enable policykit) \ |
542 |
- $(use_enable qt5) \ |
543 |
- $(use_enable scanner scan-build) \ |
544 |
- $(use_enable snmp network-build) |
545 |
- |
546 |
- # hpijs ppds are created at configure time but are not installed (3.17.11) |
547 |
- |
548 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
549 |
- # The hpcups driver does not use foomatic-rip |
550 |
- #local i |
551 |
- #for i in ppd/hpijs/*.ppd.gz ; do |
552 |
- # rm -f ${i}.temp || die |
553 |
- # gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
554 |
- # gzip > ${i}.temp || die |
555 |
- # mv ${i}.temp ${i} || die |
556 |
- #done |
557 |
-} |
558 |
- |
559 |
-src_install() { |
560 |
- # Disable parallel install |
561 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018 |
562 |
- emake -j1 DESTDIR="${D}" install |
563 |
- einstalldocs |
564 |
- # default |
565 |
- |
566 |
- # Installed by sane-backends |
567 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
568 |
- rm -f "${ED}"/etc/sane.d/dll.conf || die |
569 |
- |
570 |
- # Remove desktop and autostart files |
571 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=638770 |
572 |
- use qt5 || { |
573 |
- rm -Rf "${ED}"/usr/share/applications "${ED}"/etc/xdg |
574 |
- } |
575 |
- |
576 |
- rm -f "${ED}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
577 |
- rmdir --ignore-fail-on-non-empty "${ED}"/usr/share/doc/${PF}/ || die |
578 |
- |
579 |
- # Remove hal fdi files |
580 |
- rm -rf "${ED}"/usr/share/hal || die |
581 |
- |
582 |
- find "${D}" -name '*.la' -delete || die |
583 |
- |
584 |
- if use !minimal ; then |
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 |
-} |