diff options
Diffstat (limited to 'media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild')
-rw-r--r-- | media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild b/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild new file mode 100644 index 000000000000..5044961d8b7b --- /dev/null +++ b/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild,v 1.1 2015/07/14 15:48:30 idella4 Exp $ + +EAPI=5 + +inherit eutils versionator udev multilib + +MY_PV="$(get_version_component_range 1-3)" +MY_PVR="$(replace_version_separator 3 -)" + +DESCRIPTION="Image Scan! for Linux data files" +HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" +# Use a gentoo hosted url since upstream uses a session based url that causes the +# files to no longer be available after the session expires. +SRC_URI="http://dev.gentoo.org/~idella4/tarballs//${PN}_${MY_PVR}.tar.gz" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="udev" + +DEPEND="udev? ( + dev-libs/libxslt + media-gfx/sane-backends + )" +RDEPEND="" + +S="${WORKDIR}/${PN}-${MY_PV}" + +DOCS=( NEWS SUPPORTED-DEVICES KNOWN-PROBLEMS ) + +src_install() { + ewarn ""; ewarn "Some profiles automatically enable udev which will cause install to fail" + ewarn "if media-gfx/sane-backends is not already installed."; ewarn "" + default + + if use udev; then + # create udev rules + local rulesdir=$(get_udevdir)/rules.d + dodir ${rulesdir} + "${D}usr/$(get_libdir)/iscan-data/make-policy-file" \ + --force --mode udev \ + -d "${D}usr/share/iscan-data/epkowa.desc" \ + -o "${D}${rulesdir}/99-iscan.rules" || die + fi +} |