Lines 1-10
Link Here
|
1 |
# Copyright 1999-2011 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI="3" |
6 |
|
6 |
|
7 |
inherit eutils multilib |
7 |
inherit eutils multilib toolchain-funcs unpacker |
8 |
|
8 |
|
9 |
DESCRIPTION="Proprietary plugins and firmware for HPLIP" |
9 |
DESCRIPTION="Proprietary plugins and firmware for HPLIP" |
10 |
HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
10 |
HOMEPAGE="http://hplipopensource.com/hplip-web/index.html" |
Lines 14-22
LICENSE="hplip-plugin"
Link Here
|
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
IUSE="" |
15 |
IUSE="" |
16 |
|
16 |
|
|
|
17 |
DEPEND="virtual/pkgconfig" |
17 |
RDEPEND="~net-print/hplip-${PV} |
18 |
RDEPEND="~net-print/hplip-${PV} |
18 |
sys-fs/udev" |
19 |
sys-fs/udev" |
19 |
DEPEND="" |
|
|
20 |
|
20 |
|
21 |
HPLIP_HOME=/usr/share/hplip |
21 |
HPLIP_HOME=/usr/share/hplip |
22 |
|
22 |
|
Lines 27-32
QA_PRESTRIPPED="
Link Here
|
27 |
/usr/share/hplip/scan/plugins/bb_soapht.so |
27 |
/usr/share/hplip/scan/plugins/bb_soapht.so |
28 |
/usr/share/hplip/scan/plugins/bb_soap.so |
28 |
/usr/share/hplip/scan/plugins/bb_soap.so |
29 |
/usr/share/hplip/fax/plugins/fax_marvell.so |
29 |
/usr/share/hplip/fax/plugins/fax_marvell.so |
|
|
30 |
/usr/share/hplip/prnt/plugins/hbpl1.so |
30 |
/usr/share/hplip/prnt/plugins/lj.so" |
31 |
/usr/share/hplip/prnt/plugins/lj.so" |
31 |
|
32 |
|
32 |
# License does not allow us to redistribute the "source" package |
33 |
# License does not allow us to redistribute the "source" package |
Lines 36-49
src_unpack() {
Link Here
|
36 |
unpack_makeself "hplip-${PV}-plugin.run" || die 'unpack failed' |
37 |
unpack_makeself "hplip-${PV}-plugin.run" || die 'unpack failed' |
37 |
} |
38 |
} |
38 |
|
39 |
|
39 |
src_prepare() { |
|
|
40 |
sed -i -e 's/SYSFS/ATTR/g' *.rules || die |
41 |
} |
42 |
|
43 |
src_install() { |
40 |
src_install() { |
44 |
local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32') |
41 |
local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32') |
45 |
|
42 |
|
46 |
insinto /$(get_libdir)/udev/rules.d |
43 |
local udevdir=/lib/udev |
|
|
44 |
has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" |
45 |
|
46 |
insinto "${udevdir}"/rules.d |
47 |
doins *.rules || die |
47 |
doins *.rules || die |
48 |
|
48 |
|
49 |
insinto "${HPLIP_HOME}"/data/firmware |
49 |
insinto "${HPLIP_HOME}"/data/firmware |
Lines 59-62
src_install() {
Link Here
|
59 |
exeinto "${HPLIP_HOME}"/${plugin_type}/plugins |
59 |
exeinto "${HPLIP_HOME}"/${plugin_type}/plugins |
60 |
newexe ${plugin} ${plugin/-${hplip_arch}} || die "failed to install ${plugin}" |
60 |
newexe ${plugin} ${plugin/-${hplip_arch}} || die "failed to install ${plugin}" |
61 |
done |
61 |
done |
|
|
62 |
|
63 |
cat <<- EOF > "${WORKDIR}/hplip.state" |
64 |
[plugin] |
65 |
installed = 1 |
66 |
eula = 1 |
67 |
version = ${PV} |
68 |
EOF |
69 |
|
70 |
insinto /var/lib/hp |
71 |
doins hplip.state |
62 |
} |
72 |
} |