Add hplip-plugin-3.11.10.ebuild

atratsevskiy
Alexander Tratsevskiy 13 years ago
parent 111240734d
commit daf64c03c5

@ -0,0 +1,10 @@
# ChangeLog for net-print/hplip-plugin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*hplip-plugin-3.11.10 (02 Nov 2011)
02 Nov 2011; Alexander Tratsevskiy (L'autre) <at@calculate.ru>
+hplip-plugin-3.11.10.ebuild:
version bump

@ -1,4 +1,6 @@
DIST hplip-3.11.10-plugin.run 1779110 RMD160 3b237f0205ef94d1feeb348a666a28088390730f SHA1 263372f59869d030641641ccca121e2326be7b1f SHA256 15b8b7b65c95c8d42108c328a623982d72c2d3b30c5462cad376a5b2dbe6b8f0
DIST hplip-3.11.3a-plugin.run 1778162 RMD160 9610e4325e98f8dea4be2240aef4b8554699d2e1 SHA1 1353d17f7ff9df50ee079049094bceee0ac9ea3d SHA256 3f7d80565ca90b7f976949707fdfadbe337b5aa0fbddcd43ffe3618cdf6db66f
DIST hplip-3.11.5-plugin.run 1778194 RMD160 70f1d9ef17ef00988453fe951cd25d490f7c3540 SHA1 dd06673e8d911311966f34ac8c31cf9ce3bd0bd9 SHA256 9b3b2885828ac79dfce9af53a6796210998b75199d72270d36d2588e989dea0f
EBUILD hplip-plugin-3.11.10.ebuild 1485 RMD160 f643d791d0149133bafec239ee51f648aac557cb SHA1 fdbe5b307890e109785bfd1fd089834ce7766af5 SHA256 e30d6a6037e7ade821aec61aa536a995e3d0b4da42a91a603177e4c2ba9ec230
EBUILD hplip-plugin-3.11.3a.ebuild 1504 RMD160 192bd9e633b5b6b403c7a28d6e820efb4adfc626 SHA1 a9159753e7ea929a07fdf8b2c6629d0057c8029b SHA256 00c4010c013f6868d33c5e490c47462c2403848da0a601afdcbefc250f9fd888
EBUILD hplip-plugin-3.11.5.ebuild 1504 RMD160 192bd9e633b5b6b403c7a28d6e820efb4adfc626 SHA1 a9159753e7ea929a07fdf8b2c6629d0057c8029b SHA256 00c4010c013f6868d33c5e490c47462c2403848da0a601afdcbefc250f9fd888

@ -0,0 +1,62 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit eutils multilib
DESCRIPTION="Proprietary plugins and firmware for HPLIP"
HOMEPAGE="http://hplipopensource.com/hplip-web/index.html"
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/hplip-plugin/hplip-${PV}-plugin.run"
LICENSE="hplip-plugin"
SLOT="0"
IUSE=""
RDEPEND="~net-print/hplip-${PV}
sys-fs/udev"
DEPEND=""
HPLIP_HOME=/usr/share/hplip
# Binary prebuilt package
KEYWORDS="-* ~amd64 ~x86"
QA_PRESTRIPPED="
/usr/share/hplip/scan/plugins/bb_marvell.so
/usr/share/hplip/scan/plugins/bb_soapht.so
/usr/share/hplip/scan/plugins/bb_soap.so
/usr/share/hplip/fax/plugins/fax_marvell.so
/usr/share/hplip/prnt/plugins/lj.so"
# License does not allow us to redistribute the "source" package
RESTRICT="mirror"
src_unpack() {
unpack_makeself "hplip-${PV}-plugin.run" || die 'unpack failed'
}
src_prepare() {
sed -i -e 's/SYSFS/ATTR/g' *.rules || die
}
src_install() {
local hplip_arch=$(use amd64 && echo 'x86_64' || echo 'x86_32')
insinto /$(get_libdir)/udev/rules.d
doins *.rules || die
insinto "${HPLIP_HOME}"/data/firmware
doins *.fw.gz || die
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}} || die "failed to install ${plugin}"
done
}
Loading…
Cancel
Save