net-print/hplip-plugin - 3.20.6 (xdch47)

Search

Install

Install this version:

emerge -a =net-print/hplip-plugin-3.20.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-print/hplip-plugin-3.20.6

Or alternatively:

emerge --autounmask-write -a =net-print/hplip-plugin-3.20.6

Package Information

Description:
Proprietary plugins and firmware for HPLIP
Homepage:
https://developers.hp.com/hp-linux-imaging-and-printing/plugins
License:
hplip-plugin

Ebuild Details

Version EAPI Keywords Slot
3.20.6 7 ~amd64 ~arm ~x86 0
View Raw Ebuild
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

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"
LICENSE="hplip-plugin"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""

RDEPEND="
	~net-print/hplip-${PV}
	virtual/libusb:0
	virtual/udev
"
DEPEND=""

S=${WORKDIR}

HPLIP_HOME=/usr/share/hplip

# Binary prebuilt package
QA_PRESTRIPPED="
	/usr/share/hplip/fax/plugins/fax_marvell.so
	/usr/share/hplip/prnt/plugins/hbpl1.so
	/usr/share/hplip/prnt/plugins/lj.so
	/usr/share/hplip/scan/plugins/bb_escl.so
	/usr/share/hplip/scan/plugins/bb_marvell.so
	/usr/share/hplip/scan/plugins/bb_soapht.so
	/usr/share/hplip/scan/plugins/bb_soap.so
"

# License does not allow us to redistribute the "source" package
RESTRICT="mirror"

src_install() {
	local hplip_arch
	case "${ARCH}" in
		amd64) hplip_arch="x86_64" ;;
		arm)   hplip_arch="arm32"  ;;
		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
			fax_*) plugin_type=fax ;;
			bb_*)  plugin_type=scan ;;
		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_
}

Inherited Eclasses

Dependencies

RDEPEND

	~net-print/hplip-3.20.6
	virtual/libusb:0
	virtual/udev

Manifest for 3.20.6

Type File Size Source URLs
DIST hplip-3.20.6-plugin.run 11514108 bytes https://developers.hp.com/sites/default/files/hplip-3.20.6-plugin.run