commit:     c764ff70b6c5a098001a43642eaf3198fcbd53da
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  2 20:48:24 2023 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jul  2 20:48:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c764ff70

net-print/hplip-plugin: Version bump to 3.23.5

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 net-print/hplip-plugin/Manifest                   |  1 +
 net-print/hplip-plugin/hplip-plugin-3.23.5.ebuild | 71 +++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
index 9121b8b188ca..b23736265d16 100644
--- a/net-print/hplip-plugin/Manifest
+++ b/net-print/hplip-plugin/Manifest
@@ -1 +1,2 @@
 DIST hplip-3.23.3-plugin.run 11491593 BLAKE2B 
94ba1cf92661f738f19d0c1c42b513569dad7815aeb9dad2d791f68f8ee893ca380fab2c7ff2b1fb9527851d288ec2993875952d889dac0e963b6f19c201d484
 SHA512 
048c545869f9679daa581b63236d57fbc362c39a4f3f6c6afe66552ac1b2def1563ec5b19d3feda44dbd564e2b0f2794833b24752a6139dc77d848146e283074
+DIST hplip-3.23.5-plugin.run 11491464 BLAKE2B 
78f2f5cb60dc273d9d5c26909b277d36379bb345f12b2c4ddb2ba0542cd090872452f055b02d713f84b753f2418ee5a07a9a6852c256078747b30a15d7a0f352
 SHA512 
73389d295c21bc2c49b3aaa130f04784890eb72b3ca02fe1967b48ef1153205bd625c8efee103d96e1abbc7a4550f028153e94351f9437683d2579d910807dd4

diff --git a/net-print/hplip-plugin/hplip-plugin-3.23.5.ebuild 
b/net-print/hplip-plugin/hplip-plugin-3.23.5.ebuild
new file mode 100644
index 000000000000..4bf67bc6bda1
--- /dev/null
+++ b/net-print/hplip-plugin/hplip-plugin-3.23.5.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker
+
+DESCRIPTION="Proprietary plugins and firmware for HPLIP"
+HOMEPAGE="https://developers.hp.com/hp-linux-imaging-and-printing/plugins";
+SRC_URI="https://developers.hp.com/sites/default/files/hplip-${PV}-plugin.run";
+S="${WORKDIR}"
+
+LICENSE="hplip-plugin"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="orblite"
+# License does not allow us to redistribute the "source" package
+RESTRICT="mirror"
+
+RDEPEND="
+       ~net-print/hplip-${PV}
+       virtual/udev
+       orblite? (
+               media-gfx/sane-backends
+               >=sys-libs/glibc-2.26
+               virtual/libusb:0
+       )
+"
+
+HPLIP_HOME=/usr/share/hplip
+
+# Binary prebuilt package
+QA_PREBUILT="${HPLIP_HOME}/*.so"
+
+src_install() {
+       local hplip_arch plugin
+       case "${ARCH}" in
+               amd64) hplip_arch="x86_64" ;;
+               arm)   hplip_arch="arm32"  ;;
+               arm64) hplip_arch="arm64"  ;;
+               x86)   hplip_arch="x86_32" ;;
+               *)     die "Unsupported architecture." ;;
+       esac
+
+       insinto "${HPLIP_HOME}"/data/firmware
+       doins *.fw.gz
+
+       for plugin in *-${hplip_arch}.so; do
+               local plugin_type=prnt
+               case "${plugin}" in
+                       bb_orblite-*)
+                               use orblite || continue
+                               plugin_type=scan ;;
+                       bb_*)
+                               plugin_type=scan ;;
+                       fax_*)
+                               plugin_type=fax ;;
+               esac
+
+               exeinto "${HPLIP_HOME}"/${plugin_type}/plugins
+               newexe ${plugin} ${plugin/-${hplip_arch}}
+       done
+
+       insinto /var/lib/hp
+       newins - hplip.state <<-_EOF_
+               [plugin]
+               installed = 1
+               eula = 1
+               version = ${PV}
+       _EOF_
+}

Reply via email to