diff options
-rw-r--r-- | app-text/xpdf/ChangeLog | 12 | ||||
-rw-r--r-- | app-text/xpdf/files/digest-xpdf-1.01-r1 | 1 | ||||
-rw-r--r-- | app-text/xpdf/xpdf-1.01-r1.ebuild | 70 |
3 files changed, 82 insertions, 1 deletions
diff --git a/app-text/xpdf/ChangeLog b/app-text/xpdf/ChangeLog index 785373ad574a..1ef2a9684888 100644 --- a/app-text/xpdf/ChangeLog +++ b/app-text/xpdf/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for app-text/xpdf # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/ChangeLog,v 1.4 2002/05/22 11:22:47 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/ChangeLog,v 1.5 2002/07/14 13:11:35 aliz Exp $ + +*xpdf-1.01-r1 (13 Jul 2002) + + 13 Jul 2002; Daniel Ahlberg <aliz@telia.com> xpdf-1.01-r1.ebuild + + This is a new ebuild for xpdf which uses ghostscript T1 fonts which look much nicer, as advised in + http://www.foolabs.com/xpdf/problems.html#t1lib-base14 . This adds a dependency on app-text/ghostscript. + It also fixes a bug in the current ebuild which misses the xpdfrc.5 manpage. + + ebuild submitted by José Fonseca <j_r_fonseca@yahaoo.co.uk> *xpdf-1.01 (22 May 2002) diff --git a/app-text/xpdf/files/digest-xpdf-1.01-r1 b/app-text/xpdf/files/digest-xpdf-1.01-r1 new file mode 100644 index 000000000000..7561493bc7d8 --- /dev/null +++ b/app-text/xpdf/files/digest-xpdf-1.01-r1 @@ -0,0 +1 @@ +MD5 36d5b3458dfead16e3ec4df6596ec6f9 xpdf-1.01.tar.gz 441968 diff --git a/app-text/xpdf/xpdf-1.01-r1.ebuild b/app-text/xpdf/xpdf-1.01-r1.ebuild new file mode 100644 index 000000000000..1fc500c145d0 --- /dev/null +++ b/app-text/xpdf/xpdf-1.01-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/xpdf-1.01-r1.ebuild,v 1.1 2002/07/14 13:11:35 aliz Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="An X Viewer for PDF Files" +SRC_URI="ftp://ftp.foolabs.com/pub/xpdf/${P}.tar.gz" +HOMEPAGE="http://www.foolabs.com/xpdf/xpdf.html" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86" + +DEPEND="virtual/x11 + >=media-libs/freetype-2.0.9 + >=media-libs/t1lib-1.3 + app-text/ghostscript" + +src_compile() { + ./configure --enable-freetype2 \ + --with-freetype2-library=/usr/lib \ + --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 +} + + +src_install() { + # don't use builtin make install, as it doesn't compress manpages + into /usr + dodoc README ANNOUNCE CHANGES + doman doc/*.[1-8] + dobin xpdf/pdfimages xpdf/pdfinfo xpdf/pdftopbm + dobin xpdf/pdftops xpdf/pdftotext xpdf/xpdf + insinto /etc + doins xpdfrc +} + +pkg_postinst() { + einfo + einfo "HINT: To have even nicer results add these lines to your ~/.xpdfrc" + einfo + einfo " include /etc/xpdfrc" + einfo " t1libControl high" + einfo " freetypeControl high" + einfo +} + |