[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/76: build: glib-or-gtk-build-system: Add gtk 4.0 support.
From: |
guix-commits |
Subject: |
16/76: build: glib-or-gtk-build-system: Add gtk 4.0 support. |
Date: |
Mon, 27 Sep 2021 10:18:13 -0400 (EDT) |
mothacehe pushed a commit to branch wip-gnome40
in repository guix.
commit 2d22108bd3ba9bed611e0e870a268dcea76bc667
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Fri Sep 24 15:26:05 2021 +0000
build: glib-or-gtk-build-system: Add gtk 4.0 support.
* guix/build/glib-or-gtk-build-system.scm (gtk-module-directories): Add gtk
4.0 support.
---
guix/build/glib-or-gtk-build-system.scm | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/guix/build/glib-or-gtk-build-system.scm
b/guix/build/glib-or-gtk-build-system.scm
index 8d3c368..9f4cc09 100644
--- a/guix/build/glib-or-gtk-build-system.scm
+++ b/guix/build/glib-or-gtk-build-system.scm
@@ -51,12 +51,24 @@
"Check for the existence of \"libdir/gtk-v.0\" in INPUTS. Return a list
with all found directories."
(let* ((version
- (if (string-match "gtk\\+-3"
- (or (assoc-ref inputs "gtk+")
- (assoc-ref inputs "source")
- "gtk+-3")) ; we default to version 3
- "3.0"
- "2.0"))
+ (cond
+ ((string-match "gtk-4"
+ (or (assoc-ref inputs "gtk")
+ (assoc-ref inputs "source")
+ ""))
+ "4.0")
+ ((string-match "gtk\\+-3"
+ (or (assoc-ref inputs "gtk+")
+ (assoc-ref inputs "source")
+ ""))
+ "3.0")
+ ((string-match "gtk\\+-2"
+ (or (assoc-ref inputs "gtk+")
+ (assoc-ref inputs "source")
+ ""))
+ "2.0")
+ (else
+ "4.0"))) ; We default to version 4.0.
(gtk-module
(lambda (input prev)
(let* ((in (match input
- 15/76: gnu: gnome-todo: Update to 40.1., (continued)
- 15/76: gnu: gnome-todo: Update to 40.1., guix-commits, 2021/09/27
- 19/76: gnu: libgweather: Update to 40.0., guix-commits, 2021/09/27
- 22/76: gnu: gedit: Update to 40.1., guix-commits, 2021/09/27
- 24/76: gnu: amtk: Update to 5.3.1., guix-commits, 2021/09/27
- 27/76: gnu: baobab: Update to 40.0., guix-commits, 2021/09/27
- 33/76: gnu: epiphany: Update to 40.3., guix-commits, 2021/09/27
- 43/76: gnu: gnome-online-accounts: Update to 3.40.0., guix-commits, 2021/09/27
- 42/76: gnu: yelp: Update to 40.3., guix-commits, 2021/09/27
- 45/76: gnu: gnome-contacts: Update to 40.0., guix-commits, 2021/09/27
- 46/76: gnu: eog-plugins: Update to 3.26.7., guix-commits, 2021/09/27
- 16/76: build: glib-or-gtk-build-system: Add gtk 4.0 support.,
guix-commits <=
- 20/76: gnu: gnome-calendar: Update to 40.2., guix-commits, 2021/09/27
- 23/76: gnu: Add tepl-5., guix-commits, 2021/09/27
- 31/76: gnu: orca: Update to 40.0., guix-commits, 2021/09/27
- 32/76: gnu: sushi: Update to 3.38.1., guix-commits, 2021/09/27
- 39/76: gnu: gnome-terminal: Update to 3.40.3., guix-commits, 2021/09/27
- 37/76: gnu: gnome-maps: Update to 40.5., guix-commits, 2021/09/27
- 21/76: gnu: tepl: Update to 6.00.0., guix-commits, 2021/09/27
- 25/76: gnu: gnome-latex: Update to 3.38.0., guix-commits, 2021/09/27
- 34/76: gnu: file-roller: Update to 3.40.0., guix-commits, 2021/09/27
- 36/76: gnu: gnome-clocks: Update to 40.0., guix-commits, 2021/09/27