[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/181: gnu: gtksourceview: Update to 5.5.1.
From: |
guix-commits |
Subject: |
52/181: gnu: gtksourceview: Update to 5.5.1. |
Date: |
Tue, 13 Sep 2022 02:25:26 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 560a47aa9331d8d293701746bdb460a0071338c1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Sep 4 21:40:50 2022 -0400
gnu: gtksourceview: Update to 5.5.1.
* gnu/packages/gtk.scm (gtksourceview): Update to 5.5.1.
[build-system]: Use meson-build-system.
[phases]: Use gexps.
{disable-gtk-update-icon-cache}: New phase.
{pre-check}: Use search-input-file.
[native-inputs]: Remove labels. Remove intltool and itstool. Add
gettext-minimal, gi-docgen and gobject-introspection-next.
[propagated-inputs]: Remove labels. Remove gtk+. Add fontconfig, fribidi,
gtk, pango-next and pcre2. Replace glib with glib-next.
(gtksourceview-4): New variable.
(gtksourceview-3): Inherit from gtksourceview-4 and adjust accordingly.
* gnu/packages/gnome.scm (tepl): Replace gtksourceview with gtksourceview-4.
(sushi)[inputs]: Likewise.
* gnu/packages/guile-xyz.scm (nomad): Likewise.
---
gnu/packages/gnome.scm | 4 +-
gnu/packages/gtk.scm | 145 ++++++++++++++++++++++++++++-----------------
gnu/packages/guile-xyz.scm | 2 +-
3 files changed, 95 insertions(+), 56 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 14b6727934..654032ba25 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1060,7 +1060,7 @@ between different kinds of computer systems.")
(list amtk
glib
gtk+
- gtksourceview
+ gtksourceview-4
libxml2
uchardet))
(synopsis "Text editor product line")
@@ -1627,7 +1627,7 @@ sharing to the masses.")
gjs
gst-plugins-base
gstreamer
- gtksourceview
+ gtksourceview-4
harfbuzz
libepoxy
libmusicbrainz
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 58ae7bf766..697bf3c018 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -91,6 +91,7 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages m4)
#:use-module (gnu packages man)
+ #:use-module (gnu packages pcre)
#:use-module (gnu packages pdf)
#:use-module (gnu packages perl)
#:use-module (gnu packages perl-check)
@@ -610,63 +611,101 @@ printing and other features typical of a source code
editor.")
(home-page "https://developer.gnome.org/gtksourceview/")))
(define-public gtksourceview
- (package
- (name "gtksourceview")
- (version "4.2.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/gtksourceview/"
- (version-major+minor version) "/"
- "gtksourceview-" version ".tar.xz"))
- (sha256
- (base32
- "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
- (build-system gnu-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before
- 'check 'pre-check
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((xorg-server (assoc-ref inputs "xorg-server")))
- ;; Tests require a running X server.
- (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
- (setenv "DISPLAY" ":1")
- ;; For the missing /etc/machine-id.
- (setenv "DBUS_FATAL_WARNINGS" "0")
- #t))))))
- (native-inputs
- `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
- ("intltool" ,intltool)
- ("itstool" ,itstool)
- ("gobject-introspection" ,gobject-introspection)
- ("pkg-config" ,pkg-config)
- ("vala" ,vala)
- ;; For testing.
- ("xorg-server" ,xorg-server-for-tests)
- ("shared-mime-info" ,shared-mime-info)))
- (propagated-inputs
- ;; gtksourceview-3.0.pc refers to all these.
- (list glib gtk+ libxml2))
- (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
- (synopsis "GNOME source code widget")
- (description "GtkSourceView is a text widget that extends the standard
+ (package
+ (name "gtksourceview")
+ (version "5.5.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnome/sources/gtksourceview/"
+ (version-major+minor version) "/"
+ "gtksourceview-" version ".tar.xz"))
+ (sha256
+ (base32
+ "068dqhacvs65gnmrryahm6qs0q050admlpqqi1gy8wgh2p6qrraa"))))
+ (build-system meson-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-gtk-update-icon-cache
+ (lambda _
+ (substitute* "meson.build"
+ (("gtk_update_icon_cache: true")
+ "gtk_update_icon_cache: false"))))
+ (add-before 'check 'pre-check
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ (let ((Xvfb (search-input-file (or native-inputs inputs)
+ "bin/Xvfb")))
+ ;; Tests require a running X server.
+ (system (string-append Xvfb " :1 &"))
+ (setenv "DISPLAY" ":1")
+ ;; For the missing /etc/machine-id.
+ (setenv "DBUS_FATAL_WARNINGS" "0")))))))
+ (native-inputs
+ (list `(,glib "bin") ; for glib-genmarshal, etc.
+ gettext-minimal
+ gi-docgen
+ gobject-introspection-next
+ pkg-config
+ vala
+ ;; For testing.
+ xorg-server-for-tests
+ shared-mime-info))
+ (propagated-inputs
+ ;; gtksourceview-5.pc refers to all these.
+ (list fontconfig
+ fribidi
+ glib-next
+ gtk
+ libxml2
+ pcre2
+ pango-next))
+ (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
+ (synopsis "GNOME source code widget")
+ (description "GtkSourceView is a text widget that extends the standard
GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
highlighting and other features typical of a source code editor.")
- (license license:lgpl2.1+)))
+ (license license:lgpl2.1+)))
+
+;;; This older version is used by tepl.
+(define-public gtksourceview-4
+ (package
+ (inherit gtksourceview)
+ (version "4.8.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnome/sources/gtksourceview/"
+ (version-major+minor version) "/"
+ "gtksourceview-" version ".tar.xz"))
+ (sha256
+ (base32
+ "10n61sa0g447nx73yapb00z57shp48gfvk1lv1s29ji0cd81j063"))))
+ (native-inputs
+ (modify-inputs (package-native-inputs gtksourceview)
+ (replace "gobject-introspection" gobject-introspection)))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs gtksourceview)
+ (replace "gtk" gtk+)
+ (replace "pango-next" pango)
+ (replace "glib" glib)))))
(define-public gtksourceview-3
- (package (inherit gtksourceview)
- (name "gtksourceview")
- (version "3.24.10")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
+ (package
+ (inherit gtksourceview-4)
+ (name "gtksourceview")
+ (version "3.24.11")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1zbpj283b5ycz767hqz5kdq02wzsga65pp4fykvhg8xj6x50f6v9"))))
+ (build-system gnu-build-system)
+ (arguments (substitute-keyword-arguments (package-arguments gtksourceview)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'disable-gtk-update-icon-cache)))))))
(define-public gdk-pixbuf
(package
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 1affb90027..56f0bb8acc 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -3524,7 +3524,7 @@ perform geometrical transforms on JPEG images.")
("gtk+" ,gtk+)
("gtk+:bin" ,gtk+ "bin")
("webkitgtk" ,webkitgtk)
- ("gtksourceview" ,gtksourceview)
+ ("gtksourceview" ,gtksourceview-4)
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
("vte" ,vte)
;; Gstreamer
- 94/181: gnu: phodav: Update to 3.0., (continued)
- 94/181: gnu: phodav: Update to 3.0., guix-commits, 2022/09/13
- 128/181: gnu: gexiv2: Update to 0.14.0., guix-commits, 2022/09/13
- 123/181: gnu: eog-plugins: Update to 42.1., guix-commits, 2022/09/13
- 141/181: gnu: libgovirt: Update to 0.3.9., guix-commits, 2022/09/13
- 142/181: gnu: gfbgraph: Update to 0.2.5 and enable tests., guix-commits, 2022/09/13
- 176/181: gnu: gnome-maps: Update to 43.rc., guix-commits, 2022/09/13
- 178/181: gnu: gpaste: Update to 42.1., guix-commits, 2022/09/13
- 171/181: gnu: chatty: Fix indentation., guix-commits, 2022/09/13
- 43/181: gnu: mozjs: Add 91.13.0., guix-commits, 2022/09/13
- 48/181: gnu: accountsservice: Add bash-minimal to inputs., guix-commits, 2022/09/13
- 52/181: gnu: gtksourceview: Update to 5.5.1.,
guix-commits <=
- 60/181: gnu: gnome-session: Update to 42.0., guix-commits, 2022/09/13
- 64/181: gnu: gnome-disk-utility: Update to 42.0., guix-commits, 2022/09/13
- 80/181: import: gnome: Improve version handling logic., guix-commits, 2022/09/13
- 86/181: gnu: gnome-boxes: Update to 42.3., guix-commits, 2022/09/13
- 93/181: gnu: gnome-music: Update to 42.1., guix-commits, 2022/09/13
- 113/181: gnu: vte-ng: Update to 0.59.0., guix-commits, 2022/09/13
- 104/181: gnu: gupnp-av: Update to 0.14.1., guix-commits, 2022/09/13
- 109/181: gnu: drawing: Update to 1.0.1., guix-commits, 2022/09/13
- 117/181: gnu: libgnome-games-support: Update to 2.0.0., guix-commits, 2022/09/13
- 125/181: gnu: d-feet: Update to 0.3.16., guix-commits, 2022/09/13