[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/80: build: glib-or-gtk-build-system: Add gtk 4.0 support.
From: |
guix-commits |
Subject: |
16/80: build: glib-or-gtk-build-system: Add gtk 4.0 support. |
Date: |
Tue, 28 Sep 2021 07:21:23 -0400 (EDT) |
mothacehe pushed a commit to branch wip-gnome40
in repository guix.
commit a6c197f7578bd83abf136fb5ccbeadee3f8379db
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
- 08/80: gnu: gnome-menus: Update to 3.36.0., (continued)
- 08/80: gnu: gnome-menus: Update to 3.36.0., guix-commits, 2021/09/28
- 11/80: gnu: gnome-disk-utility: Update to 40.2., guix-commits, 2021/09/28
- 09/80: gnu: gnome-user-docs: Update to 40.5., guix-commits, 2021/09/28
- 36/80: gnu: gnome-clocks: Update to 40.0., guix-commits, 2021/09/28
- 07/80: gnu: gnome-shell-extensions: Update to 40.4., guix-commits, 2021/09/28
- 06/80: gnu: gnote: Update to 40.2., guix-commits, 2021/09/28
- 13/80: gnu: libportal: Update to 0.4., guix-commits, 2021/09/28
- 19/80: gnu: libgweather: Update to 40.0., guix-commits, 2021/09/28
- 23/80: gnu: Add tepl-5., guix-commits, 2021/09/28
- 25/80: gnu: gnome-latex: Update to 3.38.0., guix-commits, 2021/09/28
- 16/80: build: glib-or-gtk-build-system: Add gtk 4.0 support.,
guix-commits <=
- 31/80: gnu: orca: Update to 40.0., guix-commits, 2021/09/28
- 38/80: gnu: vte: Update to 0.64.2., guix-commits, 2021/09/28
- 29/80: gnu: gnome-session: Update to 40.1., guix-commits, 2021/09/28
- 33/80: gnu: epiphany: Update to 40.3., guix-commits, 2021/09/28
- 43/80: gnu: gnome-online-accounts: Update to 3.40.0., guix-commits, 2021/09/28
- 30/80: gnu: gnome-bluetooth: Update to 3.34.5., guix-commits, 2021/09/28
- 54/80: gnu: gnome-settings-daemon: Update to 40.0.1., guix-commits, 2021/09/28
- 55/80: gnu: gnome-keyring: Update to 40.0., guix-commits, 2021/09/28
- 49/80: gnu: Add fuse-3., guix-commits, 2021/09/28
- 57/80: gnu: Remove gnome-getting-started-docs., guix-commits, 2021/09/28