1 |
commit: 6c28873d81cc0683830afeda44851ece2efc15b9 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 17 23:12:32 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 17 23:12:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c28873d |
7 |
|
8 |
net-print/hplip-plugin: Version bump to 3.21.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
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.21.4.ebuild | 72 +++++++++++++++++++++++ |
15 |
2 files changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest |
18 |
index 2d43c2579ec..53c5ac1fc39 100644 |
19 |
--- a/net-print/hplip-plugin/Manifest |
20 |
+++ b/net-print/hplip-plugin/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST hplip-3.20.11-plugin.run 11514293 BLAKE2B b3b7698a45e5e68a25ec1216e736484d26546b657f4a519a153acf0280847667e7ca81afc988f722668746281857d51d9e1703857514ffe5b57dea85f2bae4d3 SHA512 9075c1ac8e8f6e12d33b81b633025259f54352ea00271eec07ee898fd9a164445519608fc9ea61a7157845a4a03f87c28f486c7994f0d7db81d11d3fe51f1876 |
23 |
DIST hplip-3.21.2-plugin.run 11514233 BLAKE2B 262f23c34632f7ba4a9c6e1c4533d0fd44b025e476c0f28f0fc68bc401430c503233583ae381d6c74a89a996b750603910000c6fdc6b0b606e32d56c82ed07f4 SHA512 62f3b6e369bdd1b2145f814901314c78ae5d7426734c92b0511f8ea4a925e24880875a1cfd1623ef800dcfdf3cf5b1c5d83032a19ca200547a4555b0d944f8e6 |
24 |
+DIST hplip-3.21.4-plugin.run 11514018 BLAKE2B a12881a1e4795fb1f5294a8b164f72aa38fd2365fe07853d0a16c688b38835f852e6317992541920fdc299ee84a7b725e70788e5759acbffb173d2604328468a SHA512 0a01dcbafe641688fd21e4f1a1a4520eadd5a1312a913c6870054bbf5b43d22310dea3a21a8e37e645f5637d808ebaeeaa4d64346e73b97c6dc1cba25733a8de |
25 |
|
26 |
diff --git a/net-print/hplip-plugin/hplip-plugin-3.21.4.ebuild b/net-print/hplip-plugin/hplip-plugin-3.21.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..cca0faecc4c |
29 |
--- /dev/null |
30 |
+++ b/net-print/hplip-plugin/hplip-plugin-3.21.4.ebuild |
31 |
@@ -0,0 +1,72 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit unpacker |
38 |
+ |
39 |
+DESCRIPTION="Proprietary plugins and firmware for HPLIP" |
40 |
+HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing/plugins" |
41 |
+SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run" |
42 |
+LICENSE="hplip-plugin" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~x86" |
45 |
+IUSE="orblite" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ ~net-print/hplip-${PV} |
49 |
+ virtual/udev |
50 |
+ orblite? ( |
51 |
+ media-gfx/sane-backends |
52 |
+ >=sys-libs/glibc-2.26 |
53 |
+ virtual/libusb:0 |
54 |
+ ) |
55 |
+" |
56 |
+DEPEND="" |
57 |
+ |
58 |
+S=${WORKDIR} |
59 |
+ |
60 |
+HPLIP_HOME=/usr/share/hplip |
61 |
+ |
62 |
+# Binary prebuilt package |
63 |
+QA_PREBUILT="${HPLIP_HOME}/*.so" |
64 |
+ |
65 |
+# License does not allow us to redistribute the "source" package |
66 |
+RESTRICT="mirror" |
67 |
+ |
68 |
+src_install() { |
69 |
+ local hplip_arch |
70 |
+ case "${ARCH}" in |
71 |
+ amd64) hplip_arch="x86_64" ;; |
72 |
+ arm) hplip_arch="arm32" ;; |
73 |
+ x86) hplip_arch="x86_32" ;; |
74 |
+ *) die "Unsupported architecture." ;; |
75 |
+ esac |
76 |
+ |
77 |
+ insinto "${HPLIP_HOME}"/data/firmware |
78 |
+ doins *.fw.gz |
79 |
+ |
80 |
+ for plugin in *-${hplip_arch}.so; do |
81 |
+ local plugin_type=prnt |
82 |
+ case "${plugin}" in |
83 |
+ bb_orblite-*) |
84 |
+ use orblite || continue |
85 |
+ plugin_type=scan ;; |
86 |
+ bb_*) |
87 |
+ plugin_type=scan ;; |
88 |
+ fax_*) |
89 |
+ plugin_type=fax ;; |
90 |
+ esac |
91 |
+ |
92 |
+ exeinto "${HPLIP_HOME}"/${plugin_type}/plugins |
93 |
+ newexe ${plugin} ${plugin/-${hplip_arch}} |
94 |
+ done |
95 |
+ |
96 |
+ insinto /var/lib/hp |
97 |
+ newins - hplip.state <<-_EOF_ |
98 |
+ [plugin] |
99 |
+ installed = 1 |
100 |
+ eula = 1 |
101 |
+ version = ${PV} |
102 |
+ _EOF_ |
103 |
+} |