Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/alexxy:master commit in: net-print/hplip-plugin/
Date: Sun, 03 Jan 2016 14:56:55
Message-Id: 1451833000.f8693eecbb03cc39c28c0e30314b8dda28e51822.alexxy@gentoo
1 commit: f8693eecbb03cc39c28c0e30314b8dda28e51822
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 3 14:56:40 2016 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 3 14:56:40 2016 +0000
6 URL: https://gitweb.gentoo.org/dev/alexxy.git/commit/?id=f8693eec
7
8 net-print/hplip-plugin: Initial import from calculate overlay
9
10 Package-Manager: portage-2.2.26
11 RepoMan-Options: --force
12
13 net-print/hplip-plugin/Manifest | 1 +
14 net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild | 69 ++++++++++++++++++++++
15 net-print/hplip-plugin/metadata.xml | 8 +++
16 3 files changed, 78 insertions(+)
17
18 diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
19 new file mode 100644
20 index 0000000..cbc603b
21 --- /dev/null
22 +++ b/net-print/hplip-plugin/Manifest
23 @@ -0,0 +1 @@
24 +DIST hplip-3.15.11-plugin.run 2084268 SHA256 a986ca52c6436f2ce87ad6a11fe0d7880797fbb0d940f23f6a928434bc193102 SHA512 bb36e6c9460bb3afa1b88ae93ba344fd2b9ec8194bd0766c1998657068b57540cbab2558180651e5492a338d7aefa23f203aa1190e39e22cfb51b7fda1383096 WHIRLPOOL 9fef992e0a32566d414fec83af49700303634c3e3fe0bc7667423f91fcd16bfc75cbbcba77914e261d773ad8fe2efa27eaac1a662731e87591758cbc713159c2
25
26 diff --git a/net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild b/net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild
27 new file mode 100644
28 index 0000000..e296af2
29 --- /dev/null
30 +++ b/net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild
31 @@ -0,0 +1,69 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI="5"
37 +
38 +inherit udev unpacker
39 +
40 +DESCRIPTION="Proprietary plugins and firmware for HPLIP"
41 +HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
42 +SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run"
43 +
44 +LICENSE="hplip-plugin"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE=""
48 +
49 +QA_PREBUILT="*"
50 +
51 +RDEPEND="
52 + ~net-print/hplip-${PV}
53 + virtual/udev
54 +"
55 +DEPEND=""
56 +
57 +S=${WORKDIR}
58 +
59 +HPLIP_HOME=/usr/share/hplip
60 +
61 +# Binary prebuilt package
62 +QA_PRESTRIPPED="
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 +/usr/share/hplip/fax/plugins/fax_marvell.so
67 +/usr/share/hplip/prnt/plugins/lj.so"
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 +}
101
102 diff --git a/net-print/hplip-plugin/metadata.xml b/net-print/hplip-plugin/metadata.xml
103 new file mode 100644
104 index 0000000..247f458
105 --- /dev/null
106 +++ b/net-print/hplip-plugin/metadata.xml
107 @@ -0,0 +1,8 @@
108 +<?xml version="1.0" encoding="UTF-8"?>
109 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
110 +<pkgmetadata>
111 + <maintainer>
112 + <email>alexxy@g.o</email>
113 + <name>Alexey Shvetsov</name>
114 + </maintainer>
115 +</pkgmetadata>