1 # Copyright © 2012, 2014-2015, 2020, 2022 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
10 DESCRIPTION="An X viewer for PDF files"
11 HOMEPAGE="http://www.foolabs.com/xpdf/"
12 SRC_URI="https://xpdfreader-dl.s3.amazonaws.com/old/$P.tar.gz"
14 LICENSE="|| ( GPL-2 GPL-3 )"
18 DEPEND=">=x11-libs/motif-2.3:0
24 media-fonts/urw-fonts"
27 "$FILESDIR/xpdf-Add-Gentoo-font-path.patch"
28 "$FILESDIR/xpdf-cve-2022-38171.patch"
29 "$FILESDIR/xpdf-libpaper2.patch"
33 econf --with-freetype2-includes=${EROOT%/}/usr/include/freetype2
40 dodoc README ANNOUNCE CHANGES
41 newicon xpdf/xpdfIcon.xpm xpdf.xpm
44 newins doc/sample-xpdfrc xpdfrc
45 newdoc doc/sample-xpdfrc xpdfrc.example
47 insinto /usr/share/applications
48 doins "$FILESDIR/xpdf.desktop"