-# Copyright © 2012, 2014-2015 Nick Bowler
-# License GPLv3+: GNU General Public License version 3 or later.
+# Copyright © 2012, 2014-2015, 2020 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or any later version.
+# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
-EAPI=5
+EAPI=7
-inherit eutils
+inherit desktop xdg
DESCRIPTION="An X viewer for PDF files"
HOMEPAGE="http://www.foolabs.com/xpdf/"
-SRC_URI="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.04.tar.gz"
+SRC_URI="https://xpdfreader-dl.s3.amazonaws.com/old/$P.tar.gz"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
RDEPEND="$DEPEND
media-fonts/urw-fonts"
-src_prepare() {
- epatch "$FILESDIR/xpdf-Add-Gentoo-font-path.patch"
- epatch_user
-}
+PATCHES=("$FILESDIR/xpdf-Add-Gentoo-font-path.patch")
src_configure() {
- econf --with-freetype2-includes=/usr/include/freetype2
+ econf --with-freetype2-includes=${EROOT%/}/usr/include/freetype2
}
src_install() {