poppler: fix fonts-related paths

This commit is contained in:
Leonid Pliushch 2018-06-19 16:06:38 +03:00 committed by Fredrik Fornwall
parent 319aabcc11
commit 0960313a51
2 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://poppler.freedesktop.org/
TERMUX_PKG_DESCRIPTION="PDF rendering library"
TERMUX_PKG_VERSION=0.65.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=89c8cf73f83efda78c5a9bd37c28f4593ad0e8a51556dbe39ed81e1ae2dd8f07
TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz
# libcairo and littlecms is used by pdftocairo:

View File

@ -0,0 +1,20 @@
diff -uNr poppler-0.65.0/poppler/GlobalParams.cc poppler-0.65.0.mod/poppler/GlobalParams.cc
--- poppler-0.65.0/poppler/GlobalParams.cc 2018-05-19 18:05:25.000000000 +0300
+++ poppler-0.65.0.mod/poppler/GlobalParams.cc 2018-06-19 16:04:51.997503128 +0300
@@ -1239,11 +1239,11 @@
};
static const char *displayFontDirs[] = {
- "/usr/share/ghostscript/fonts",
- "/usr/local/share/ghostscript/fonts",
- "/usr/share/fonts/default/Type1",
- "/usr/share/fonts/default/ghostscript",
- "/usr/share/fonts/type1/gsfonts",
+ "@TERMUX_PREFIX@/share/ghostscript/fonts",
+ "@TERMUX_PREFIX@/local/share/ghostscript/fonts",
+ "@TERMUX_PREFIX@/share/fonts/default/Type1",
+ "@TERMUX_PREFIX@/share/fonts/default/ghostscript",
+ "@TERMUX_PREFIX@/share/fonts/type1/gsfonts",
NULL
};