1 |
commit: 3f81a23c53e58c2ff03ecacb7359388da9fd7729 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 19 22:38:49 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 19 22:38:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f81a23c |
7 |
|
8 |
net-print/hplip-plugin: Version bump to 3.17.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
net-print/hplip-plugin/Manifest | 1 + |
13 |
net-print/hplip-plugin/hplip-plugin-3.17.6.ebuild | 69 +++++++++++++++++++++++ |
14 |
2 files changed, 70 insertions(+) |
15 |
|
16 |
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest |
17 |
index 309f536a208..354ec9b7107 100644 |
18 |
--- a/net-print/hplip-plugin/Manifest |
19 |
+++ b/net-print/hplip-plugin/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST hplip-3.16.3-plugin.run 2084271 SHA256 b7edef2a1c5c0a5e001deb4a18c0ef7202e653596e97144b8908ae093818070f SHA512 2ae8aeb40c2604a2c6b9725700f9addf7a82e819d603631158a5d5feac931248e53e7533178100df1fc12b0dc2340cb3ae0d85f145cd023a311f77bbe67e7c7f WHIRLPOOL 928117f862030eca9c3e5813eb8c4db66570923695b0c7af17df1992f339d2478f42af67ca0e0eb8cfa1d7425b522082fde3b8c829c3f5167e1ec503c95a986b |
22 |
DIST hplip-3.17.4-plugin.run 2059636 SHA256 d7fc1bd64a6b8c2ff87605ea92bf65a42a0702261800712892d8f14d247e430b SHA512 59e326178cac54380b2c1d0b645922537866aa765644d2b590019956f793638cf384f09a0259230ff8fb4d597eabba5a9c58822c60ef3d7ad6fba9f52e5a3fe3 WHIRLPOOL 91a8f02c04955d581d573bc3ca0094043b1b6f839f9d21a2d0a2d9fde8e8579e9a4cf7d8ed6c1b252aa4efea9c5b6a4361abaf59ded74899c37e8489e8df8b2b |
23 |
+DIST hplip-3.17.6-plugin.run 2059641 SHA256 7ba9377c6ea4ed2a498963dc53a400e3015374bd376dddb5e3248aeabb3aee28 SHA512 a04145a5512ceecc0d35b06846050507afb0905f865878f166f646de7f75368ea9392cc7daea9a0fbec236f6ea65192915f4be0196b005ce7a28b2807185191e WHIRLPOOL f0a02f1254e849c9b2df58ddcbbc1d91c4e496d41fae909245eb60ed3e2f1ac737b89bb4b7d5dbf75cd465d55d1a1ec2fcb0d3df1597addba9ffabaedc39801d |
24 |
|
25 |
diff --git a/net-print/hplip-plugin/hplip-plugin-3.17.6.ebuild b/net-print/hplip-plugin/hplip-plugin-3.17.6.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..ab7649d1961 |
28 |
--- /dev/null |
29 |
+++ b/net-print/hplip-plugin/hplip-plugin-3.17.6.ebuild |
30 |
@@ -0,0 +1,69 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+inherit udev unpacker |
37 |
+ |
38 |
+DESCRIPTION="Proprietary plugins and firmware for HPLIP" |
39 |
+HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
40 |
+SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run" |
41 |
+ |
42 |
+LICENSE="hplip-plugin" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ ~net-print/hplip-${PV} |
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_unpack() { |
72 |
+ unpack_makeself "hplip-${PV}-plugin.run" |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32') |
77 |
+ |
78 |
+ insinto "${HPLIP_HOME}"/data/firmware |
79 |
+ doins *.fw.gz |
80 |
+ |
81 |
+ for plugin in *-${hplip_arch}.so; do |
82 |
+ local plugin_type=prnt |
83 |
+ case "${plugin}" in |
84 |
+ fax_*) plugin_type=fax ;; |
85 |
+ bb_*) plugin_type=scan ;; |
86 |
+ esac |
87 |
+ |
88 |
+ exeinto "${HPLIP_HOME}"/${plugin_type}/plugins |
89 |
+ newexe ${plugin} ${plugin/-${hplip_arch}} |
90 |
+ done |
91 |
+ |
92 |
+ mkdir -p "${ED}/var/lib/hp/" |
93 |
+ cat >> "${ED}/var/lib/hp/hplip.state" <<-_EOF_ |
94 |
+ [plugin] |
95 |
+ installed = 1 |
96 |
+ eula = 1 |
97 |
+ version = ${PV} |
98 |
+ _EOF_ |
99 |
+} |