summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-04 22:56:16 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-04 22:56:16 +0000
commit19308eeecd1f9ef62d4189165c3dbdc49eaf3e2e (patch)
tree7d99d84bc01898a9c8d27976608dd6a04815f712 /media-gfx/esci-interpreter-gt-s80
parentBump on piepatchset for gcc-4.6.3 to 0.5.2 (diff)
downloadgentoo-2-19308eeecd1f9ef62d4189165c3dbdc49eaf3e2e.tar.gz
gentoo-2-19308eeecd1f9ef62d4189165c3dbdc49eaf3e2e.tar.bz2
gentoo-2-19308eeecd1f9ef62d4189165c3dbdc49eaf3e2e.zip
Rename.
(Portage version: 2.2.0_alpha109/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/esci-interpreter-gt-s80')
-rw-r--r--media-gfx/esci-interpreter-gt-s80/ChangeLog22
-rw-r--r--media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.0.2.ebuild82
-rw-r--r--media-gfx/esci-interpreter-gt-s80/metadata.xml19
3 files changed, 123 insertions, 0 deletions
diff --git a/media-gfx/esci-interpreter-gt-s80/ChangeLog b/media-gfx/esci-interpreter-gt-s80/ChangeLog
new file mode 100644
index 000000000000..28ef09622f23
--- /dev/null
+++ b/media-gfx/esci-interpreter-gt-s80/ChangeLog
@@ -0,0 +1,22 @@
+# ChangeLog for media-gfx/esci-interpreter-gt-s80
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/esci-interpreter-gt-s80/ChangeLog,v 1.1 2012/06/04 22:56:16 flameeyes Exp $
+
+*iscan-plugin-gt-s80-0.2.0.2 (04 Jun 2012)
+
+ 04 Jun 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ +iscan-plugin-gt-s80-0.2.0.2.ebuild:
+ Version bump.
+
+*iscan-plugin-gt-s80-0.1.1.2 (27 Jul 2011)
+
+ 27 Jul 2011; Diego E. Pettenò <flameeyes@gentoo.org>
+ +iscan-plugin-gt-s80-0.1.1.2.ebuild:
+ Version bump.
+
+*iscan-plugin-gt-s80-0.1.0.0 (23 Apr 2011)
+
+ 23 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org>
+ +iscan-plugin-gt-s80-0.1.0.0.ebuild, +metadata.xml:
+ Initial import of iscan plugin for EPSON GT-S80 and GT-S50 scanners.
+
diff --git a/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.0.2.ebuild b/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.0.2.ebuild
new file mode 100644
index 000000000000..97ca4501779b
--- /dev/null
+++ b/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.0.2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.0.2.ebuild,v 1.1 2012/06/04 22:56:16 flameeyes Exp $
+
+EAPI=4
+
+inherit rpm versionator
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Epson GT-S50 and GT-S80 scanner plugins for SANE 'epkowa' backend."
+HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html"
+SRC_URI="
+ x86? ( http://linux.avasys.jp/drivers/iscan-plugins/${PN}/${MY_PV}/${PN}-${MY_PVR}.i386.rpm )
+ amd64? ( http://linux.avasys.jp/drivers/iscan-plugins/${PN}/${MY_PV}/${PN}-${MY_PVR}.x86_64.rpm )
+"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.28.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PRESTRIPPED="/opt/iscan/esci/*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ dodoc usr/share/doc/*/*
+
+ # install scanner plugins
+ exeinto /opt/iscan/esci
+ doexe "${WORKDIR}/usr/$(get_libdir)/esci/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0136 /opt/iscan/esci/libesci-interpreter-gt-s80"
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0137 /opt/iscan/esci/libesci-interpreter-gt-s50"
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0144 /opt/iscan/esci/libesci-interpreter-gt-s80"
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0143 /opt/iscan/esci/libesci-interpreter-gt-s50"
+ )
+}
+
+pkg_postinst() {
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/add}"
+ done
+ fi
+}
+
+pkg_prerm() {
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/remove}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/remove}"
+ done
+ fi
+}
diff --git a/media-gfx/esci-interpreter-gt-s80/metadata.xml b/media-gfx/esci-interpreter-gt-s80/metadata.xml
new file mode 100644
index 000000000000..d65e47d14674
--- /dev/null
+++ b/media-gfx/esci-interpreter-gt-s80/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
+
+ Supports the following models:
+
+ EPSON GT-S80 / ES-D400
+ EPSON GT-S85
+ EPSON GT-S50 / ES-D200
+ EPSON GT-S55
+ </longdescription>
+</pkgmetadata>