summaryrefslogtreecommitdiff
path: root/media-gfx/iscan-plugin-perfection-v370
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/iscan-plugin-perfection-v370')
-rw-r--r--media-gfx/iscan-plugin-perfection-v370/Manifest6
-rw-r--r--media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild93
-rw-r--r--media-gfx/iscan-plugin-perfection-v370/metadata.xml16
3 files changed, 115 insertions, 0 deletions
diff --git a/media-gfx/iscan-plugin-perfection-v370/Manifest b/media-gfx/iscan-plugin-perfection-v370/Manifest
new file mode 100644
index 000000000000..f1cecf04b194
--- /dev/null
+++ b/media-gfx/iscan-plugin-perfection-v370/Manifest
@@ -0,0 +1,6 @@
+DIST iscan-plugin-perfection-v370-1.0.0-2.i386.rpm 383681 SHA256 0fcd95b3c7fb5c1b26fc482513c8220d44a1cde174169e831eea9d5b04ad8537 SHA512 ca0d77e614b826529b23e7ccb6f8546143c471757fb9648c30830055764442c44c811d12c61b04e14d6d435c5de67eb20d24653aee23022ed7104ce89074fdf1 WHIRLPOOL 3b46c6b03e4a03c84348c1f6fb1ed6cdce5d8427017785d66f29f5e96d602f4ab3bc117caabe1fe309a4f8c032a3e1e7fe0091b7b008dd9b08a3b51714e03fac
+DIST iscan-plugin-perfection-v370-1.0.0-2.x86_64.rpm 172082 SHA256 072ddd22e627ee4ed8736bb8726905349bc3879c4127fcbc3b3b90f252ffd823 SHA512 d0a942f4dbf51edf773e3bd83749ffc5dc9b1b67daec042fb49b4050ead34c604ce0183b138dd0719c2fe1ba2d610034b8d2d16ba12df4cd8617d1182b66466f WHIRLPOOL f7e2a21a51589b2907ca4626cbc8dd47af338cd286c383f43ed150c3ae1871543b04faf4a6f7a3431deb767c0d5d3d18889065b353f6eef58cbcfbdad860bab1
+EBUILD iscan-plugin-perfection-v370-1.0.0.2.ebuild 2294 SHA256 1c8206cfde542b7d65978dacc8b28415cc1daa46b82ac17afa3f6089de02475e SHA512 53ead17b26b8ca0aec5f8d4a39f959c0db44d9c85cb02c52905eac7bf83a4cbfe6f74cb912bd77d14e8bad8af2f722430049cab6fb5e1c421ef967a30cfc621a WHIRLPOOL 71b7e36b78b33f6b9acfa4144de7d110705feb8353b50e4193b94d6a9bdc4d5b14bfb1f096ee3bc200144f6d994412ad067dd5b452af098894964a62bdaa9961
+MISC ChangeLog 2411 SHA256 1f8d35d4150e2ad97b7fe955a50f85e4b18d81d1e67f20c41eeed37b71326afc SHA512 e8c471064d83c7d44af78ad1f48c0d44e1f3d9cf5eeb778daa1decb0922de4b73de2182b07bbd8d57be2f18e1ace95b7cb968cc70f9440dd9dd77f23740ef1fe WHIRLPOOL bf31293098c2ddbf799c8d579887245f25c204ff7a566d12d4abe79c15cbdbfd333dbaea1ad33ba0d23e13413408f7d9a5e41183e9b14c992913e6f8cc422a80
+MISC ChangeLog-2015 626 SHA256 393e79687a042e31787bfe2cb4ab77e43607de3c12d10e3cdf866ae4bba72192 SHA512 14289b9023d3d747697f0de8fbbb16158cdd9e73f796219ae1aea6b6c230db536bab38fe16b49a932c80e9ae399b5dd844dde685f81dc8e99eeaf21d5810db4d WHIRLPOOL 33a3f6f211992bb65d5deaf7930fd8c4bc02500978500e78e3ca5603b642d846fc13aa10e7caa8dec4175a8162b7b821a96e4901f4e8a716396d0bce653b8d66
+MISC metadata.xml 486 SHA256 e8ccead065d6f232dcc7bf2d5bf0329d2ee050fe6c3e7a7ce47e317ffb6875ca SHA512 510143fb16b2d57709327f38a5fe23a9512edf6ce507e46f3d17217794a3afaac0eaf939b9b82fc9f3e605bdee196064354c5be52cddd1e7f9a4acc79e45d9fb WHIRLPOOL e14550ed24913ab44df22c7d6cbe84baa3eeeea505efdae6006d221c23acca3a3957a5875f9f3162eb56280ddd558b00e37cd4a3031813bb51c3914c054fc97f
diff --git a/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild b/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild
new file mode 100644
index 000000000000..ce0c32ffb21f
--- /dev/null
+++ b/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit rpm versionator multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+SCANNER="Perfection V370"
+FIRMWARE="esfwdd.bin"
+
+DESCRIPTION="Epson ${SCANNER} and similar scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.x86_64.rpm )
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.i386.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.21.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/opt/iscan/lib/*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ # install scanner firmware
+ insinto /usr/share/iscan
+ doins "${WORKDIR}"/usr/share/iscan/*
+
+ dodoc usr/share/doc/*/*
+
+ # install scanner plugins
+ exeinto /opt/iscan/lib
+ doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x014a /opt/iscan/lib/libiscan-plugin-perfection-v370 /usr/share/iscan/${FIRMWARE}"
+ )
+}
+
+pkg_postinst() {
+ elog
+ elog "Firmware file ${FIRMWARE} for ${SCANNER}"
+ elog "has been installed in /usr/share/iscan."
+ elog
+
+ # Only register scanner on new installs
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ # Needed for scanner to work properly.
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ elog "New firmware has been registered automatically."
+ elog
+ 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() {
+ # Only unregister on on uninstall
+ [[ -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/iscan-plugin-perfection-v370/metadata.xml b/media-gfx/iscan-plugin-perfection-v370/metadata.xml
new file mode 100644
index 000000000000..a5cee8e84a03
--- /dev/null
+++ b/media-gfx/iscan-plugin-perfection-v370/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <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-F740
+ Epson GT-S640
+ Epson Perfection V37
+ Epson Perfection V370 Photo
+ </longdescription>
+</pkgmetadata>