Accepting request 710661 from GNOME:Next
Add upstream port to new gtksourceview OBS-URL: https://build.opensuse.org/request/show/710661 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/sushi?expand=0&rev=79
This commit is contained in:
parent
d2f6134f77
commit
b695047858
98
sushi-port-to-gtksourceview4.patch
Normal file
98
sushi-port-to-gtksourceview4.patch
Normal file
@ -0,0 +1,98 @@
|
||||
From 8b2ec7f5e6ad39e04aa9bd562022d66163f50d19 Mon Sep 17 00:00:00 2001
|
||||
From: Joel Ong <joel.ong@yale.edu>
|
||||
Date: Mon, 1 Apr 2019 14:26:02 -0400
|
||||
Subject: [PATCH] workaround for having both gtksourceview 3 and 4 installed.
|
||||
Fixes #12.
|
||||
|
||||
---
|
||||
src/js/viewers/text.js | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/js/viewers/text.js b/src/js/viewers/text.js
|
||||
index 86a53b7..9566adb 100644
|
||||
--- a/src/js/viewers/text.js
|
||||
+++ b/src/js/viewers/text.js
|
||||
@@ -23,6 +23,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
+imports.gi.versions.GtkSource = '3.0';
|
||||
+
|
||||
const Gdk = imports.gi.Gdk;
|
||||
const GtkClutter = imports.gi.GtkClutter;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
--
|
||||
2.21.0
|
||||
|
||||
From bafeb19233325a7fc7c2e82b488abfb7a7556f61 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Blanchard <tchaik@gmx.com>
|
||||
Date: Sun, 19 May 2019 22:31:37 +0200
|
||||
Subject: [PATCH] Port to GtkSourceView 4
|
||||
|
||||
GtkSourceView 3 isn't maintained any more.
|
||||
|
||||
https://gitlab.gnome.org/GNOME/sushi/issues/6
|
||||
---
|
||||
flatpak/org.gnome.NautilusPreviewer.json | 4 ++--
|
||||
meson.build | 2 +-
|
||||
src/js/viewers/text.js | 2 +-
|
||||
src/libsushi/meson.build | 2 +-
|
||||
4 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/flatpak/org.gnome.NautilusPreviewer.json b/flatpak/org.gnome.NautilusPreviewer.json
|
||||
index 4565b82..9a60827 100644
|
||||
--- a/flatpak/org.gnome.NautilusPreviewer.json
|
||||
+++ b/flatpak/org.gnome.NautilusPreviewer.json
|
||||
@@ -102,8 +102,8 @@
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
- "url": "http://download.gnome.org/sources/gtksourceview/3.24/gtksourceview-3.24.8.tar.xz",
|
||||
- "sha256": "1e9bb8ff190db705deb916dd23ff681f0e8803aec407bf0fd64c7e615ac436fe"
|
||||
+ "url": "https://download.gnome.org/sources/gtksourceview/4.2/gtksourceview-4.2.0.tar.xz",
|
||||
+ "sha256": "c431eb234dc83c7819e58f77dd2af973252c7750da1c9d125ddc94268f94f675"
|
||||
}
|
||||
]
|
||||
},
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 56398d9..538dc4b 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -19,7 +19,7 @@ gstreamer_base_dep = dependency('gstreamer-base-1.0')
|
||||
gstreamer_pbutils_dep = dependency('gstreamer-pbutils-1.0')
|
||||
gstreamer_tag_dep = dependency('gstreamer-tag-1.0')
|
||||
gtk_dep = dependency('gtk+-3.0', version: '>=3.13.2')
|
||||
-gtksourceview_dep = dependency('gtksourceview-3.0')
|
||||
+gtksourceview_dep = dependency('gtksourceview-4', version: '>=4.0.3')
|
||||
harfbuzz_dep = dependency('harfbuzz', version: '>=0.9.9')
|
||||
introspection_dep = dependency('gobject-introspection-1.0', version: '>=1.0.1')
|
||||
musicbrainz_dep = dependency('libmusicbrainz5')
|
||||
diff --git a/src/js/viewers/text.js b/src/js/viewers/text.js
|
||||
index 9566adb..a044fbe 100644
|
||||
--- a/src/js/viewers/text.js
|
||||
+++ b/src/js/viewers/text.js
|
||||
@@ -23,7 +23,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-imports.gi.versions.GtkSource = '3.0';
|
||||
+imports.gi.versions.GtkSource = '4';
|
||||
|
||||
const Gdk = imports.gi.Gdk;
|
||||
const GtkClutter = imports.gi.GtkClutter;
|
||||
diff --git a/src/libsushi/meson.build b/src/libsushi/meson.build
|
||||
index c8ff6fa..66ef646 100644
|
||||
--- a/src/libsushi/meson.build
|
||||
+++ b/src/libsushi/meson.build
|
||||
@@ -62,7 +62,7 @@ gnome.generate_gir(
|
||||
'GstTag-1.0',
|
||||
'GdkPixbuf-2.0',
|
||||
'Gtk-3.0',
|
||||
- 'GtkSource-3.0',
|
||||
+ 'GtkSource-4',
|
||||
'EvinceDocument-3.0',
|
||||
],
|
||||
install: true,
|
||||
--
|
||||
2.21.0
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 20:08:08 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Add sushi-port-to-gtksourceview4.patch: Port to gtksourceview4.
|
||||
Following this patch, replace pkgconfig(gtksourceview-3.0) with
|
||||
pkgconfig(gtksourceview-4) BuildRequires.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 10 13:00:13 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
|
@ -24,6 +24,8 @@ License: SUSE-GPL-2.0-with-plugin-exception
|
||||
Group: Productivity/File utilities
|
||||
URL: https://www.gnome.org
|
||||
Source0: https://download.gnome.org/sources/sushi/3.32/%{name}-%{version}.tar.xz
|
||||
# PATCH-FIX-UPSTREAM sushi-port-to-gtksourceview4.patch -- Port to gtksourceview4
|
||||
Patch0: sushi-port-to-gtksourceview4.patch
|
||||
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig
|
||||
@ -41,7 +43,7 @@ BuildRequires: pkgconfig(gstreamer-1.0)
|
||||
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
|
||||
BuildRequires: pkgconfig(gstreamer-tag-1.0)
|
||||
BuildRequires: pkgconfig(gtk+-3.0) >= 3.13.2
|
||||
BuildRequires: pkgconfig(gtksourceview-3.0)
|
||||
BuildRequires: pkgconfig(gtksourceview-4) >= 4.0.3
|
||||
BuildRequires: pkgconfig(harfbuzz) >= 0.9.9
|
||||
BuildRequires: pkgconfig(libmusicbrainz5)
|
||||
BuildRequires: pkgconfig(webkit2gtk-4.0)
|
||||
|
Loading…
Reference in New Issue
Block a user