[arch-commits] Commit in abiword/trunk (3 files)

Jan de Groot jgc at archlinux.org
Fri Apr 29 13:05:20 UTC 2016


    Date: Friday, April 29, 2016 @ 15:05:20
  Author: jgc
Revision: 266625

upgpkg: abiword 3.0.1-6

Add libwps dependency

Added:
  abiword/trunk/abiword-3.0.1-libwps-0.4.patch
Modified:
  abiword/trunk/PKGBUILD
Deleted:
  abiword/trunk/abiword.install

--------------------------------+
 PKGBUILD                       |   13 ++++++++----
 abiword-3.0.1-libwps-0.4.patch |   41 +++++++++++++++++++++++++++++++++++++++
 abiword.install                |   12 -----------
 3 files changed, 50 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-29 07:32:13 UTC (rev 266624)
+++ PKGBUILD	2016-04-29 13:05:20 UTC (rev 266625)
@@ -5,18 +5,17 @@
 
 pkgname=abiword
 pkgver=3.0.1
-pkgrel=5
+pkgrel=6
 pkgdesc='Fully-featured word processor'
 arch=('i686' 'x86_64')
 license=('GPL')
 url='http://www.abisource.com'
 depends=('fribidi' 'wv' 'goffice' 'librsvg' 'enchant' 'desktop-file-utils'
-         'redland' 'libical' 'gtk-update-icon-cache' 'loudmouth' 'libwpg' 'libwmf' 'link-grammar' 
+         'redland' 'libical' 'gtk-update-icon-cache' 'loudmouth' 'libwpg' 'libwps' 'libwmf' 'link-grammar' 
          'gtkmathview' 'aiksaurus' 'libxslt' 'libsoup' 'libots' 'libgsf' 'psiconv')
-makedepends=('pkgconfig' 'asio' 'boost' 'gobject-introspection' 'python2' 'libwpd')
+makedepends=('pkgconfig' 'asio' 'boost' 'gobject-introspection' 'python2' 'libwpd' 'libwps')
 conflicts=('abiword-plugins')
 replaces=('abiword-plugins')
-install=abiword.install
 options=('!makeflags')
 source=(http://abisource.com/downloads/$pkgname/$pkgver/source/$pkgname-$pkgver.tar.gz
         abiword-3.0.0-librevenge.patch
@@ -23,6 +22,7 @@
         abiword-3.0.0-link-grammar-5.patch
         abiword-3.0.0-link-grammar-5-second.patch
         link-grammar-panic.patch
+	abiword-3.0.1-libwps-0.4.patch
         aiksaurus-plugin.m4
         command-plugin.m4
         gnutls-3.4.0.patch)
@@ -31,6 +31,7 @@
             '6d88800f1e16becd69ed93d5f070793a56b9f162f7d886c71756643bcaed7ef5'
             'd2c80da81a339634a7a4ee4cef12f7ee968f2c2a8c2f75533b6713b71f0d61fd'
             '94d1e638f7b85123dc2282d2e59b982bde6ad0dbbe1b6b54351e610c5a0ea578'
+            'f1375b2ab7af2959717cba0259ba546c8e75ef849e84263bdc253019e849cb2a'
             '5f80a2f94f9929cdba9809c5e1a87cd5d537a2518bb879bfb9eab51a71c8dac1'
             '2f26826e9d59d80dacd0dae4aceb815804eaa75954e47507a0897794f33e45be'
             'b393e26c19f92901f64d2bae54c86708ea7dd0b647572088a8ac0cd2eec89100')
@@ -45,9 +46,13 @@
   patch -Np1 -i ../abiword-3.0.0-link-grammar-5.patch
   patch -Np1 -i ../abiword-3.0.0-link-grammar-5-second.patch
   patch -Np0 -i ../link-grammar-panic.patch
+
   # Fix build with new gnutls 3.4.x
   patch -Np0 -i ../gnutls-3.4.0.patch
 
+  # Fix libwpd 0.4 detection
+  patch -Np1 -i ../abiword-3.0.1-libwps-0.4.patch
+
   # python2 fix
   sed -i 's/python -c/python2 -c/' src/gi-overrides/Makefile.{am,in}
   

Added: abiword-3.0.1-libwps-0.4.patch
===================================================================
--- abiword-3.0.1-libwps-0.4.patch	                        (rev 0)
+++ abiword-3.0.1-libwps-0.4.patch	2016-04-29 13:05:20 UTC (rev 266625)
@@ -0,0 +1,41 @@
+From 6fcb43935bab90d61858eb1bc0f150c843586c54 Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at 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
+

Deleted: abiword.install
===================================================================
--- abiword.install	2016-04-29 07:32:13 UTC (rev 266624)
+++ abiword.install	2016-04-29 13:05:20 UTC (rev 266625)
@@ -1,12 +0,0 @@
-post_install() {
-  update-desktop-database -q
-  gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}



More information about the arch-commits mailing list