-# Copyright © 2012, 2014-2015, 2020 Nick Bowler
+# Copyright © 2012, 2014-2015, 2020, 2022 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.
RDEPEND="$DEPEND
media-fonts/urw-fonts"
-PATCHES=("$FILESDIR/xpdf-Add-Gentoo-font-path.patch")
+PATCHES=(
+ "$FILESDIR/xpdf-Add-Gentoo-font-path.patch"
+ "$FILESDIR/xpdf-cve-2022-38171.patch"
+)
src_configure() {
econf --with-freetype2-includes=${EROOT%/}/usr/include/freetype2