1 |
commit: 14e2fc64adaf7a714f0f993d3fa7c094efd95b86 |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 15 18:28:58 2019 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 15 18:28:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14e2fc64 |
7 |
|
8 |
net-print/hplip-plugin: Add back hplip-plugin-3.18.12. |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
12 |
|
13 |
net-print/hplip-plugin/Manifest | 1 + |
14 |
net-print/hplip-plugin/hplip-plugin-3.18.12.ebuild | 69 ++++++++++++++++++++++ |
15 |
2 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest |
18 |
index e9cd425947d..f860bd13845 100644 |
19 |
--- a/net-print/hplip-plugin/Manifest |
20 |
+++ b/net-print/hplip-plugin/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
+DIST hplip-3.18.12-plugin.run 10486821 BLAKE2B e48940b1b5fe94dc216383b63bee7807bce9ad265b7c454c201c0ed22ec1964e6c5adf653c3c230789c042cffaaf50bd604bae6f66f407a85f98248934307158 SHA512 82b90aa8245f787e088a1bebfa7892a7f2b97fd04b3702c46eed27306640e562aeec63b4b5b45c24943abe4672f2627d1821bdcdf58a5c1ac4e1d06c7270535f |
23 |
DIST hplip-3.18.6-plugin.run 2065663 BLAKE2B 501a37dd504250225ddad9712259e0e1b564aa034e433f24d277c5609fa95580417da1a0ae040a4624ff48806a3b34ec56ff31aed843e9f0f0b68b304d2ebd9e SHA512 7b5eb2f43dd014df25ccd9e72dd7efc069db47921f2de650b2ff993dbee60056063edeee6593be7d35019212daf623fff9696b13508a808db92128f5c81bde76 |
24 |
DIST hplip-3.19.6-plugin.run 11517158 BLAKE2B c44707e29b104b45c110729c70ebeba1f392ad753eb98d8677657f735e547cdecfab357b348a30545274b51c18249ddb9102df49aa73d726a8e9145a302a8a0c SHA512 3636d655ba289331572f0762a5de2e0bf2f3108ac3f7ca9cb8bbec126942be954fe9c07c882bd8272e30ac46d67231d86a3c4249a6fe31e2d3e8d5e568bbbd8b |
25 |
|
26 |
diff --git a/net-print/hplip-plugin/hplip-plugin-3.18.12.ebuild b/net-print/hplip-plugin/hplip-plugin-3.18.12.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..7714ffa082d |
29 |
--- /dev/null |
30 |
+++ b/net-print/hplip-plugin/hplip-plugin-3.18.12.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit udev 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="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run" |
42 |
+SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run" |
43 |
+LICENSE="hplip-plugin" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ ~net-print/hplip-${PV} |
50 |
+ virtual/udev |
51 |
+" |
52 |
+DEPEND="" |
53 |
+ |
54 |
+S=${WORKDIR} |
55 |
+ |
56 |
+HPLIP_HOME=/usr/share/hplip |
57 |
+ |
58 |
+# Binary prebuilt package |
59 |
+QA_PRESTRIPPED=" |
60 |
+ /usr/share/hplip/fax/plugins/fax_marvell.so |
61 |
+ /usr/share/hplip/prnt/plugins/hbpl1.so |
62 |
+ /usr/share/hplip/prnt/plugins/lj.so |
63 |
+ /usr/share/hplip/scan/plugins/bb_escl.so |
64 |
+ /usr/share/hplip/scan/plugins/bb_marvell.so |
65 |
+ /usr/share/hplip/scan/plugins/bb_soapht.so |
66 |
+ /usr/share/hplip/scan/plugins/bb_soap.so |
67 |
+" |
68 |
+ |
69 |
+# License does not allow us to redistribute the "source" package |
70 |
+RESTRICT="mirror" |
71 |
+ |
72 |
+src_unpack() { |
73 |
+ unpack_makeself "hplip-${PV}-plugin.run" |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32') |
78 |
+ |
79 |
+ insinto "${HPLIP_HOME}"/data/firmware |
80 |
+ doins *.fw.gz |
81 |
+ |
82 |
+ for plugin in *-${hplip_arch}.so; do |
83 |
+ local plugin_type=prnt |
84 |
+ case "${plugin}" in |
85 |
+ fax_*) plugin_type=fax ;; |
86 |
+ bb_*) plugin_type=scan ;; |
87 |
+ esac |
88 |
+ |
89 |
+ exeinto "${HPLIP_HOME}"/${plugin_type}/plugins |
90 |
+ newexe ${plugin} ${plugin/-${hplip_arch}} |
91 |
+ done |
92 |
+ |
93 |
+ mkdir -p "${ED}/var/lib/hp/" |
94 |
+ cat >> "${ED}/var/lib/hp/hplip.state" <<-_EOF_ |
95 |
+ [plugin] |
96 |
+ installed = 1 |
97 |
+ eula = 1 |
98 |
+ version = ${PV} |
99 |
+ _EOF_ |
100 |
+} |