Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/hplip-plugin/
Date: Thu, 29 Nov 2018 14:43:29
Message-Id: 1543502587.f7f7757f2dada9aa310e1b95f238a30f94b75bc7.mrueg@gentoo
1 commit: f7f7757f2dada9aa310e1b95f238a30f94b75bc7
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 29 14:43:07 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 29 14:43:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7f7757f
7
8 net-print/hplip-plugin: Version bump to 3.8.10
9
10 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
11 Package-Manager: Portage-2.3.52, Repoman-2.3.11
12
13 net-print/hplip-plugin/Manifest | 1 +
14 net-print/hplip-plugin/hplip-plugin-3.18.10.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 7fb55e63cce..6f2825fae96 100644
19 --- a/net-print/hplip-plugin/Manifest
20 +++ b/net-print/hplip-plugin/Manifest
21 @@ -1 +1,2 @@
22 +DIST hplip-3.18.10-plugin.run 7324725 BLAKE2B 62e7ba436a32c70a0ad0ae009f192035e1152689ce0e032ec45fae11e8ff0470a2c04a5b243e1857dceb6bd65de2381291f6b1bdcdf8fae5ca6ebb92da15823c SHA512 86f393689d1afbaa43ec049d7c1150acd210ce100adbae8ec6f354d215d8bf2f6cc26acefdab840f933b2f5e11f8a731b79b99b528b7a3e455f283b0f7438a07
23 DIST hplip-3.18.6-plugin.run 2065663 BLAKE2B 501a37dd504250225ddad9712259e0e1b564aa034e433f24d277c5609fa95580417da1a0ae040a4624ff48806a3b34ec56ff31aed843e9f0f0b68b304d2ebd9e SHA512 7b5eb2f43dd014df25ccd9e72dd7efc069db47921f2de650b2ff993dbee60056063edeee6593be7d35019212daf623fff9696b13508a808db92128f5c81bde76
24
25 diff --git a/net-print/hplip-plugin/hplip-plugin-3.18.10.ebuild b/net-print/hplip-plugin/hplip-plugin-3.18.10.ebuild
26 new file mode 100644
27 index 00000000000..d598946893c
28 --- /dev/null
29 +++ b/net-print/hplip-plugin/hplip-plugin-3.18.10.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2018 Gentoo Authors
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="https://developers.hp.com/hp-linux-imaging-and-printing/plugins"
40 +#SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run"
41 +SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run"
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 +}