You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
1.1 KiB

  1. # Copyright 1999-2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit unpacker eutils udev
  5. MY_PV="${PV/_p/-}"
  6. DESCRIPTION="SANE driver for Brother DS-series scanners"
  7. HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
  8. SRC_URI="http://download.brother.com/welcome/dlf100976/${PN/-bin}_${MY_PV}_amd64.deb"
  9. RESTRICT="mirror"
  10. QA_PREBUILT=".*"
  11. LICENSE="metapackage"
  12. SLOT="0"
  13. KEYWORDS="~amd64"
  14. IUSE=""
  15. RDEPEND="media-gfx/sane-backends"
  16. DEPEND="${RDEPEND}"
  17. S="${WORKDIR}"
  18. src_unpack() {
  19. unpack_deb ${A}
  20. }
  21. src_install() {
  22. insinto /usr/lib64/sane
  23. insopts -m0755
  24. doins "usr/lib/tmp_DSDriver/x64/dsdrv_x64.so"
  25. doins "usr/lib/tmp_DSDriver/x64/NvUSBScan_x64.so"
  26. doins "usr/lib/tmp_DSDriver/x64/libsane-dsseries.so.1.0.17"
  27. dosym "libsane-dsseries.so.1.0.17" "usr/lib64/sane/libsane-dsseries.so.1"
  28. dosym "libsane-dsseries.so.1" "usr/lib64/sane/libsane-dsseries.so"
  29. insinto /etc/sane.d/dll.d
  30. insopts -m0644
  31. doins "${FILESDIR}/dsseries.conf"
  32. insinto /etc/sane.d
  33. doins "usr/lib/tmp_DSDriver/dsseries.conf"
  34. udev_dorules "${FILESDIR}/60-libsane-dsseries.rules"
  35. }