--- xpdf-1.01.ebuild Mon Jul 8 04:40:30 2002 +++ xpdf-1.01-r1.ebuild Wed Jul 10 19:25:28 2002 @@ -13,7 +13,8 @@ DEPEND="virtual/x11 >=media-libs/freetype-2.0.9 - >=media-libs/t1lib-1.3" + >=media-libs/t1lib-1.3 + app-text/ghostscript" src_compile() { ./configure --enable-freetype2 \ @@ -21,8 +22,27 @@ --with-freetype2-includes=/usr/include/freetype2 \ --prefix=/usr \ --mandir=/usr/share/man \ + --sysconfdir=/etc \ --with-gzip || die - + + cat > ${S}/xpdfrc << EOF +# use the Base-14 Type 1 fonts from ghostscript +displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb +displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb +displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb +displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb +displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb +displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb +displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb +displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb +displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb +displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb +displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb +displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb +displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb +displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb +EOF + make || die } @@ -31,7 +51,9 @@ # don't use builtin make install, as it doesn't compress manpages into /usr dodoc README ANNOUNCE CHANGES - doman doc/*.1 + doman doc/*.[1-8] dobin xpdf/pdfimages xpdf/pdfinfo xpdf/pdftopbm dobin xpdf/pdftops xpdf/pdftotext xpdf/xpdf + insinto /etc + doins xpdfrc }