iscan-plugin-gt-x750-2.1.0

Published: 29.12.2009

Epson Perfection 4490 PHOTO scanner plugin for SANE 'epkowa' backend.

This is ebuild for Epson Perfection 4490 Firmware file w/o you will not be able to use this scanner on Linux.

This ebuild is taken from this bug report. You should use it a long side with EPSON Image Scan program. I tested this with my scanner and it's working.

To use this ebuild run following commands in terminal:

echo "=media-gfx/iscan-plugin-gt-x750-2.1.0" >> /etc/portage/package.keywords
emerge -av =media-gfx/iscan-plugin-gt-x750-2.1.0

View the source of the ebuild
  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4.  
  5. EAPI="2"
  6.  
  7. inherit rpm
  8.  
  9. # Revision used by upstream
  10. SRC_REV="5"
  11.  
  12. MY_P="${P}-${SRC_REV}"
  13.  
  14. DESCRIPTION="Epson Perfection 4490 PHOTO scanner plugin for SANE 'epkowa' backend."
  15. HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html"
  16. SRC_URI="
  17. x86? ( http://linux.avasys.jp/drivers/scanner-plugins/GT-X750/${MY_P}.c2.i386.rpm )
  18. amd64? ( http://linux.avasys.jp/drivers/scanner-plugins/GT-X750/${MY_P}.c2.x86_64.rpm )"
  19.  
  20. LICENSE="AVASYS Public License"
  21. SLOT="0"
  22. KEYWORDS="~x86 ~amd64"
  23.  
  24. IUSE=""
  25. IUSE_LINGUAS="ja"
  26.  
  27. for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done
  28.  
  29. RESTRICT="mirror"
  30.  
  31. DEPEND=">=media-gfx/iscan-2.18.0"
  32. RDEPEND="${DEPEND}"
  33.  
  34. src_install() {
  35. local MY_LIB="/usr/$(get_libdir)"
  36.  
  37. # install scanner firmware
  38. insinto /usr/share/iscan
  39. doins "${WORKDIR}"/usr/share/iscan/*
  40.  
  41. # install docs
  42. if use linguas_ja; then
  43. dodoc usr/share/doc/"${P}"/AVASYSPL.ja.txt
  44. else
  45. dodoc usr/share/doc/"${P}"/AVASYSPL.en.txt
  46. fi
  47.  
  48. # install scanner plugins
  49. insinto "${MY_LIB}"/iscan
  50. INSOPTIONS="-m0755"
  51. doins "${WORKDIR}"/usr/$(get_libdir)/iscan/*
  52. }
  53.  
  54. pkg_postinst() {
  55. local MY_LIB="/usr/$(get_libdir)"
  56.  
  57. # Needed for scaner to work properly.
  58. iscan-registry --add interpreter usb 0x04b8 0x0119 ${MY_LIB}/iscan/libesint54 /usr/share/iscan/esfw54.bin
  59.  
  60. elog
  61. elog "Firmware file esfw54.bin for Epson Perfection 4490"
  62. elog "PHOTO has been installed in /usr/share/iscan and"
  63. elog "regestered for use"
  64. elog
  65. }
  66.  
  67. pkg_prerm() {
  68. local MY_LIB="/usr/$(get_libdir)"
  69.  
  70. iscan-registry --remove interpreter usb 0x04b8 0x0119 ${MY_LIB}/iscan/libesint54 /usr/share/iscan/esfw54.bin
  71. }

Here is the list of all the iscan-plugin-gt-x750 ebuild versions that are available in my overlay:



Comments

If you have found something wrong with the information provided above or maybe you just want to speak your mind about it, feel free to leave a comment.
All comments will show up on page after being approved. Sorry for such policy but I want to make sure that my site will be free of abusive or vulgar content. I don't mind being criticized just do it using right words.

Leave a comment