From 13d93e421367ba078acbeddac0039e5242741c29 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 13 Jan 2011 00:22:49 +0300 Subject: EPSON Perfection V200 PHOTO firmware --- media-gfx/iscan-plugin-gt-f670/Manifest | 3 + .../iscan-plugin-gt-f670-2.1.0.ebuild | 65 ++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 media-gfx/iscan-plugin-gt-f670/Manifest create mode 100644 media-gfx/iscan-plugin-gt-f670/iscan-plugin-gt-f670-2.1.0.ebuild diff --git a/media-gfx/iscan-plugin-gt-f670/Manifest b/media-gfx/iscan-plugin-gt-f670/Manifest new file mode 100644 index 0000000..a79edfa --- /dev/null +++ b/media-gfx/iscan-plugin-gt-f670/Manifest @@ -0,0 +1,3 @@ +DIST iscan-plugin-gt-f670-2.1.0-3.c2.i386.rpm 401765 RMD160 5e96b9ce540789024c439160c4acfcb4b4585dfc SHA1 f0943869c51ea8e7b1f004f9febe3338628c898f SHA256 945f2affd3529b5d19ea76fcfa5c0f0499766e5376ceb9a813369f565250f394 +DIST iscan-plugin-gt-f670-2.1.0-3.c2.x86_64.rpm 190518 RMD160 b67e3e24d6644431d3120745ceab6bcbf9321b7b SHA1 2af01e8bca43b1ff9bac96ce634e83488887a9f3 SHA256 9d172893810f85dd85482ce81d716eec0e3e7c84735ee7a5c201cab2163034fe +EBUILD iscan-plugin-gt-f670-2.1.0.ebuild 1670 RMD160 980e901b6531c3546c24f6b0ddf27a4f7016d951 SHA1 7a28dd296a262f1e660c73a75a355986d4190da9 SHA256 e4214f49e389784ace1e49c6d1fb7f6a22ea62f419da197ed65951b889498489 diff --git a/media-gfx/iscan-plugin-gt-f670/iscan-plugin-gt-f670-2.1.0.ebuild b/media-gfx/iscan-plugin-gt-f670/iscan-plugin-gt-f670-2.1.0.ebuild new file mode 100644 index 0000000..bcb4f48 --- /dev/null +++ b/media-gfx/iscan-plugin-gt-f670/iscan-plugin-gt-f670-2.1.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit rpm + +# Revision used by upstream +SRC_REV="3" + +MY_P="${P}-${SRC_REV}" + +DESCRIPTION="Epson Perfection V200 PHOTO scanner plugin for SANE 'epkowa' backend." +HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html" +SRC_URI=" + x86? ( http://linux.avasys.jp/drivers/scanner-plugins/GT-F670/${MY_P}.c2.i386.rpm ) + amd64? ( http://linux.avasys.jp/drivers/scanner-plugins/GT-F670/${MY_P}.c2.x86_64.rpm )" +LICENSE="AVASYS Public License" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +IUSE="" +IUSE_LINGUAS="ja" + +for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done + +DEPEND=">=media-gfx/iscan-2.18.0" +RDEPEND="${DEPEND}" + +MY_LIB="/usr/$(get_libdir)" + +src_install() { + # install scanner firmware + insinto /usr/share/iscan + doins "${WORKDIR}"/usr/share/iscan/* + + # install docs + if use linguas_ja; then + dodoc usr/share/doc/"${P}"/AVASYSPL.ja.txt + else + dodoc usr/share/doc/"${P}"/AVASYSPL.en.txt + fi + + # install scanner plugins + insinto "${MY_LIB}"/iscan + INSOPTIONS="-m0755" + doins "${WORKDIR}"/usr/$(get_libdir)/iscan/* +} + +pkg_postinst() { + # Needed for scaner to work properly. + iscan-registry --add interpreter usb 0x04b8 0x012e ${MY_LIB}/iscan/libesint7A /usr/share/iscan/esfw7A.bin + + elog + elog "Firmware file esfw7A.bin for Epson Perfection V200" + elog "PHOTO has been installed in /usr/share/iscan and" + elog "registered for use" + elog +} + +pkg_prerm() { + # Uninstall interpreter from iscan-registry before removal + iscan-registry --remove interpreter usb 0x04b8 0x012e ${MY_LIB}/iscan/libesint7A /usr/share/iscan/esfw7A.bin +} -- cgit v1.2.3