Gentoo Archives: gentoo-commits

From: Daniel Pielmeier <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/hplip-plugin/
Date: Sat, 26 Sep 2020 10:36:31
Message-Id: 1601116553.9d0b50677352d435832143ba3f4bc797974e9837.billie@gentoo
1 commit: 9d0b50677352d435832143ba3f4bc797974e9837
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 10:34:50 2020 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 10:35:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d0b5067
7
8 net-print/hplip-plugin: Partial revert of commit '0fe5854ccdd'.
9
10 Restore hplip-plugin-3.19.12 to keep a working version for users
11 affected by bug #727688.
12
13 Bug: https://bugs.gentoo.org/727688
14 Package-Manager: Portage-3.0.4, Repoman-3.0.1
15 RepoMan-Options: --force
16 Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
17
18 net-print/hplip-plugin/Manifest | 1 +
19 net-print/hplip-plugin/hplip-plugin-3.19.12.ebuild | 63 ++++++++++++++++++++++
20 2 files changed, 64 insertions(+)
21
22 diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
23 index 4764154b084..f22bf52107c 100644
24 --- a/net-print/hplip-plugin/Manifest
25 +++ b/net-print/hplip-plugin/Manifest
26 @@ -1 +1,2 @@
27 +DIST hplip-3.19.12-plugin.run 11512079 BLAKE2B 534cbba51b2254f8227611b8f0449e100361fb445400f664e43e30412be8eb554bb35c2fe260d45cd5ad742b083af6d551532a9d14585029b0ff93675fab578a SHA512 ac2022d555f5084d5bf1e4519ddbb29828e9ca385aa6dff818ae9e79b60b4b2745e31ad4146cb01bca3747fae0d61b96e4a823b81179d2e2c55a643831165e4b
28 DIST hplip-3.20.6-plugin.run 11514108 BLAKE2B 83e2d26fb397c5c5df1fc4371bfc2798cea049965499b6f1ad5daa05b44b74f51ba9deb933b564dfa47a8d0ef79d4921c3a96b9531730317742e1c5651d7b012 SHA512 6f9e5c92e302f4068abbe9134cf7f8081fcbe98568c9b75d6a668843b76c83afd0f4fbb3d90d3ac775c719ab8e2dca5beedd887ef6d072bd8ee0eb48d42521ed
29
30 diff --git a/net-print/hplip-plugin/hplip-plugin-3.19.12.ebuild b/net-print/hplip-plugin/hplip-plugin-3.19.12.ebuild
31 new file mode 100644
32 index 00000000000..94c7a5c5514
33 --- /dev/null
34 +++ b/net-print/hplip-plugin/hplip-plugin-3.19.12.ebuild
35 @@ -0,0 +1,63 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit unpacker
42 +
43 +DESCRIPTION="Proprietary plugins and firmware for HPLIP"
44 +HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing/plugins"
45 +SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run"
46 +LICENSE="hplip-plugin"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~x86"
49 +IUSE=""
50 +
51 +RDEPEND="
52 + ~net-print/hplip-${PV}
53 + virtual/libusb:0
54 + virtual/udev
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 + fax_*) plugin_type=fax ;;
84 + bb_*) plugin_type=scan ;;
85 + esac
86 +
87 + exeinto "${HPLIP_HOME}"/${plugin_type}/plugins
88 + newexe ${plugin} ${plugin/-${hplip_arch}}
89 + done
90 +
91 + insinto /var/lib/hp
92 + newins - hplip.state <<-_EOF_
93 + [plugin]
94 + installed = 1
95 + eula = 1
96 + version = ${PV}
97 + _EOF_
98 +}