diff options
author | 2016-10-28 20:56:29 +0200 | |
---|---|---|
committer | 2016-10-28 20:56:29 +0200 | |
commit | 7e6d69424774c9a6650a3c5f92f09ed4a877b5bb (patch) | |
tree | fdd401951585e951118306c1b153d87c80bb256c /net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild | |
parent | net-print/hplip: Version bump (diff) | |
download | gentoo-7e6d69424774c9a6650a3c5f92f09ed4a877b5bb.tar.gz gentoo-7e6d69424774c9a6650a3c5f92f09ed4a877b5bb.tar.bz2 gentoo-7e6d69424774c9a6650a3c5f92f09ed4a877b5bb.zip |
net-print/hplip-plugin: Version bump to 3.6.10
Package-Manager: portage-2.3.2
Diffstat (limited to 'net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild')
-rw-r--r-- | net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild b/net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild new file mode 100644 index 000000000000..8408448871b0 --- /dev/null +++ b/net-print/hplip-plugin/hplip-plugin-3.16.10.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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_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_ +} |