From 9d8ffc347d89760c298c78799ec7b735a9a08418 Mon Sep 17 00:00:00 2001 From: ormorph Date: Thu, 2 Mar 2023 22:30:42 +0300 Subject: Fixed kword build error for new versions of libpaper-2.0.x Signed-off-by: ormorph --- trinity-apps/kword/files/kword-libpaper.patch | 11 +++++++++++ trinity-apps/kword/kword-14.0.13.ebuild | 1 + 2 files changed, 12 insertions(+) create mode 100644 trinity-apps/kword/files/kword-libpaper.patch (limited to 'trinity-apps/kword') 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="" -- cgit v1.2.1