iscan-data-1.36.0.1.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils versionator udev multilib
  5. MY_PV="$(get_version_component_range 1-3)"
  6. MY_PVR="$(replace_version_separator 3 -)"
  7. DESCRIPTION="Image Scan! for Linux data files"
  8. HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
  9. # Use a gentoo hosted url since upstream uses a session based url that causes the
  10. # files to no longer be available after the session expires.
  11. SRC_URI="https://dev.gentoo.org/~idella4/tarballs//${PN}_${MY_PVR}.tar.gz"
  12. LICENSE="GPL-2"
  13. SLOT="0"
  14. KEYWORDS="amd64 x86"
  15. IUSE="udev"
  16. DEPEND="udev? (
  17. dev-libs/libxslt
  18. media-gfx/sane-backends
  19. )"
  20. RDEPEND=""
  21. S="${WORKDIR}/${PN}-${MY_PV}"
  22. DOCS=( NEWS SUPPORTED-DEVICES KNOWN-PROBLEMS )
  23. src_install() {
  24. ewarn ""; ewarn "Some profiles automatically enable udev which will cause install to fail"
  25. ewarn "if media-gfx/sane-backends is not already installed."; ewarn ""
  26. default
  27. if use udev; then
  28. # create udev rules
  29. local rulesdir=$(get_udevdir)/rules.d
  30. dodir ${rulesdir}
  31. "${D}usr/$(get_libdir)/iscan-data/make-policy-file" \
  32. --force --mode udev \
  33. -d "${D}usr/share/iscan-data/epkowa.desc" \
  34. -o "${D}${rulesdir}/99-iscan.rules" || die
  35. fi
  36. }