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: Sun, 22 Oct 2017 00:15:54
Message-Id: 1508631325.6e531dc75208175273f93c05e404ba7b6ed01285.mrueg@gentoo
1 commit: 6e531dc75208175273f93c05e404ba7b6ed01285
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 22 00:15:25 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 22 00:15:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e531dc7
7
8 net-print/hplip-plugin: Version bump to 3.17.10
9
10 Package-Manager: Portage-2.3.12, Repoman-2.3.3
11
12 net-print/hplip-plugin/Manifest | 1 +
13 net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild | 70 ++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
17 index 0cc7f8f6488..92f157b9b88 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.10-plugin.run 2062947 SHA256 2fd26f6d5b437a4f1aa9f560e816ce094aea73becdf2f2b976ef46406d1b551d SHA512 98eef413b122527c4a7860b621baf11c04ec9d7f4e43ce4f36e7822a633c64b3d98cbc86cd7d305c74d9a49a4159ebd7280d652e1ba430cad4cc70f66d23ee07 WHIRLPOOL d087e7f857f8bc0a7a0b4f44f07ca15feaff6847cd719a2cb48240dd3aca7df93932eef7a849598ad313b4373e9f50b61bf3c0846c64d1002f1cfd9470a27717
23 DIST hplip-3.17.9-plugin.run 2059585 SHA256 98f717266340baa15e0385dc4928cc9c127a9403b72749f4899657cef8dfe883 SHA512 a7a9ee8b7edda3641b5c3aa403570aad72ce9cd42cdd4c64904a0be409cefa838712390c7f535482028ac2d494c711baef77f2f601835b01591fa673272c01ba WHIRLPOOL e6615652382d11ddbe646b793d1f5aff61872ab4f30925855be66faa4d8ebace113a43e369e1b4d199bb65d3bd0315de32cd49d264c52f6d47e7f17990f0263f
24
25 diff --git a/net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild b/net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild
26 new file mode 100644
27 index 00000000000..8617df53c8d
28 --- /dev/null
29 +++ b/net-print/hplip-plugin/hplip-plugin-3.17.10.ebuild
30 @@ -0,0 +1,70 @@
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 +SRC_URI="http://hplipopensource.com/hplip-web/plugin/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_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 +}