[arch-commits] Commit in gnome-documents/trunk (PKGBUILD js60.diff)

Jan Steffens heftig at archlinux.org
Sun Sep 9 00:10:57 UTC 2018


    Date: Sunday, September 9, 2018 @ 00:10:57
  Author: heftig
Revision: 334153

3.29.91+6+gbc9b6cc1-2

Added:
  gnome-documents/trunk/js60.diff
Modified:
  gnome-documents/trunk/PKGBUILD

-----------+
 PKGBUILD  |   10 +++++++---
 js60.diff |   28 ++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-09 00:08:50 UTC (rev 334152)
+++ PKGBUILD	2018-09-09 00:10:57 UTC (rev 334153)
@@ -2,7 +2,7 @@
 
 pkgname=gnome-documents
 pkgver=3.29.91+6+gbc9b6cc1
-pkgrel=1
+pkgrel=2
 pkgdesc="A document manager application for GNOME"
 url="https://wiki.gnome.org/Apps/Documents"
 arch=(x86_64)
@@ -14,9 +14,11 @@
 groups=(gnome)
 _commit=bc9b6cc1838d0c97f6ae33c0f56ec1c7d3a32b48  # master
 source=("git+https://gitlab.gnome.org/GNOME/gnome-documents.git#commit=$_commit"
-        "git+https://gitlab.gnome.org/GNOME/libgd.git")
+        "git+https://gitlab.gnome.org/GNOME/libgd.git"
+        js60.diff)
 sha256sums=('SKIP'
-            'SKIP')
+            'SKIP'
+            '26e86a8a5185f0a4b564b0f4d6658bfa63bd65f1f1a4c0ac7416e183bca4a136')
 
 pkgver() {
   cd $pkgname
@@ -26,6 +28,8 @@
 prepare() {
   cd $pkgname
 
+  patch -Np1 -i ../js60.diff
+
   git submodule init
   git config --local submodule.subprojects/libgd.url "$srcdir/libgd"
   git submodule update

Added: js60.diff
===================================================================
--- js60.diff	                        (rev 0)
+++ js60.diff	2018-09-09 00:10:57 UTC (rev 334153)
@@ -0,0 +1,28 @@
+diff --git i/src/evinceview.js w/src/evinceview.js
+index 60c314c5..8f01128a 100644
+--- i/src/evinceview.js
++++ w/src/evinceview.js
+@@ -315,9 +315,9 @@ var EvinceView = new Lang.Class({
+             // the following invocation to work.
+             let evDoc = this._model.get_document();
+             evDoc.find_text();
+-        } catch (e if e instanceof TypeError) {
+-            canFind = false;
+         } catch (e) {
++            if (e instanceof TypeError)
++                canFind = false;
+         }
+ 
+         this.getAction('find').enabled = (this.hasPages && canFind);
+diff --git i/src/places.js w/src/places.js
+index 220cd311..0bebbde0 100644
+--- i/src/places.js
++++ w/src/places.js
+@@ -60,7 +60,6 @@ var PlacesDialog = new Lang.Class({
+             // This is a hack to find out if evDoc implements the
+             // EvDocument.DocumentLinks interface or not.
+             docHasLinks = evDoc.has_document_links();
+-        } catch (e if e instanceof TypeError) {
+         } catch (e) {
+         }
+ 



More information about the arch-commits mailing list