1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Proprietary plugins and firmware for HPLIP"
10 HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
11 SRC_URI="http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${PV}-plugin.run"
13 LICENSE="hplip-plugin"
15 KEYWORDS="~amd64 ~x86"
19 ~net-print/hplip-${PV}
26 HPLIP_HOME=/usr/share/hplip
28 # Binary prebuilt package
30 /usr/share/hplip/fax/plugins/fax_marvell.so
31 /usr/share/hplip/prnt/plugins/hbpl1.so
32 /usr/share/hplip/prnt/plugins/lj.so
33 /usr/share/hplip/scan/plugins/bb_marvell.so
34 /usr/share/hplip/scan/plugins/bb_soapht.so
35 /usr/share/hplip/scan/plugins/bb_soap.so
38 # License does not allow us to redistribute the "source" package
42 unpack_makeself "hplip-${PV}-plugin.run"
46 local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32')
48 insinto "${HPLIP_HOME}"/data/firmware
51 for plugin in *-${hplip_arch}.so; do
52 local plugin_type=prnt
54 fax_*) plugin_type=fax ;;
55 bb_*) plugin_type=scan ;;
58 exeinto "${HPLIP_HOME}"/${plugin_type}/plugins
59 newexe ${plugin} ${plugin/-${hplip_arch}}
62 mkdir -p "${ED}/var/lib/hp/"
63 cat >> "${ED}/var/lib/hp/hplip.state" <<-_EOF_