# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_P="Epson-ALC1100-filter-${PV}" S="${WORKDIR}/${MY_P}" SLOT="0" LICENSE="GPL" KEYWORDS="-* ~x86 ~amd64" DESCRIPTION="Printer driver for the Epson AcuLaser C1100" SRC_URI="${MY_P}.tar.gz" RESTRICT="fetch" HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_laser.html" IUSE="ppds" DEPEND="amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.2 >=app-emulation/emul-linux-x86-baselibs-2.1.1 >=app-emulation/emul-linux-x86-soundlibs-2.4 app-emulation/emul-linux-x86-compat )" RDEPEND="virtual/libc sys-apps/sed sys-apps/grep sys-apps/gawk virtual/ghostscript app-text/psutils sys-devel/bc" MY_CONFIG="/etc/epson/alc1100" MY_CUPS="/usr/share/cups/model" pkg_nofetch() { einfo "Please download ${MY_P}.tar.gz from:" einfo ${HOMEPAGE} einfo "and move it to ${DISTDIR}" } src_compile() { # Nothing to compile # There is a configure-script to set the installation dir, # but since I install the binaries manually, this isn't needed. # Make the configuration dir more sane sed -i -e "s:DATADIR=/etc/epkowa/alc1100:DATADIR=${MY_CONFIG}:" \ ${S}/alc1100_lprwrapper.sh } src_install() { dobin {alc1100,alc1100_lprwrapper.sh,pstoalc1100.sh} dodoc {AUTHORS,COPYING,COPYING.KOWA,ChangeLog,INSTALL} dodoc {NEWS,README,README-alc1100,README-alc1100-CUPS} if use ppds; then insinto ${MY_CUPS} doins ppd/Epson-AL-C1100-fm3.ppd fi insinto ${MY_CONFIG} doins option.conf }