1 |
commit: 8fba11ae70a32d555da387e1c5ed1a13fc64208f |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 27 20:43:33 2017 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 27 20:43:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fba11ae |
7 |
|
8 |
net-print/hplip: Remove old. |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.1 |
11 |
|
12 |
net-print/hplip/Manifest | 3 - |
13 |
net-print/hplip/hplip-3.17.6.ebuild | 254 ------------------------------------ |
14 |
net-print/hplip/hplip-3.17.7.ebuild | 254 ------------------------------------ |
15 |
net-print/hplip/hplip-3.17.9.ebuild | 254 ------------------------------------ |
16 |
4 files changed, 765 deletions(-) |
17 |
|
18 |
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest |
19 |
index a78e0ffdbf8..99d2ff9ebb8 100644 |
20 |
--- a/net-print/hplip/Manifest |
21 |
+++ b/net-print/hplip/Manifest |
22 |
@@ -1,7 +1,4 @@ |
23 |
DIST hplip-3.16.2-patches-1.tar.xz 8188 SHA256 8a9a78e0caac1731eae79f047a6054b411c237c579fdfd07bc59d435db708705 SHA512 7eb03c093cfb9ef6b9a980ef5520575310d080c45ed13191933a5facaf9bbb04b38c8381762a3ecd33884ad582830e61e17b6c17f2ed7cdf910670e05eed2510 WHIRLPOOL 6721eac17977485eae0cb22b1702d0479003e3639e806ecd3c5888f1b5015a0bf904512104ebefee4b3d5f64abebd0608090e00310ec8d5b48f210c7e4a95e4e |
24 |
DIST hplip-3.16.3.tar.gz 22408596 SHA256 42d2302ee38bda41caa0f2f9524a91f531e3aa432814ffd45b3e5c396dc30194 SHA512 32d2f88c0983208e77592f73bf65cf2900cd6aa234d09220a18b45b5fc4bd0d10e9cfc8c7a10639e5a51ad5f5d0f8ed7bd477d08c86b89c633a1bbcd42682915 WHIRLPOOL b287ecf80c2e7b0da0de0afefcf60c507f9d42c74dbba1e745b4b43f253a5b0dedb6398a1f073e14d196296da47764e983138c0151e05bfc7a5dd416458662a0 |
25 |
-DIST hplip-3.16.5-patches-1.tar.xz 8200 SHA256 98866e57a247e7a30d9cd584ed9411aa79a6185294a73b4cc5961efe9a5e5fa6 SHA512 36d33da5fc4105183cbc5137845ddccd8ab2b6abbff053a3a51f3da61c26c2d9d48dcb735345fb453abd67b6a0797aa337102c366cce037bc7006599b20b1646 WHIRLPOOL 8ac91bdefeb177c092b1d6de16474e8e1da57ad046dbc579f14fd40a27d1837d9bf142573137ef8d91c37dc7b03ca908fd5bfad23a9815af2015b521091c2700 |
26 |
-DIST hplip-3.17.6.tar.gz 23620156 SHA256 80287834aad7e3fa30f2e252ff281d351e3f2eb15267ac541531353dc7b5107e SHA512 370fa0e07f4f5b4dc4a6f52b02271102894da98bc902912ff1770a9e5029d486227f4170ff90a063c686d23e8bd075961073ecc59961419a226a850db9e71738 WHIRLPOOL d938d36cba1c9d34e02709e75209a9c4e0bc7db0f7fbbb875bab41e57009a9522f12cf5bcfc03530d5ad46c2b2bb3575e68898e8071116a03240cd7042e4b2b0 |
27 |
-DIST hplip-3.17.7.tar.gz 23644395 SHA256 3577bd5afd40b73fd754664ad69f0187dde2e64879e7446309f2ed9fd7dc400d SHA512 f88c16d5b6e1986df5b7c1081802ed4832849de8d8b01961231965b115731eb9bd5c18fa52d5bf2eb412927b9de0057bf8025a1579b053c4d8441f0ad4e7ce3f WHIRLPOOL 2e0f0743ffce6d66970815d621a55618a00c360f2f4aa31a1742fcd17ad246a2717f5507b1b4910a93ea5fc06b5d7e87dfb2f08c50993c85bb6a654d13faf527 |
28 |
DIST hplip-3.17.9-patches-1.tar.xz 8484 SHA256 2ec368039a59e375bebf565bd679dd3bedb1e0c1ecfc103c5dcf9bb2701ba9d7 SHA512 125f9cfd1c3cad662ce33954b8ab9ab1898368b449c4ad78dfe99f29de8025183773272b9865cd22b976a30c502e38254ce0ac59d685299dff7f9314927d546a WHIRLPOOL 2354bd3b158733b668c731ea3fd605170dd4cc0df5ffebc327a69ad33995ec02166d34897567ed69d608a62e97b33bd12fc0066acb6c302677cc68830a2661cf |
29 |
DIST hplip-3.17.9.tar.gz 23862533 SHA256 b2aad842f51dae7da2dd08d09ce2c27bc5f73c82a560b9494dd33589b0948678 SHA512 25508b91723be9564b9a7e8093159507a1a01a9e50e9e801f452f71c28cce0bddee2f5bf796214fa5752de8d1799fc6fe102779dabae0dbcba1f4de6b207c095 WHIRLPOOL df3bd0a8c4af9e7bf2a4ee534b317e84d89707587f770ab0c6ae98ccd5bea50d8be704ed2f855c9f67af8cdd34afc2ab0b07bd150f8861fc4900aa471a85b6ee |
30 |
|
31 |
diff --git a/net-print/hplip/hplip-3.17.6.ebuild b/net-print/hplip/hplip-3.17.6.ebuild |
32 |
deleted file mode 100644 |
33 |
index 2fb4096c454..00000000000 |
34 |
--- a/net-print/hplip/hplip-3.17.6.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,254 +0,0 @@ |
37 |
-# Copyright 1999-2017 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
43 |
-PYTHON_REQ_USE="threads,xml" |
44 |
- |
45 |
-inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev |
46 |
- |
47 |
-DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools" |
48 |
-HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
49 |
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
50 |
- https://dev.gentoo.org/~billie/distfiles/${PN}-3.16.5-patches-1.tar.xz" |
51 |
- |
52 |
-LICENSE="GPL-2" |
53 |
-SLOT="0" |
54 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
55 |
- |
56 |
-IUSE="doc fax +hpcups hpijs kde libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X" |
57 |
- |
58 |
-# dependency on dev-python/notify-python dropped due to python 3 incompatibility |
59 |
-# possible replacement notify2 (https://pypi.python.org/pypi/notify2/0.3) not in tree |
60 |
- |
61 |
-COMMON_DEPEND=" |
62 |
- net-print/cups |
63 |
- virtual/jpeg:0 |
64 |
- hpijs? ( net-print/cups-filters[foomatic] ) |
65 |
- !minimal? ( |
66 |
- ${PYTHON_DEPS} |
67 |
- sys-apps/dbus |
68 |
- !libusb0? ( virtual/libusb:1 ) |
69 |
- libusb0? ( virtual/libusb:0 ) |
70 |
- scanner? ( media-gfx/sane-backends ) |
71 |
- snmp? ( |
72 |
- !libressl? ( dev-libs/openssl:0= ) |
73 |
- libressl? ( dev-libs/libressl:= ) |
74 |
- net-analyzer/net-snmp |
75 |
- ) |
76 |
- ) |
77 |
-" |
78 |
-DEPEND="${COMMON_DEPEND} |
79 |
- virtual/pkgconfig |
80 |
-" |
81 |
-RDEPEND="${COMMON_DEPEND} |
82 |
- app-text/ghostscript-gpl |
83 |
- !minimal? ( |
84 |
- >=dev-python/dbus-python-1.2.0-r1[${PYTHON_USEDEP}] |
85 |
- $(python_gen_cond_dep 'dev-python/pygobject:2[${PYTHON_USEDEP}]' 'python2*') |
86 |
- $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]' 'python3*') |
87 |
- fax? ( dev-python/reportlab[${PYTHON_USEDEP}] ) |
88 |
- kernel_linux? ( virtual/udev ) |
89 |
- qt5? ( >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_USEDEP}] ) |
90 |
- scanner? ( |
91 |
- >=dev-python/reportlab-3.2[${PYTHON_USEDEP}] |
92 |
- >=dev-python/pillow-3.1.1[${PYTHON_USEDEP}] |
93 |
- X? ( || ( |
94 |
- kde? ( kde-misc/skanlite ) |
95 |
- media-gfx/xsane |
96 |
- media-gfx/sane-frontends |
97 |
- ) ) |
98 |
- ) |
99 |
- ) |
100 |
- policykit? ( sys-auth/polkit ) |
101 |
-" |
102 |
- |
103 |
-REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )" |
104 |
- |
105 |
-PATCHES=( |
106 |
- "${WORKDIR}/patches" |
107 |
-) |
108 |
- |
109 |
-CONFIG_CHECK="~PARPORT ~PPDEV" |
110 |
-ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." |
111 |
- |
112 |
-#DISABLE_AUTOFORMATTING="yes" |
113 |
-DOC_CONTENTS=" |
114 |
-For more information on setting up your printer please take |
115 |
-a look at the hplip section of the gentoo printing guide: |
116 |
-https://wiki.gentoo.org/wiki/Printing |
117 |
- |
118 |
-Any user who wants to print must be in the lp group. |
119 |
-" |
120 |
- |
121 |
-pkg_setup() { |
122 |
- use !minimal && python-single-r1_pkg_setup |
123 |
- |
124 |
- use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
125 |
- |
126 |
- if ! use hpcups && ! use hpijs ; then |
127 |
- ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
128 |
- ewarn "which is probably not what you want." |
129 |
- ewarn "You will almost certainly not be able to print." |
130 |
- fi |
131 |
- |
132 |
- if use minimal ; then |
133 |
- ewarn "Installing driver portions only, make sure you know what you are doing." |
134 |
- ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
135 |
- ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
136 |
- else |
137 |
- use parport && linux-info_pkg_setup |
138 |
- fi |
139 |
-} |
140 |
- |
141 |
-src_prepare() { |
142 |
- default |
143 |
- |
144 |
- if use !minimal ; then |
145 |
- python_export EPYTHON PYTHON |
146 |
- python_fix_shebang . |
147 |
- fi |
148 |
- |
149 |
- # Make desktop files follow the specification |
150 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
151 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
152 |
- sed -i -e '/^Categories=/s/Application;//' \ |
153 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
154 |
- sed -i -e '/^Categories=/s/Application;//' \ |
155 |
- -e '/^Version=.*/d' \ |
156 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
157 |
- |
158 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
159 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
160 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
161 |
- local udevdir=$(get_udevdir) |
162 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
163 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
164 |
- |
165 |
- # Force recognition of Gentoo distro by hp-check |
166 |
- sed -i \ |
167 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
168 |
- installer/core_install.py || die |
169 |
- |
170 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
171 |
- # The hpcups driver does not use foomatic-rip |
172 |
- local i |
173 |
- for i in ppd/hpijs/*.ppd.gz ; do |
174 |
- rm -f ${i}.temp || die |
175 |
- gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
176 |
- gzip > ${i}.temp || die |
177 |
- mv ${i}.temp ${i} || die |
178 |
- done |
179 |
- |
180 |
- eautoreconf |
181 |
-} |
182 |
- |
183 |
-src_configure() { |
184 |
- local myconf drv_build minimal_build |
185 |
- |
186 |
- if use libusb0 ; then |
187 |
- myconf="${myconf} --enable-libusb01_build" |
188 |
- else |
189 |
- myconf="${myconf} --disable-libusb01_build" |
190 |
- fi |
191 |
- |
192 |
- if use hpcups ; then |
193 |
- drv_build="$(use_enable hpcups hpcups-install)" |
194 |
- if use static-ppds ; then |
195 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
196 |
- drv_build="${drv_build} --disable-cups-drv-install" |
197 |
- else |
198 |
- drv_build="${drv_build} --enable-cups-drv-install" |
199 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
200 |
- fi |
201 |
- else |
202 |
- drv_build="--disable-hpcups-install" |
203 |
- drv_build="${drv_build} --disable-cups-drv-install" |
204 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
205 |
- fi |
206 |
- |
207 |
- if use hpijs ; then |
208 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
209 |
- if use static-ppds ; then |
210 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
211 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
212 |
- else |
213 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
214 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
215 |
- fi |
216 |
- else |
217 |
- drv_build="${drv_build} --disable-hpijs-install" |
218 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
219 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
220 |
- fi |
221 |
- |
222 |
- if use minimal ; then |
223 |
- if use hpijs ; then |
224 |
- minimal_build="--enable-hpijs-only-build" |
225 |
- else |
226 |
- minimal_build="--disable-hpijs-only-build" |
227 |
- fi |
228 |
- if use hpcups ; then |
229 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
230 |
- else |
231 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
232 |
- fi |
233 |
- fi |
234 |
- |
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 |
- $(use_enable doc doc-build) \ |
251 |
- $(use_enable fax fax-build) \ |
252 |
- $(use_enable !minimal gui-build) \ |
253 |
- $(use_enable !minimal dbus-build) \ |
254 |
- $(use_enable parport pp-build) \ |
255 |
- $(use_enable policykit) \ |
256 |
- $(use_enable qt5) \ |
257 |
- $(use_enable scanner scan-build) \ |
258 |
- $(use_enable snmp network-build) |
259 |
-} |
260 |
- |
261 |
-src_install() { |
262 |
- # disable parallel install |
263 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018 |
264 |
- emake -j1 DESTDIR="${D}" install |
265 |
- einstalldocs |
266 |
- # default |
267 |
- |
268 |
- # Installed by sane-backends |
269 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
270 |
- rm -f "${ED%/}"/etc/sane.d/dll.conf || die |
271 |
- |
272 |
- rm -f "${ED%/}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
273 |
- rmdir --ignore-fail-on-non-empty "${ED%/}"/usr/share/doc/${PF}/ || die |
274 |
- |
275 |
- # Remove hal fdi files |
276 |
- rm -rf "${ED%/}"/usr/share/hal || die |
277 |
- |
278 |
- find "${D}" -name '*.la' -delete || die |
279 |
- |
280 |
- if use !minimal ; then |
281 |
- python_export EPYTHON PYTHON |
282 |
- python_optimize "${ED%/}"/usr/share/hplip |
283 |
- fi |
284 |
- |
285 |
- readme.gentoo_create_doc |
286 |
-} |
287 |
- |
288 |
-pkg_postinst() { |
289 |
- readme.gentoo_print_elog |
290 |
-} |
291 |
|
292 |
diff --git a/net-print/hplip/hplip-3.17.7.ebuild b/net-print/hplip/hplip-3.17.7.ebuild |
293 |
deleted file mode 100644 |
294 |
index a03a682bccb..00000000000 |
295 |
--- a/net-print/hplip/hplip-3.17.7.ebuild |
296 |
+++ /dev/null |
297 |
@@ -1,254 +0,0 @@ |
298 |
-# Copyright 1999-2017 Gentoo Foundation |
299 |
-# Distributed under the terms of the GNU General Public License v2 |
300 |
- |
301 |
-EAPI=6 |
302 |
- |
303 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
304 |
-PYTHON_REQ_USE="threads,xml" |
305 |
- |
306 |
-inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev |
307 |
- |
308 |
-DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools" |
309 |
-HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
310 |
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
311 |
- https://dev.gentoo.org/~billie/distfiles/${PN}-3.16.5-patches-1.tar.xz" |
312 |
- |
313 |
-LICENSE="GPL-2" |
314 |
-SLOT="0" |
315 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
316 |
- |
317 |
-IUSE="doc fax +hpcups hpijs kde libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X" |
318 |
- |
319 |
-# dependency on dev-python/notify-python dropped due to python 3 incompatibility |
320 |
-# possible replacement notify2 (https://pypi.python.org/pypi/notify2/0.3) not in tree |
321 |
- |
322 |
-COMMON_DEPEND=" |
323 |
- net-print/cups |
324 |
- virtual/jpeg:0 |
325 |
- hpijs? ( net-print/cups-filters[foomatic] ) |
326 |
- !minimal? ( |
327 |
- ${PYTHON_DEPS} |
328 |
- sys-apps/dbus |
329 |
- !libusb0? ( virtual/libusb:1 ) |
330 |
- libusb0? ( virtual/libusb:0 ) |
331 |
- scanner? ( media-gfx/sane-backends ) |
332 |
- snmp? ( |
333 |
- !libressl? ( dev-libs/openssl:0= ) |
334 |
- libressl? ( dev-libs/libressl:= ) |
335 |
- net-analyzer/net-snmp |
336 |
- ) |
337 |
- ) |
338 |
-" |
339 |
-DEPEND="${COMMON_DEPEND} |
340 |
- virtual/pkgconfig |
341 |
-" |
342 |
-RDEPEND="${COMMON_DEPEND} |
343 |
- app-text/ghostscript-gpl |
344 |
- !minimal? ( |
345 |
- >=dev-python/dbus-python-1.2.0-r1[${PYTHON_USEDEP}] |
346 |
- $(python_gen_cond_dep 'dev-python/pygobject:2[${PYTHON_USEDEP}]' 'python2*') |
347 |
- $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]' 'python3*') |
348 |
- fax? ( dev-python/reportlab[${PYTHON_USEDEP}] ) |
349 |
- kernel_linux? ( virtual/udev ) |
350 |
- qt5? ( >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_USEDEP}] ) |
351 |
- scanner? ( |
352 |
- >=dev-python/reportlab-3.2[${PYTHON_USEDEP}] |
353 |
- >=dev-python/pillow-3.1.1[${PYTHON_USEDEP}] |
354 |
- X? ( || ( |
355 |
- kde? ( kde-misc/skanlite ) |
356 |
- media-gfx/xsane |
357 |
- media-gfx/sane-frontends |
358 |
- ) ) |
359 |
- ) |
360 |
- ) |
361 |
- policykit? ( sys-auth/polkit ) |
362 |
-" |
363 |
- |
364 |
-REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )" |
365 |
- |
366 |
-PATCHES=( |
367 |
- "${WORKDIR}/patches" |
368 |
-) |
369 |
- |
370 |
-CONFIG_CHECK="~PARPORT ~PPDEV" |
371 |
-ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." |
372 |
- |
373 |
-#DISABLE_AUTOFORMATTING="yes" |
374 |
-DOC_CONTENTS=" |
375 |
-For more information on setting up your printer please take |
376 |
-a look at the hplip section of the gentoo printing guide: |
377 |
-https://wiki.gentoo.org/wiki/Printing |
378 |
- |
379 |
-Any user who wants to print must be in the lp group. |
380 |
-" |
381 |
- |
382 |
-pkg_setup() { |
383 |
- use !minimal && python-single-r1_pkg_setup |
384 |
- |
385 |
- use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
386 |
- |
387 |
- if ! use hpcups && ! use hpijs ; then |
388 |
- ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
389 |
- ewarn "which is probably not what you want." |
390 |
- ewarn "You will almost certainly not be able to print." |
391 |
- fi |
392 |
- |
393 |
- if use minimal ; then |
394 |
- ewarn "Installing driver portions only, make sure you know what you are doing." |
395 |
- ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
396 |
- ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
397 |
- else |
398 |
- use parport && linux-info_pkg_setup |
399 |
- fi |
400 |
-} |
401 |
- |
402 |
-src_prepare() { |
403 |
- default |
404 |
- |
405 |
- if use !minimal ; then |
406 |
- python_export EPYTHON PYTHON |
407 |
- python_fix_shebang . |
408 |
- fi |
409 |
- |
410 |
- # Make desktop files follow the specification |
411 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
412 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
413 |
- sed -i -e '/^Categories=/s/Application;//' \ |
414 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
415 |
- sed -i -e '/^Categories=/s/Application;//' \ |
416 |
- -e '/^Version=.*/d' \ |
417 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
418 |
- |
419 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
420 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
421 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
422 |
- local udevdir=$(get_udevdir) |
423 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
424 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
425 |
- |
426 |
- # Force recognition of Gentoo distro by hp-check |
427 |
- sed -i \ |
428 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
429 |
- installer/core_install.py || die |
430 |
- |
431 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
432 |
- # The hpcups driver does not use foomatic-rip |
433 |
- local i |
434 |
- for i in ppd/hpijs/*.ppd.gz ; do |
435 |
- rm -f ${i}.temp || die |
436 |
- gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
437 |
- gzip > ${i}.temp || die |
438 |
- mv ${i}.temp ${i} || die |
439 |
- done |
440 |
- |
441 |
- eautoreconf |
442 |
-} |
443 |
- |
444 |
-src_configure() { |
445 |
- local myconf drv_build minimal_build |
446 |
- |
447 |
- if use libusb0 ; then |
448 |
- myconf="${myconf} --enable-libusb01_build" |
449 |
- else |
450 |
- myconf="${myconf} --disable-libusb01_build" |
451 |
- fi |
452 |
- |
453 |
- if use hpcups ; then |
454 |
- drv_build="$(use_enable hpcups hpcups-install)" |
455 |
- if use static-ppds ; then |
456 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
457 |
- drv_build="${drv_build} --disable-cups-drv-install" |
458 |
- else |
459 |
- drv_build="${drv_build} --enable-cups-drv-install" |
460 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
461 |
- fi |
462 |
- else |
463 |
- drv_build="--disable-hpcups-install" |
464 |
- drv_build="${drv_build} --disable-cups-drv-install" |
465 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
466 |
- fi |
467 |
- |
468 |
- if use hpijs ; then |
469 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
470 |
- if use static-ppds ; then |
471 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
472 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
473 |
- else |
474 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
475 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
476 |
- fi |
477 |
- else |
478 |
- drv_build="${drv_build} --disable-hpijs-install" |
479 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
480 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
481 |
- fi |
482 |
- |
483 |
- if use minimal ; then |
484 |
- if use hpijs ; then |
485 |
- minimal_build="--enable-hpijs-only-build" |
486 |
- else |
487 |
- minimal_build="--disable-hpijs-only-build" |
488 |
- fi |
489 |
- if use hpcups ; then |
490 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
491 |
- else |
492 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
493 |
- fi |
494 |
- fi |
495 |
- |
496 |
- econf \ |
497 |
- --disable-cups11-build \ |
498 |
- --disable-lite-build \ |
499 |
- --disable-foomatic-rip-hplip-install \ |
500 |
- --disable-shadow-build \ |
501 |
- --disable-qt3 \ |
502 |
- --disable-qt4 \ |
503 |
- --disable-udev_sysfs_rules \ |
504 |
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
505 |
- --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
506 |
- --with-docdir=/usr/share/doc/${PF} \ |
507 |
- --with-htmldir=/usr/share/doc/${PF}/html \ |
508 |
- ${myconf} \ |
509 |
- ${drv_build} \ |
510 |
- ${minimal_build} \ |
511 |
- $(use_enable doc doc-build) \ |
512 |
- $(use_enable fax fax-build) \ |
513 |
- $(use_enable !minimal gui-build) \ |
514 |
- $(use_enable !minimal dbus-build) \ |
515 |
- $(use_enable parport pp-build) \ |
516 |
- $(use_enable policykit) \ |
517 |
- $(use_enable qt5) \ |
518 |
- $(use_enable scanner scan-build) \ |
519 |
- $(use_enable snmp network-build) |
520 |
-} |
521 |
- |
522 |
-src_install() { |
523 |
- # disable parallel install |
524 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018 |
525 |
- emake -j1 DESTDIR="${D}" install |
526 |
- einstalldocs |
527 |
- # default |
528 |
- |
529 |
- # Installed by sane-backends |
530 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
531 |
- rm -f "${ED%/}"/etc/sane.d/dll.conf || die |
532 |
- |
533 |
- rm -f "${ED%/}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
534 |
- rmdir --ignore-fail-on-non-empty "${ED%/}"/usr/share/doc/${PF}/ || die |
535 |
- |
536 |
- # Remove hal fdi files |
537 |
- rm -rf "${ED%/}"/usr/share/hal || die |
538 |
- |
539 |
- find "${D}" -name '*.la' -delete || die |
540 |
- |
541 |
- if use !minimal ; then |
542 |
- python_export EPYTHON PYTHON |
543 |
- python_optimize "${ED%/}"/usr/share/hplip |
544 |
- fi |
545 |
- |
546 |
- readme.gentoo_create_doc |
547 |
-} |
548 |
- |
549 |
-pkg_postinst() { |
550 |
- readme.gentoo_print_elog |
551 |
-} |
552 |
|
553 |
diff --git a/net-print/hplip/hplip-3.17.9.ebuild b/net-print/hplip/hplip-3.17.9.ebuild |
554 |
deleted file mode 100644 |
555 |
index a03a682bccb..00000000000 |
556 |
--- a/net-print/hplip/hplip-3.17.9.ebuild |
557 |
+++ /dev/null |
558 |
@@ -1,254 +0,0 @@ |
559 |
-# Copyright 1999-2017 Gentoo Foundation |
560 |
-# Distributed under the terms of the GNU General Public License v2 |
561 |
- |
562 |
-EAPI=6 |
563 |
- |
564 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
565 |
-PYTHON_REQ_USE="threads,xml" |
566 |
- |
567 |
-inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev |
568 |
- |
569 |
-DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools" |
570 |
-HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
571 |
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
572 |
- https://dev.gentoo.org/~billie/distfiles/${PN}-3.16.5-patches-1.tar.xz" |
573 |
- |
574 |
-LICENSE="GPL-2" |
575 |
-SLOT="0" |
576 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
577 |
- |
578 |
-IUSE="doc fax +hpcups hpijs kde libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X" |
579 |
- |
580 |
-# dependency on dev-python/notify-python dropped due to python 3 incompatibility |
581 |
-# possible replacement notify2 (https://pypi.python.org/pypi/notify2/0.3) not in tree |
582 |
- |
583 |
-COMMON_DEPEND=" |
584 |
- net-print/cups |
585 |
- virtual/jpeg:0 |
586 |
- hpijs? ( net-print/cups-filters[foomatic] ) |
587 |
- !minimal? ( |
588 |
- ${PYTHON_DEPS} |
589 |
- sys-apps/dbus |
590 |
- !libusb0? ( virtual/libusb:1 ) |
591 |
- libusb0? ( virtual/libusb:0 ) |
592 |
- scanner? ( media-gfx/sane-backends ) |
593 |
- snmp? ( |
594 |
- !libressl? ( dev-libs/openssl:0= ) |
595 |
- libressl? ( dev-libs/libressl:= ) |
596 |
- net-analyzer/net-snmp |
597 |
- ) |
598 |
- ) |
599 |
-" |
600 |
-DEPEND="${COMMON_DEPEND} |
601 |
- virtual/pkgconfig |
602 |
-" |
603 |
-RDEPEND="${COMMON_DEPEND} |
604 |
- app-text/ghostscript-gpl |
605 |
- !minimal? ( |
606 |
- >=dev-python/dbus-python-1.2.0-r1[${PYTHON_USEDEP}] |
607 |
- $(python_gen_cond_dep 'dev-python/pygobject:2[${PYTHON_USEDEP}]' 'python2*') |
608 |
- $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]' 'python3*') |
609 |
- fax? ( dev-python/reportlab[${PYTHON_USEDEP}] ) |
610 |
- kernel_linux? ( virtual/udev ) |
611 |
- qt5? ( >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_USEDEP}] ) |
612 |
- scanner? ( |
613 |
- >=dev-python/reportlab-3.2[${PYTHON_USEDEP}] |
614 |
- >=dev-python/pillow-3.1.1[${PYTHON_USEDEP}] |
615 |
- X? ( || ( |
616 |
- kde? ( kde-misc/skanlite ) |
617 |
- media-gfx/xsane |
618 |
- media-gfx/sane-frontends |
619 |
- ) ) |
620 |
- ) |
621 |
- ) |
622 |
- policykit? ( sys-auth/polkit ) |
623 |
-" |
624 |
- |
625 |
-REQUIRED_USE="!minimal? ( ${PYTHON_REQUIRED_USE} )" |
626 |
- |
627 |
-PATCHES=( |
628 |
- "${WORKDIR}/patches" |
629 |
-) |
630 |
- |
631 |
-CONFIG_CHECK="~PARPORT ~PPDEV" |
632 |
-ERROR_PARPORT="Please make sure kernel parallel port support is enabled (PARPORT and PPDEV)." |
633 |
- |
634 |
-#DISABLE_AUTOFORMATTING="yes" |
635 |
-DOC_CONTENTS=" |
636 |
-For more information on setting up your printer please take |
637 |
-a look at the hplip section of the gentoo printing guide: |
638 |
-https://wiki.gentoo.org/wiki/Printing |
639 |
- |
640 |
-Any user who wants to print must be in the lp group. |
641 |
-" |
642 |
- |
643 |
-pkg_setup() { |
644 |
- use !minimal && python-single-r1_pkg_setup |
645 |
- |
646 |
- use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
647 |
- |
648 |
- if ! use hpcups && ! use hpijs ; then |
649 |
- ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
650 |
- ewarn "which is probably not what you want." |
651 |
- ewarn "You will almost certainly not be able to print." |
652 |
- fi |
653 |
- |
654 |
- if use minimal ; then |
655 |
- ewarn "Installing driver portions only, make sure you know what you are doing." |
656 |
- ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
657 |
- ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
658 |
- else |
659 |
- use parport && linux-info_pkg_setup |
660 |
- fi |
661 |
-} |
662 |
- |
663 |
-src_prepare() { |
664 |
- default |
665 |
- |
666 |
- if use !minimal ; then |
667 |
- python_export EPYTHON PYTHON |
668 |
- python_fix_shebang . |
669 |
- fi |
670 |
- |
671 |
- # Make desktop files follow the specification |
672 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
673 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
674 |
- sed -i -e '/^Categories=/s/Application;//' \ |
675 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
676 |
- sed -i -e '/^Categories=/s/Application;//' \ |
677 |
- -e '/^Version=.*/d' \ |
678 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
679 |
- |
680 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
681 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
682 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
683 |
- local udevdir=$(get_udevdir) |
684 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
685 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
686 |
- |
687 |
- # Force recognition of Gentoo distro by hp-check |
688 |
- sed -i \ |
689 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
690 |
- installer/core_install.py || die |
691 |
- |
692 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
693 |
- # The hpcups driver does not use foomatic-rip |
694 |
- local i |
695 |
- for i in ppd/hpijs/*.ppd.gz ; do |
696 |
- rm -f ${i}.temp || die |
697 |
- gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
698 |
- gzip > ${i}.temp || die |
699 |
- mv ${i}.temp ${i} || die |
700 |
- done |
701 |
- |
702 |
- eautoreconf |
703 |
-} |
704 |
- |
705 |
-src_configure() { |
706 |
- local myconf drv_build minimal_build |
707 |
- |
708 |
- if use libusb0 ; then |
709 |
- myconf="${myconf} --enable-libusb01_build" |
710 |
- else |
711 |
- myconf="${myconf} --disable-libusb01_build" |
712 |
- fi |
713 |
- |
714 |
- if use hpcups ; then |
715 |
- drv_build="$(use_enable hpcups hpcups-install)" |
716 |
- if use static-ppds ; then |
717 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
718 |
- drv_build="${drv_build} --disable-cups-drv-install" |
719 |
- else |
720 |
- drv_build="${drv_build} --enable-cups-drv-install" |
721 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
722 |
- fi |
723 |
- else |
724 |
- drv_build="--disable-hpcups-install" |
725 |
- drv_build="${drv_build} --disable-cups-drv-install" |
726 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
727 |
- fi |
728 |
- |
729 |
- if use hpijs ; then |
730 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
731 |
- if use static-ppds ; then |
732 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
733 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
734 |
- else |
735 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
736 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
737 |
- fi |
738 |
- else |
739 |
- drv_build="${drv_build} --disable-hpijs-install" |
740 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
741 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
742 |
- fi |
743 |
- |
744 |
- if use minimal ; then |
745 |
- if use hpijs ; then |
746 |
- minimal_build="--enable-hpijs-only-build" |
747 |
- else |
748 |
- minimal_build="--disable-hpijs-only-build" |
749 |
- fi |
750 |
- if use hpcups ; then |
751 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
752 |
- else |
753 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
754 |
- fi |
755 |
- fi |
756 |
- |
757 |
- econf \ |
758 |
- --disable-cups11-build \ |
759 |
- --disable-lite-build \ |
760 |
- --disable-foomatic-rip-hplip-install \ |
761 |
- --disable-shadow-build \ |
762 |
- --disable-qt3 \ |
763 |
- --disable-qt4 \ |
764 |
- --disable-udev_sysfs_rules \ |
765 |
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
766 |
- --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
767 |
- --with-docdir=/usr/share/doc/${PF} \ |
768 |
- --with-htmldir=/usr/share/doc/${PF}/html \ |
769 |
- ${myconf} \ |
770 |
- ${drv_build} \ |
771 |
- ${minimal_build} \ |
772 |
- $(use_enable doc doc-build) \ |
773 |
- $(use_enable fax fax-build) \ |
774 |
- $(use_enable !minimal gui-build) \ |
775 |
- $(use_enable !minimal dbus-build) \ |
776 |
- $(use_enable parport pp-build) \ |
777 |
- $(use_enable policykit) \ |
778 |
- $(use_enable qt5) \ |
779 |
- $(use_enable scanner scan-build) \ |
780 |
- $(use_enable snmp network-build) |
781 |
-} |
782 |
- |
783 |
-src_install() { |
784 |
- # disable parallel install |
785 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018 |
786 |
- emake -j1 DESTDIR="${D}" install |
787 |
- einstalldocs |
788 |
- # default |
789 |
- |
790 |
- # Installed by sane-backends |
791 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
792 |
- rm -f "${ED%/}"/etc/sane.d/dll.conf || die |
793 |
- |
794 |
- rm -f "${ED%/}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
795 |
- rmdir --ignore-fail-on-non-empty "${ED%/}"/usr/share/doc/${PF}/ || die |
796 |
- |
797 |
- # Remove hal fdi files |
798 |
- rm -rf "${ED%/}"/usr/share/hal || die |
799 |
- |
800 |
- find "${D}" -name '*.la' -delete || die |
801 |
- |
802 |
- if use !minimal ; then |
803 |
- python_export EPYTHON PYTHON |
804 |
- python_optimize "${ED%/}"/usr/share/hplip |
805 |
- fi |
806 |
- |
807 |
- readme.gentoo_create_doc |
808 |
-} |
809 |
- |
810 |
-pkg_postinst() { |
811 |
- readme.gentoo_print_elog |
812 |
-} |