# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Steve Flack S=${WORKDIR}/hpijs-1.0.4 DESCRIPTION="The HP Inkjet server for Ghostscript. Provides best output for HP Inkjet Printers" SRC_URI="http://prdownloads.sourceforge.net/hpinkjet/${PN}-1.0.4.tar.gz" HOMEPAGE="http://hpinkjet.sourceforge.net" RDEPEND="app-text/ghostscript" # Though this program runs on it's own it makes no sense to run it without ghostscript src_compile () { cd ${S} ./configure --prefix=/usr || die make || die } src_install () { make PREFIX=/usr DESTDIR=${D} install || die } pkg_postinst () { if [ "`use cups`" ] ; then einfo "To use this hpijs driver in conjunction with the cups spooler download the" einfo "cupsomatic script from http://www.linuxprinting.org/cupsomatic and install" einfo "it in /usr/lib/cups/filter and make it executable. You will also need the" einfo ".ppd file for your printer. This may be obtained from" einfo "http://www.linuxprinting.org/show_driver.cgi?driver=hpijs and should be installed" einfo "in /usr/share/cups/model. After restarting cups you should be able to use the new driver" else einfo "To use this hpijs driver with the PDQ spooler you will need the PDQ driver file" einfo "for your printer from http://www.linuxprinting.org/show_driver.cgi?driver=hpijs" einfo "This file should be installed in /etc/pdq/drivers" fi }