Просмотр исходного кода

New hplip-plugin. updated psi-plugins-meta. fixes #189

Ri0n 9 лет назад
Родитель
Сommit
53c7eab1b4

+ 3 - 3
net-im/psi-plugins-meta/psi-plugins-meta-9999.ebuild

@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI="4"
+EAPI="5"
 
 DESCRIPTION="Meta package for net-im/psi plugins"
 HOMEPAGE="http://psi-dev.googlecode.com"
@@ -10,8 +10,8 @@ HOMEPAGE="http://psi-dev.googlecode.com"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="attention autoreply birthdayreminder captchaforms chess cleaner clientswitcher conferencelogger contentdownloader extendedoptions gmailservice
-historykeeper icqdie image juick otr pepchangenotify extendedmenu psto qipxstatuses screenshot skins stopspam storagenotes translate videostatus watcher"
+# echo $(eix --only-names net-im/psi- | cut -d '-' -f 3) | fold -w 80 -s
+IUSE="attention autoreply birthdayreminder captchaforms chess cleaner clientswitcher conferencelogger contentdownloader extendedmenu extendedoptions gmailservice gnome3support gnupg gomokugame historykeeper icqdie image jabberdisk juick otr pepchangenotify plugins psto qipxstatuses screenshot skins stopspam storagenotes translate videostatus watcher yandexnarod"
 
 RDEPEND=""
 

+ 1 - 0
net-print/hplip-plugin/Manifest

@@ -1,3 +1,4 @@
 DIST hplip-3.14.10-plugin.run 1869038 SHA256 b395b480ad86b9f27b6a2f63b6ecb00beb78e762a6137efb81dc1104837f9b81 SHA512 3e5bea924e989d902aea0de182941be692a124ba8c27f53ce2e4f137308bad8373462c6128c26716e481e758f76533163d311a2676df034c1b15d6ef6ed008be WHIRLPOOL 18375de4cc92cb73bcaa109927bd34f8487938b02472f0b7adbf44ad4688e5c6a1d030077b1e3c14f15f9b8e4cc86d195b0195e2d08121f746c62624db4658db
 DIST hplip-3.15.6-plugin.run 1997580 SHA256 dd0d357c362710f1ae7e1381a83c881e60a3e6f6b8c49ccfd0418bf0a1ead5e7 SHA512 47697a161c1d8f4e07adccbcf10eb3b9ac1964c5691dbdaffc3e6a63ba640cdb4c4e36af86b73746d06105f78452ec6cb45497158e2c3fcd343f2f77625cb8a1 WHIRLPOOL 3612e7223b6f3cfd0714e76bddb71f41fe24e27b75313ca6b1698b57a84a4631273a17f7596c2a32c6caea8fa51a27930515413941c6127132b361fb0c872a77
 DIST hplip-3.15.7-plugin.run 1998519 SHA256 35107d92e7ba64c0e242344875f54c4f8e992a59404f3e37d1dcca416a817439 SHA512 14da78116446f8ab71712cb23052796b70781d320b98999c3798ab95890fa3b274f38cc75291cbca80d69b3a385c9935e2ccc482624dccddab24672ebd483bc6 WHIRLPOOL 9d19a2505c8f28015d9455d2bf4cd614ce6e406b53f5cd15e43f821b0a27113c830ebdd4b846780378b9441585d6a44675d2e3d2e0dc73e6c5b2f3f711aa3257
+DIST hplip-3.15.9-plugin.run 1998730 SHA256 fac909587cbc5ab4ab679fe6495df216069fed9c164a0a0d041dd53e10a70aaa SHA512 6eed7464528afc5aa576577a86d4e8388ae740e1e5092d012f58679370bb09c30ee17b9dd3be8544241846883bee56635e7b83d18d0662a7da0aa192c0b02999 WHIRLPOOL 761f503387e7d466351dd6dd339237f909e9d2fa156e8d0822d1e7beb574433d9ed3990c6f464e801a05017494f04bf2b7fb3954a1178666e53a3cf49d7564f1

+ 69 - 0
net-print/hplip-plugin/hplip-plugin-3.15.9.ebuild

@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+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=""
+
+QA_PREBUILT="*"
+
+RDEPEND="
+	~net-print/hplip-${PV}
+	virtual/udev
+"
+DEPEND=""
+
+S=${WORKDIR}
+
+HPLIP_HOME=/usr/share/hplip
+
+# Binary prebuilt package
+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"
+}
+
+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_
+}