1 |
commit: 0831b9b138cc53603fe6ee6afa00d27933599889 |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 23 14:51:26 2020 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 23 14:51:26 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0831b9b1 |
7 |
|
8 |
net-print/hplip: Remove old hplip-3.20.9-r2. |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
11 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
12 |
|
13 |
net-print/hplip/hplip-3.20.9-r2.ebuild | 282 --------------------------------- |
14 |
1 file changed, 282 deletions(-) |
15 |
|
16 |
diff --git a/net-print/hplip/hplip-3.20.9-r2.ebuild b/net-print/hplip/hplip-3.20.9-r2.ebuild |
17 |
deleted file mode 100644 |
18 |
index 7b963239f1e..00000000000 |
19 |
--- a/net-print/hplip/hplip-3.20.9-r2.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,282 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
28 |
-PYTHON_REQ_USE="threads(+),xml" |
29 |
- |
30 |
-# 14 and 15 spit out a lot of warnings about subdirs |
31 |
-WANT_AUTOMAKE="1.13" |
32 |
- |
33 |
-inherit autotools linux-info python-single-r1 readme.gentoo-r1 udev |
34 |
- |
35 |
-DESCRIPTION="HP Linux Imaging and Printing - Print, scan, fax drivers and service tools" |
36 |
-HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing" |
37 |
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz |
38 |
- https://dev.gentoo.org/~billie/distfiles/${PN}-3.20.9-patches-2.tar.xz" |
39 |
- |
40 |
-LICENSE="GPL-2" |
41 |
-SLOT="0" |
42 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
43 |
- |
44 |
-IUSE="doc fax +hpcups hpijs kde libnotify libressl -libusb0 minimal parport policykit qt5 scanner +snmp static-ppds X" |
45 |
- |
46 |
-COMMON_DEPEND=" |
47 |
- net-print/cups |
48 |
- virtual/jpeg:0 |
49 |
- hpijs? ( net-print/cups-filters[foomatic] ) |
50 |
- !minimal? ( |
51 |
- ${PYTHON_DEPS} |
52 |
- sys-apps/dbus |
53 |
- !libusb0? ( virtual/libusb:1 ) |
54 |
- libusb0? ( virtual/libusb:0 ) |
55 |
- scanner? ( |
56 |
- media-gfx/sane-backends |
57 |
- $(python_gen_cond_dep 'net-dns/avahi[${PYTHON_MULTI_USEDEP}]') |
58 |
- ) |
59 |
- snmp? ( |
60 |
- !libressl? ( dev-libs/openssl:0= ) |
61 |
- libressl? ( dev-libs/libressl:= ) |
62 |
- net-analyzer/net-snmp:= |
63 |
- $(python_gen_cond_dep 'net-dns/avahi[${PYTHON_MULTI_USEDEP}]') |
64 |
- ) |
65 |
- ) |
66 |
-" |
67 |
-BDEPEND=" |
68 |
- virtual/pkgconfig |
69 |
-" |
70 |
-DEPEND=" |
71 |
- ${COMMON_DEPEND} |
72 |
-" |
73 |
-RDEPEND=" |
74 |
- ${COMMON_DEPEND} |
75 |
- app-text/ghostscript-gpl |
76 |
- !minimal? ( |
77 |
- $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]' 'python3*') |
78 |
- kernel_linux? ( virtual/udev ) |
79 |
- $(python_gen_cond_dep ' |
80 |
- >=dev-python/dbus-python-1.2.0-r1[${PYTHON_MULTI_USEDEP}] |
81 |
- dev-python/distro[${PYTHON_MULTI_USEDEP}] |
82 |
- fax? ( dev-python/reportlab[${PYTHON_MULTI_USEDEP}] ) |
83 |
- qt5? ( |
84 |
- >=dev-python/PyQt5-5.5.1[dbus,gui,widgets,${PYTHON_MULTI_USEDEP}] |
85 |
- libnotify? ( dev-python/notify2[${PYTHON_MULTI_USEDEP}] ) |
86 |
- ) |
87 |
- scanner? ( |
88 |
- >=dev-python/reportlab-3.2[${PYTHON_MULTI_USEDEP}] |
89 |
- >=dev-python/pillow-3.1.1[${PYTHON_MULTI_USEDEP}] |
90 |
- X? ( |
91 |
- || ( |
92 |
- kde? ( kde-misc/skanlite ) |
93 |
- media-gfx/xsane |
94 |
- media-gfx/sane-frontends |
95 |
- ) |
96 |
- ) |
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 |
- |
119 |
-pkg_setup() { |
120 |
- use !minimal && python-single-r1_pkg_setup |
121 |
- |
122 |
- use scanner && ! use X && ewarn "You need USE=X for the scanner GUI." |
123 |
- |
124 |
- if ! use hpcups && ! use hpijs ; then |
125 |
- ewarn "Installing neither hpcups (USE=-hpcups) nor hpijs (USE=-hpijs) driver," |
126 |
- ewarn "which is probably not what you want." |
127 |
- ewarn "You will almost certainly not be able to print." |
128 |
- fi |
129 |
- |
130 |
- if use minimal ; then |
131 |
- ewarn "Installing driver portions only, make sure you know what you are doing." |
132 |
- ewarn "Depending on the USE flags set for hpcups or hpijs the appropiate driver" |
133 |
- ewarn "is installed. If both USE flags are set hpijs overrides hpcups." |
134 |
- else |
135 |
- use parport && linux-info_pkg_setup |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-src_prepare() { |
140 |
- default |
141 |
- |
142 |
- if use !minimal ; then |
143 |
- python_fix_shebang . |
144 |
- fi |
145 |
- |
146 |
- # Make desktop files follow the specification |
147 |
- # Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=443680 |
148 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/1080324 |
149 |
- sed -i -e '/^Categories=/s/Application;//' \ |
150 |
- -e '/^Encoding=.*/d' hplip.desktop.in || die |
151 |
- sed -i -e '/^Categories=/s/Application;//' \ |
152 |
- -e '/^Version=.*/d' \ |
153 |
- -e '/^Comment=.*/d' hplip-systray.desktop.in || die |
154 |
- |
155 |
- # Fix for Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=345725 |
156 |
- # Upstream bug: https://bugs.launchpad.net/hplip/+bug/880847, |
157 |
- # https://bugs.launchpad.net/hplip/+bug/500086 |
158 |
- local udevdir=$(get_udevdir) |
159 |
- sed -i -e "s|/etc/udev|${udevdir}|g" \ |
160 |
- $(find . -type f -exec grep -l /etc/udev {} +) || die |
161 |
- |
162 |
- # Force recognition of Gentoo distro by hp-check |
163 |
- sed -i \ |
164 |
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \ |
165 |
- installer/core_install.py || die |
166 |
- |
167 |
- eautoreconf |
168 |
-} |
169 |
- |
170 |
-src_configure() { |
171 |
- local myconf drv_build minimal_build |
172 |
- |
173 |
- if use libusb0 ; then |
174 |
- myconf="${myconf} --enable-libusb01_build" |
175 |
- else |
176 |
- myconf="${myconf} --disable-libusb01_build" |
177 |
- fi |
178 |
- |
179 |
- if use hpcups ; then |
180 |
- drv_build="$(use_enable hpcups hpcups-install)" |
181 |
- if use static-ppds ; then |
182 |
- drv_build="${drv_build} --enable-cups-ppd-install" |
183 |
- drv_build="${drv_build} --disable-cups-drv-install" |
184 |
- else |
185 |
- drv_build="${drv_build} --enable-cups-drv-install" |
186 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
187 |
- fi |
188 |
- else |
189 |
- drv_build="--disable-hpcups-install" |
190 |
- drv_build="${drv_build} --disable-cups-drv-install" |
191 |
- drv_build="${drv_build} --disable-cups-ppd-install" |
192 |
- fi |
193 |
- |
194 |
- if use hpijs ; then |
195 |
- drv_build="${drv_build} $(use_enable hpijs hpijs-install)" |
196 |
- if use static-ppds ; then |
197 |
- drv_build="${drv_build} --enable-foomatic-ppd-install" |
198 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
199 |
- else |
200 |
- drv_build="${drv_build} --enable-foomatic-drv-install" |
201 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
202 |
- fi |
203 |
- else |
204 |
- drv_build="${drv_build} --disable-hpijs-install" |
205 |
- drv_build="${drv_build} --disable-foomatic-drv-install" |
206 |
- drv_build="${drv_build} --disable-foomatic-ppd-install" |
207 |
- fi |
208 |
- |
209 |
- if use minimal ; then |
210 |
- if use hpijs ; then |
211 |
- minimal_build="--enable-hpijs-only-build" |
212 |
- else |
213 |
- minimal_build="--disable-hpijs-only-build" |
214 |
- fi |
215 |
- if use hpcups ; then |
216 |
- minimal_build="${minimal_build} --enable-hpcups-only-build" |
217 |
- else |
218 |
- minimal_build="${minimal_build} --disable-hpcups-only-build" |
219 |
- fi |
220 |
- minimal_build="${minimal_build} --disable-fax-build" |
221 |
- else |
222 |
- if use fax ; then |
223 |
- minimal_build="${minimal_build} --enable-fax-build" |
224 |
- else |
225 |
- minimal_build="${minimal_build} --disable-fax-build" |
226 |
- fi |
227 |
- fi |
228 |
- |
229 |
- # disable class driver for now |
230 |
- econf \ |
231 |
- --disable-cups11-build \ |
232 |
- --disable-lite-build \ |
233 |
- --disable-foomatic-rip-hplip-install \ |
234 |
- --disable-shadow-build \ |
235 |
- --disable-qt3 \ |
236 |
- --disable-qt4 \ |
237 |
- --disable-udev_sysfs_rules \ |
238 |
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \ |
239 |
- --with-cupsfilterdir=$(cups-config --serverbin)/filter \ |
240 |
- --with-docdir=/usr/share/doc/${PF} \ |
241 |
- --with-htmldir=/usr/share/doc/${PF}/html \ |
242 |
- ${myconf} \ |
243 |
- ${drv_build} \ |
244 |
- ${minimal_build} \ |
245 |
- --enable-hpps-install \ |
246 |
- --disable-class-driver \ |
247 |
- $(use_enable doc doc-build) \ |
248 |
- $(use_enable !minimal gui-build) \ |
249 |
- $(use_enable !minimal dbus-build) \ |
250 |
- $(use_enable parport pp-build) \ |
251 |
- $(use_enable policykit) \ |
252 |
- $(use_enable qt5) \ |
253 |
- $(use_enable scanner scan-build) \ |
254 |
- $(use_enable snmp network-build) |
255 |
- |
256 |
- # hpijs ppds are created at configure time but are not installed (3.17.11) |
257 |
- |
258 |
- # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip |
259 |
- # The hpcups driver does not use foomatic-rip |
260 |
- #local i |
261 |
- #for i in ppd/hpijs/*.ppd.gz ; do |
262 |
- # rm -f ${i}.temp || die |
263 |
- # gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ |
264 |
- # gzip > ${i}.temp || die |
265 |
- # mv ${i}.temp ${i} || die |
266 |
- #done |
267 |
-} |
268 |
- |
269 |
-src_install() { |
270 |
- # Disable parallel install |
271 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=578018 |
272 |
- emake -j1 DESTDIR="${D}" install |
273 |
- einstalldocs |
274 |
- # default |
275 |
- |
276 |
- # Installed by sane-backends |
277 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=201023 |
278 |
- rm -f "${ED}"/etc/sane.d/dll.conf || die |
279 |
- |
280 |
- # Remove desktop and autostart files |
281 |
- # Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=638770 |
282 |
- use qt5 || { |
283 |
- rm -Rf "${ED}"/usr/share/applications "${ED}"/etc/xdg |
284 |
- } |
285 |
- |
286 |
- rm -f "${ED}"/usr/share/doc/${PF}/{copyright,README_LIBJPG,COPYING} || die |
287 |
- rmdir --ignore-fail-on-non-empty "${ED}"/usr/share/doc/${PF}/ || die |
288 |
- |
289 |
- # Remove hal fdi files |
290 |
- rm -rf "${ED}"/usr/share/hal || die |
291 |
- |
292 |
- find "${D}" -name '*.la' -delete || die |
293 |
- |
294 |
- if use !minimal ; then |
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 |
-} |