# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/ghostpcl.ebuild Exp $ inherit eutils DESCRIPTION="AFPL GhostPCL" HOMEPAGE="http://www.artifex.com/downloads/" MY_PN="ghostpcl" MY_P=${MY_PN}_${PV} SRC_URI="ftp:/mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/GhostPCL/${MY_P}.tar.bz2" LICENSE="Aladdin" SLOT="0" KEYWORDS="~x86" S=${WORKDIR}/${MY_P} src_compile() { cd ${S} einfo "Set default fonts dir to /usr/share/fonts/pclfonts" epatch ${FILESDIR}/fontsdir.patch emake product || die } src_install() { exeinto "/usr/bin" doexe ${S}/main/obj/pcl6 ${S}/tools/pcl2pdf ${S}/tools/pcl2pdfwr insinto "/usr/share/fonts/pclfonts" doins ${S}/urwfonts/*.ttf dodoc ${S}/doc/ghostpcl.* ${S}/NEWS ${S}/README if use cups ; then exeinto "/usr/lib/cups/filter" doexe ${FILESDIR}/pcltops if [ `grep -c pcltops /etc/cups/mime.convs` = 0 ]; then cat ${FILESDIR}/mime.convs /etc/cups/mime.convs mime.convs cat ${FILESDIR}/mime.types /etc/cups/mime.types mime.types insinto /etc/cups doins mime.convs mime.types fi fi einfo "Use the PCLFONTSOURCE environment variable to use more fonts" einfo "as stored in /usr/share/fonts/pclfonts" }