summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2016-01-03 17:56:40 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2016-01-03 17:56:40 +0300
commitf8693eecbb03cc39c28c0e30314b8dda28e51822 (patch)
tree535bd13883098ffd0fa00ec600d74567da76af44
parentsci-chemistry/gromacs: Add python 3.5 to abi list (diff)
downloadalexxy-f8693eecbb03cc39c28c0e30314b8dda28e51822.tar.gz
alexxy-f8693eecbb03cc39c28c0e30314b8dda28e51822.tar.bz2
alexxy-f8693eecbb03cc39c28c0e30314b8dda28e51822.zip
net-print/hplip-plugin: Initial import from calculate overlay
Package-Manager: portage-2.2.26 RepoMan-Options: --force
-rw-r--r--net-print/hplip-plugin/Manifest1
-rw-r--r--net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild69
-rw-r--r--net-print/hplip-plugin/metadata.xml8
3 files changed, 78 insertions, 0 deletions
diff --git a/net-print/hplip-plugin/Manifest b/net-print/hplip-plugin/Manifest
new file mode 100644
index 0000000..cbc603b
--- /dev/null
+++ b/net-print/hplip-plugin/Manifest
@@ -0,0 +1 @@
+DIST hplip-3.15.11-plugin.run 2084268 SHA256 a986ca52c6436f2ce87ad6a11fe0d7880797fbb0d940f23f6a928434bc193102 SHA512 bb36e6c9460bb3afa1b88ae93ba344fd2b9ec8194bd0766c1998657068b57540cbab2558180651e5492a338d7aefa23f203aa1190e39e22cfb51b7fda1383096 WHIRLPOOL 9fef992e0a32566d414fec83af49700303634c3e3fe0bc7667423f91fcd16bfc75cbbcba77914e261d773ad8fe2efa27eaac1a662731e87591758cbc713159c2
diff --git a/net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild b/net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild
new file mode 100644
index 0000000..e296af2
--- /dev/null
+++ b/net-print/hplip-plugin/hplip-plugin-3.15.11.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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_
+}
diff --git a/net-print/hplip-plugin/metadata.xml b/net-print/hplip-plugin/metadata.xml
new file mode 100644
index 0000000..247f458
--- /dev/null
+++ b/net-print/hplip-plugin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+</pkgmetadata>