# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit rpm versionator multilib MY_PV="$(get_version_component_range 1-3)" MY_PVR="$(replace_version_separator 3 -)" S="${WORKDIR}" DESCRIPTION="Image Scan! for Linux network plugin package for SANE 'epkowa' backend" HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" SRC_URI="x86? ( http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/02/49/93/67635720ac0b8d413610f3ed139faba2a3855c05/${PN}-${MY_PVR}.i386.rpm ) amd64? ( http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/02/49/93/668e593a30ec6e7f1e04843d6a90a991a618d99a/${PN}-${MY_PVR}.x86_64.rpm )" LICENSE="AVASYS" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="media-gfx/iscan" RDEPEND="${DEPEND}" src_configure () { :; } src_compile () { :; } src_install() { dodoc ${S}/usr/share/doc/${PN}-${MY_PV}/README ${S}/usr/share/doc/${PN}-${MY_PV}/NEWS ${S}/usr/share/doc/${PN}-${MY_PV}/AVASYSPL.en.txt insinto /usr/$(get_libdir)/iscan/ insopts -m0755 doins ${S}/usr/$(get_libdir)/iscan/network } pkg_postinst() { elog elog "The IP address of your scanner must be" elog "inserted into the appropriate configuration" elog "file in /etc/sane.d/" elog }