summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-04-10 02:18:43 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-04-10 02:18:43 +0200
commit3786cece98639f632abb08280a2047fb7f7c92c1 (patch)
tree44423084fae212e0cae884d1edfe0374bd76f7ba /net-print
parentsys-libs/glibc: fix strip path for cross-compiler's glibc (diff)
downloadgentoo-3786cece98639f632abb08280a2047fb7f7c92c1.tar.gz
gentoo-3786cece98639f632abb08280a2047fb7f7c92c1.tar.bz2
gentoo-3786cece98639f632abb08280a2047fb7f7c92c1.zip
net-print/hplip-plugin: Version bump to 3.18.3
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'net-print')
-rw-r--r--net-print/hplip-plugin/Manifest1
-rw-r--r--net-print/hplip-plugin/hplip-plugin-3.18.3.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
index 3114432113c3..883b9cd46c52 100644
--- a/net-print/hplip-plugin/Manifest
+++ b/net-print/hplip-plugin/Manifest
@@ -1 +1,2 @@
DIST hplip-3.17.10-plugin.run 2062947 BLAKE2B 86f15193a751794eb64acfbaf1b42151c34336603d4d592cc84a375ccca4e7be4177d3dda76fc153ac0a6898eff24174df43256450cd81ae8ad4d4f6abd69ade SHA512 98eef413b122527c4a7860b621baf11c04ec9d7f4e43ce4f36e7822a633c64b3d98cbc86cd7d305c74d9a49a4159ebd7280d652e1ba430cad4cc70f66d23ee07
+DIST hplip-3.18.3-plugin.run 2065610 BLAKE2B 820f390c7c5f66943b12545ebe33742909b41f3f2d9389a811f4aed983e88dec22d44288692a9de5014f9093173b726c3e792124327e4bd774cbc66070e113c4 SHA512 d1bf83476aa56748f9e808f6ae9dd66b761c7674fdc0c960636102e7f263347fe8553a14e9ddbe6dfacc52fddbe4e47b5a9c1c01f07010444e656751272d73f2
diff --git a/net-print/hplip-plugin/hplip-plugin-3.18.3.ebuild b/net-print/hplip-plugin/hplip-plugin-3.18.3.ebuild
new file mode 100644
index 000000000000..b96c3ec3601d
--- /dev/null
+++ b/net-print/hplip-plugin/hplip-plugin-3.18.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit udev unpacker
+
+DESCRIPTION="Proprietary plugins and firmware for HPLIP"
+HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
+SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run"
+
+LICENSE="hplip-plugin"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ ~net-print/hplip-${PV}
+ 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_unpack() {
+ unpack_makeself "hplip-${PV}-plugin.run"
+}
+
+src_install() {
+ local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32')
+
+ 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
+
+ mkdir -p "${ED}/var/lib/hp/"
+ cat >> "${ED}/var/lib/hp/hplip.state" <<-_EOF_
+ [plugin]
+ installed = 1
+ eula = 1
+ version = ${PV}
+ _EOF_
+}