From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A19C1581EE for ; Sat, 05 Apr 2025 21:30:42 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 57F45340C77 for ; Sat, 05 Apr 2025 21:30:42 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 524351102CE; Sat, 05 Apr 2025 21:30:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 423C41102CE for ; Sat, 05 Apr 2025 21:30:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E58BE3431FC for ; Sat, 05 Apr 2025 21:30:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2966E1436 for ; Sat, 05 Apr 2025 21:30:39 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1743888466.9cb41cf633f1878d60f44f644afede33462cd88e.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/hplip-plugin/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-print/hplip-plugin/Manifest net-print/hplip-plugin/hplip-plugin-3.25.2.ebuild X-VCS-Directories: net-print/hplip-plugin/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 9cb41cf633f1878d60f44f644afede33462cd88e X-VCS-Branch: master Date: Sat, 05 Apr 2025 21:30:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 802e93a2-5bc8-45d9-9ca6-3292f84f7cd3 X-Archives-Hash: a46d00f0aeffe6ee9d38ac80fa9fbe73 commit: 9cb41cf633f1878d60f44f644afede33462cd88e Author: James Le Cuirot gentoo org> AuthorDate: Sat Apr 5 21:26:45 2025 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Apr 5 21:27:46 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cb41cf6 net-print/hplip-plugin: Version bump to 3.25.2 Signed-off-by: James Le Cuirot gentoo.org> net-print/hplip-plugin/Manifest | 1 + net-print/hplip-plugin/hplip-plugin-3.25.2.ebuild | 71 +++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest index 6632e6600c9c..804a95a8844e 100644 --- a/net-print/hplip-plugin/Manifest +++ b/net-print/hplip-plugin/Manifest @@ -1 +1,2 @@ DIST hplip-3.24.4-plugin.run 11490921 BLAKE2B 8eeb0a292b1a132841c2d69808441b281de04950be2b906a5906b36b634f30ed42484cc14ac232ef4c50ae5e660c5e48e2afc407e64b12f1b8deb7cf38425bf2 SHA512 21b1636d4d4f7f1673f1a88abc13f4f81c225d6a36a4d45f4f0579ec5ca9bb4a3885ffd413ab6888290c3e2aa62eef45a27cd5eb84c8f20ef3e6c09e24c854b9 +DIST hplip-3.25.2-plugin.run 11494026 BLAKE2B b9ee3a3ecea272ae1354883fcc2b539df58c37b4a1b15da3b49b3b0129ef72a36a7c4e6ef06cb96d642631f95d259432309d5a3d663f9a3500658395e58c3ab9 SHA512 7afe547123e9f25b4b6b18d807e66ef707f4fccf3bd7a234ae21880203121d7eab722765cc2da7a3bc77184f81b22937ed534728a2ec78e62ea16a6bcb5e2cf5 diff --git a/net-print/hplip-plugin/hplip-plugin-3.25.2.ebuild b/net-print/hplip-plugin/hplip-plugin-3.25.2.ebuild new file mode 100644 index 000000000000..27ba87d210ac --- /dev/null +++ b/net-print/hplip-plugin/hplip-plugin-3.25.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2025 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_ +}