diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest index 285b556682c7a..da4d5ce5dfd96 100644 --- a/net-print/hplip-plugin/Manifest +++ b/net-print/hplip-plugin/Manifest @@ -1 +1,2 @@ DIST hplip-3.25.8-plugin.run 11491307 BLAKE2B 62347337186d1af9617cc09163ac4e49b19375823cb468ee747e914bcc566de4aa6faab70da251720569e65dfb4588c6335c1d10e7aa4c6679b387e89b89f6f2 SHA512 93c77da187dd35f04124f52eb845d683d2ed748e350e1678f402c457f4d9d5d51a6031ce3dfe8d0ca178dc342dea1dec306d6fd10835a34d10b3ef3429f0e4f2 +DIST hplip-3.26.4-plugin.run 11493127 BLAKE2B d48002a8cc23a4c8429f866539ae41f210f2151abeec93320d06cd6fa1cb4d763c76f1cfb58f2fe915a07e9c5270915002bc6b72ff2d13691e2bf82ba5410142 SHA512 5ce87f89d93487a6a0726a92f89540ceb429d924f9467fa5df68839ecff12680a6d939204f6ce83fe8f90ab605d06fd8315ac27df935863e50129f90ec4f86f8 diff --git a/net-print/hplip-plugin/hplip-plugin-3.26.4.ebuild b/net-print/hplip-plugin/hplip-plugin-3.26.4.ebuild new file mode 100644 index 0000000000000..dcff248c5ccb8 --- /dev/null +++ b/net-print/hplip-plugin/hplip-plugin-3.26.4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2026 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://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/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_ +}