# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="jpeg png" DESCRIPTION="Sane frontend and backend for Epson scanners" HOMEPAGE="http://www.avasys.jp/english/linux_e/index.html" MY_PV="${PV}-1.c2" MY_VDIR="v$(echo ${PV} | sed -e 's/\.//g')" SRC_URI="http://lx1.avasys.jp/iscan/${MY_VDIR}/iscan-${MY_PV}.tar.gz" SLOT="0" LICENCE="GPL-2 epson-kowa" KEYWORDS="~x86" DEPEND="media-gfx/sane-backends usb? dev-libs/libusb" src_compile() { econf \ $(use_with jpeg) \ $(use_with png) \ --with-gnu-ld \ --with-pic \ || die "configure failed!" emake || die "make failed" } src_install() { emake DESTDIR=${D} install || die "make install failed" dodoc ABOUT-NLS AUTHORS COPYING* README* || die "dodoc failed" } pkg_postinst() { einfo einfo "Hint: to enable the backend, add \"epkowa\" in \"/etc/sane.d/dll.conf\" " einfo "Then edit \"/etc/sane.d/epkowa.conf\" to suite your needs. " einfo }