1 |
commit: c23a5218ac3af87a273a01d165129c2b9ccc95ac |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 30 22:05:02 2020 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 30 22:05:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23a5218 |
7 |
|
8 |
net-print/hplip-plugin: Version bump to 3.20.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.20 |
11 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
12 |
|
13 |
net-print/hplip-plugin/Manifest | 1 + |
14 |
net-print/hplip-plugin/hplip-plugin-3.20.2.ebuild | 71 +++++++++++++++++++++++ |
15 |
2 files changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest |
18 |
index 1547c6d7f86..836977931cf 100644 |
19 |
--- a/net-print/hplip-plugin/Manifest |
20 |
+++ b/net-print/hplip-plugin/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST hplip-3.19.12-plugin.run 11512079 BLAKE2B 534cbba51b2254f8227611b8f0449e100361fb445400f664e43e30412be8eb554bb35c2fe260d45cd5ad742b083af6d551532a9d14585029b0ff93675fab578a SHA512 ac2022d555f5084d5bf1e4519ddbb29828e9ca385aa6dff818ae9e79b60b4b2745e31ad4146cb01bca3747fae0d61b96e4a823b81179d2e2c55a643831165e4b |
23 |
+DIST hplip-3.20.2-plugin.run 11517273 BLAKE2B 2e1a4829fad70c575ee86b02b80057cf5e3bd7d6ef2e5d76a532290b699ec908ef57e568938607ce8ee7ff8150aa4096ce6425023ce671150b7fac69310ec82b SHA512 632e9d5a0381b568fb1766df493134b9d8c53c13bd5da1e7e06fdf8369d8f30205378e64fec3372104b44ce6ed6a5e9c1f587914f0ad6454a750d07d384e5d28 |
24 |
|
25 |
diff --git a/net-print/hplip-plugin/hplip-plugin-3.20.2.ebuild b/net-print/hplip-plugin/hplip-plugin-3.20.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..31513651013 |
28 |
--- /dev/null |
29 |
+++ b/net-print/hplip-plugin/hplip-plugin-3.20.2.ebuild |
30 |
@@ -0,0 +1,71 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit unpacker |
37 |
+ |
38 |
+DESCRIPTION="Proprietary plugins and firmware for HPLIP" |
39 |
+HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing/plugins" |
40 |
+SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run" |
41 |
+LICENSE="hplip-plugin" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm ~x86" |
44 |
+IUSE="" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ ~net-print/hplip-${PV} |
48 |
+ virtual/libusb:0 |
49 |
+ virtual/udev |
50 |
+" |
51 |
+DEPEND="" |
52 |
+ |
53 |
+S=${WORKDIR} |
54 |
+ |
55 |
+HPLIP_HOME=/usr/share/hplip |
56 |
+ |
57 |
+# Binary prebuilt package |
58 |
+QA_PRESTRIPPED=" |
59 |
+ /usr/share/hplip/fax/plugins/fax_marvell.so |
60 |
+ /usr/share/hplip/prnt/plugins/hbpl1.so |
61 |
+ /usr/share/hplip/prnt/plugins/lj.so |
62 |
+ /usr/share/hplip/scan/plugins/bb_escl.so |
63 |
+ /usr/share/hplip/scan/plugins/bb_marvell.so |
64 |
+ /usr/share/hplip/scan/plugins/bb_soapht.so |
65 |
+ /usr/share/hplip/scan/plugins/bb_soap.so |
66 |
+" |
67 |
+ |
68 |
+# License does not allow us to redistribute the "source" package |
69 |
+RESTRICT="mirror" |
70 |
+ |
71 |
+src_install() { |
72 |
+ local hplip_arch |
73 |
+ case "${ARCH}" in |
74 |
+ amd64) hplip_arch="x86_64" ;; |
75 |
+ arm) hplip_arch="arm32" ;; |
76 |
+ x86) hplip_arch="x86_32" ;; |
77 |
+ *) die "Unsupported architecture." ;; |
78 |
+ esac |
79 |
+ |
80 |
+ insinto "${HPLIP_HOME}"/data/firmware |
81 |
+ doins *.fw.gz |
82 |
+ |
83 |
+ for plugin in *-${hplip_arch}.so; do |
84 |
+ local plugin_type=prnt |
85 |
+ case "${plugin}" in |
86 |
+ fax_*) plugin_type=fax ;; |
87 |
+ bb_*) plugin_type=scan ;; |
88 |
+ esac |
89 |
+ |
90 |
+ exeinto "${HPLIP_HOME}"/${plugin_type}/plugins |
91 |
+ newexe ${plugin} ${plugin/-${hplip_arch}} |
92 |
+ done |
93 |
+ |
94 |
+ insinto /var/lib/hp |
95 |
+ newins - hplip.state <<-_EOF_ |
96 |
+ [plugin] |
97 |
+ installed = 1 |
98 |
+ eula = 1 |
99 |
+ version = ${PV} |
100 |
+ _EOF_ |
101 |
+} |