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: Fri, 28 Oct 2016 18:56:47
Message-Id: 1477680989.7e6d69424774c9a6650a3c5f92f09ed4a877b5bb.mrueg@gentoo
1 commit: 7e6d69424774c9a6650a3c5f92f09ed4a877b5bb
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 28 18:56:29 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 28 18:56:29 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e6d6942
7
8 net-print/hplip-plugin: Version bump to 3.6.10
9
10 Package-Manager: portage-2.3.2
11
12 net-print/hplip-plugin/Manifest | 1 +
13 net-print/hplip-plugin/hplip-plugin-3.16.10.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 6455078..201224d 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.10-plugin.run 2061876 SHA256 84ad87ef986fccc3c07c163a3eb494eda8971bdcd0e967c7ad7f60b6fd70527e SHA512 9778431b641c8566ae7bce5c812d7c3f95e3d6b166bc413f4e3b534527cd2a0871495a3b74049f74441a1f450f5e04f8895055aa5982f74bfde35af1ee512e33 WHIRLPOOL 701776290398a8bae98a69af60303b6073593d574c81c22a6ef115370fa6fdbb43b5b1250a2b3f167be1e57ad6f29b63fed51bdd1b22a070140358043e190099
22 DIST hplip-3.16.3-plugin.run 2084271 SHA256 b7edef2a1c5c0a5e001deb4a18c0ef7202e653596e97144b8908ae093818070f SHA512 2ae8aeb40c2604a2c6b9725700f9addf7a82e819d603631158a5d5feac931248e53e7533178100df1fc12b0dc2340cb3ae0d85f145cd023a311f77bbe67e7c7f WHIRLPOOL 928117f862030eca9c3e5813eb8c4db66570923695b0c7af17df1992f339d2478f42af67ca0e0eb8cfa1d7425b522082fde3b8c829c3f5167e1ec503c95a986b
23 DIST hplip-3.16.9-plugin.run 2084344 SHA256 7394ab79dd943bb530a7117266dec3f280ac0f825c4d12831c14eec922349c9f SHA512 fdf6fd5d2ff458a5c68bce039914c72d1b118dd8909ef0333861ac26472801185bea43947b983fe164b1a1f80e99800fe3e098e045a0d3c7cbebd03ab83bcbe0 WHIRLPOOL a20d5c582b817eeb1900f6e2b1d650ff63b6eb6f08c4088fc462b66bfeafcbaa4122560fda87cdd0b85d7577a092abd2213c0606d91523306f6ad6349000bc58
24
25 diff --git a/net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild b/net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild
26 new file mode 100644
27 index 00000000..8408448
28 --- /dev/null
29 +++ b/net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI="6"
36 +
37 +inherit udev unpacker
38 +
39 +DESCRIPTION="Proprietary plugins and firmware for HPLIP"
40 +HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
41 +SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run"
42 +
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_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 +}