summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trinity-apps/kword/files/kword-libpaper.patch11
-rw-r--r--trinity-apps/kword/kword-14.0.13.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/trinity-apps/kword/files/kword-libpaper.patch b/trinity-apps/kword/files/kword-libpaper.patch
new file mode 100644
index 00000000..74e79cb9
--- /dev/null
+++ b/trinity-apps/kword/files/kword-libpaper.patch
@@ -0,0 +1,11 @@
+--- a/filters/kword/pdf/xpdf/xpdf/GlobalParams.cpp
++++ b/filters/kword/pdf/xpdf/xpdf/GlobalParams.cpp
+@@ -146,7 +146,7 @@
+ displayCIDFonts = new GHash();
+ displayNamedCIDFonts = new GHash();
+ #ifdef HAVE_PAPER_H
+- char *paperName;
++ const char *paperName;
+ const struct paper *paperType;
+ paperinit();
+ if ((paperName = systempapername())) {
diff --git a/trinity-apps/kword/kword-14.0.13.ebuild b/trinity-apps/kword/kword-14.0.13.ebuild
index 9bb28dfb..f45d3aa4 100644
--- a/trinity-apps/kword/kword-14.0.13.ebuild
+++ b/trinity-apps/kword/kword-14.0.13.ebuild
@@ -44,6 +44,7 @@ KMCOPYLIB="libkformula lib/kformula
libkspreadcommon kspread"
src_prepare() {
+ eapply "${FILESDIR}/kword-libpaper.patch"
local search_path="${TDEDIR}/${get_libdir}"
local libname dirname dirlist x
libname=""