1 |
commit: 8c6a8357b9f29271629103919400202d96b7d2f9 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 30 15:50:48 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 30 15:50:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c6a8357 |
7 |
|
8 |
net-print/hplip-plugin: Version bump to 3.8.12 |
9 |
|
10 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
11 |
Signed-off-by: Manuel Rüger <mrueg <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 6f2825fae96..d63044f17ae 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.10-plugin.run 7324725 BLAKE2B 62e7ba436a32c70a0ad0ae009f192035e1152689ce0e032ec45fae11e8ff0470a2c04a5b243e1857dceb6bd65de2381291f6b1bdcdf8fae5ca6ebb92da15823c SHA512 86f393689d1afbaa43ec049d7c1150acd210ce100adbae8ec6f354d215d8bf2f6cc26acefdab840f933b2f5e11f8a731b79b99b528b7a3e455f283b0f7438a07 |
23 |
+DIST hplip-3.18.12-plugin.run 10486821 BLAKE2B e48940b1b5fe94dc216383b63bee7807bce9ad265b7c454c201c0ed22ec1964e6c5adf653c3c230789c042cffaaf50bd604bae6f66f407a85f98248934307158 SHA512 82b90aa8245f787e088a1bebfa7892a7f2b97fd04b3702c46eed27306640e562aeec63b4b5b45c24943abe4672f2627d1821bdcdf58a5c1ac4e1d06c7270535f |
24 |
DIST hplip-3.18.6-plugin.run 2065663 BLAKE2B 501a37dd504250225ddad9712259e0e1b564aa034e433f24d277c5609fa95580417da1a0ae040a4624ff48806a3b34ec56ff31aed843e9f0f0b68b304d2ebd9e SHA512 7b5eb2f43dd014df25ccd9e72dd7efc069db47921f2de650b2ff993dbee60056063edeee6593be7d35019212daf623fff9696b13508a808db92128f5c81bde76 |
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..d598946893c |
29 |
--- /dev/null |
30 |
+++ b/net-print/hplip-plugin/hplip-plugin-3.18.12.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2018 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 |
+} |