iscan-plugin-gt-x750-2.1.0

Opublikowany: 29.12.2009

Wtyczka do skanera Epson Perfection 4490 PHOTO ze wsparciem SANE 'epkowa'.

Strona projektu: Epson Perfection 4490 PHOTO Firmware

To jest ebuild dla pliku firmware do skanera Epson Perfection 4490. Bez tego pliku nie będziesz w stanie używać skanera na Linuxie.

Ten ebuild został pobrany z tego raportu błędu. Powinieneś użyć tego ebuild wraz program EPSON Image Scan. Przetestowałem go z moim skanerem i mogę potwierdzić, że działa.

Aby wykorzystać ten ebuild wykonaj następujące polecenia w terminalu:

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

Wyświetl kod źródłowy ebuilda
  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. }

Oto lista wszystkich wersji ebuilda iscan-plugin-gt-x750 jakie możesz znaleźć w moim overlay'u: