summaryrefslogtreecommitdiff
path: root/libre/abiword/abiword-3.0.1-libwps-0.4.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-29 22:18:42 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-29 22:20:48 -0300
commit7eab0884793e31843a233f256d645829f7e72a07 (patch)
tree802e37a3717f98969b74f01ce72f7b60da6344f1 /libre/abiword/abiword-3.0.1-libwps-0.4.patch
parent779bb403662231d81cc7602836723cdbb74e03f6 (diff)
abiword-3.0.1-6.parabola1: add libwps dependency
Diffstat (limited to 'libre/abiword/abiword-3.0.1-libwps-0.4.patch')
-rw-r--r--libre/abiword/abiword-3.0.1-libwps-0.4.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/abiword/abiword-3.0.1-libwps-0.4.patch b/libre/abiword/abiword-3.0.1-libwps-0.4.patch
new file mode 100644
index 000000000..3c041a63e
--- /dev/null
+++ b/libre/abiword/abiword-3.0.1-libwps-0.4.patch
@@ -0,0 +1,41 @@
+From 6fcb43935bab90d61858eb1bc0f150c843586c54 Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon@redhat.com>
+Date: Sat, 6 Jun 2015 21:48:02 +0200
+Subject: [PATCH] adapt to libwps 0.4
+
+---
+ plugin-configure.m4 | 2 +-
+ plugins/wordperfect/plugin.m4 | 2 +-
+ plugins/wordperfect/xp/ie_imp_WordPerfect.cpp | 4 +++-
+ 3 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/plugins/wordperfect/plugin.m4 b/plugins/wordperfect/plugin.m4
+index 0aadbaf..bc32d48 100644
+--- a/plugins/wordperfect/plugin.m4
++++ b/plugins/wordperfect/plugin.m4
+@@ -1,6 +1,6 @@
+
+ wordperfect_pkgs="libwpd-0.10 $gsf_req"
+-wordperfect_wps_pkgs='libwps-0.3'
++wordperfect_wps_pkgs='libwps-0.4'
+ wordperfect_deps="no"
+
+ WORDPERFECT_CFLAGS=
+diff --git a/plugins/wordperfect/xp/ie_imp_WordPerfect.cpp b/plugins/wordperfect/xp/ie_imp_WordPerfect.cpp
+index bd19971..3e69f79 100644
+--- a/plugins/wordperfect/xp/ie_imp_WordPerfect.cpp
++++ b/plugins/wordperfect/xp/ie_imp_WordPerfect.cpp
+@@ -1389,7 +1389,9 @@ UT_Confidence_t IE_Imp_MSWorks_Sniffer::recognizeContents (GsfInput * input)
+ AbiWordperfectInputStream gsfInput(input);
+
+ libwps::WPSKind kind;
+- libwps::WPSConfidence confidence = libwps::WPSDocument::isFileFormatSupported(&gsfInput, kind);
++ libwps::WPSCreator creator;
++ bool needsEncoding = false;
++ libwps::WPSConfidence confidence = libwps::WPSDocument::isFileFormatSupported(&gsfInput, kind, creator, needsEncoding);
+
+ if (kind != libwps::WPS_TEXT)
+ confidence = libwps::WPS_CONFIDENCE_NONE;
+--
+2.4.2
+