[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
103/217: build: glib-or-gtk-build-system: Simplify the wrap-all-programs
From: |
guix-commits |
Subject: |
103/217: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase. |
Date: |
Sun, 14 Nov 2021 19:20:54 -0500 (EST) |
vagrantc pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 385f6eaf5043f26f101af11cfa2f3731e41b47f1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Oct 3 21:11:37 2021 -0400
build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase.
* guix/build/glib-or-gtk-build-system.scm (wrap-all-programs)
<handle-output>: Precisely build the list of variable specifications, rather
than relying on a bunch of conditionals.
---
guix/build/glib-or-gtk-build-system.scm | 59 ++++++++-------------------------
1 file changed, 13 insertions(+), 46 deletions(-)
diff --git a/guix/build/glib-or-gtk-build-system.scm
b/guix/build/glib-or-gtk-build-system.scm
index 9f4cc09..655f20c 100644
--- a/guix/build/glib-or-gtk-build-system.scm
+++ b/guix/build/glib-or-gtk-build-system.scm
@@ -169,52 +169,19 @@ add a dependency of that output on GLib and GTK+."
(alist-cons output directory inputs)))
(gio-mod-dirs (gio-module-directories
(alist-cons output directory inputs)))
- (data-env-var
- (if (not (null? datadirs))
- `("XDG_DATA_DIRS" ":" prefix ,datadirs)
- #f))
- (gtk-mod-env-var
- (if (not (null? gtk-mod-dirs))
- `("GTK_PATH" ":" prefix ,gtk-mod-dirs)
- #f))
- (gio-mod-env-var
- (if (not (null? gio-mod-dirs))
- `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-dirs)
- #f)))
- (cond
- ((and data-env-var gtk-mod-env-var gio-mod-env-var)
- (for-each (cut wrap-program <> #:sh (sh)
- data-env-var
- gtk-mod-env-var
- gio-mod-env-var)
- bin-list))
- ((and data-env-var gtk-mod-env-var (not gio-mod-env-var))
- (for-each (cut wrap-program <> #:sh (sh)
- data-env-var
- gtk-mod-env-var)
- bin-list))
- ((and data-env-var (not gtk-mod-env-var) gio-mod-env-var)
- (for-each (cut wrap-program <> #:sh (sh)
- data-env-var
- gio-mod-env-var)
- bin-list))
- ((and (not data-env-var) gtk-mod-env-var gio-mod-env-var)
- (for-each (cut wrap-program <> #:sh (sh)
- gio-mod-env-var
- gtk-mod-env-var)
- bin-list))
- ((and data-env-var (not gtk-mod-env-var) (not gio-mod-env-var))
- (for-each (cut wrap-program <> #:sh (sh)
- data-env-var)
- bin-list))
- ((and (not data-env-var) gtk-mod-env-var (not gio-mod-env-var))
- (for-each (cut wrap-program <> #:sh (sh)
- gtk-mod-env-var)
- bin-list))
- ((and (not data-env-var) (not gtk-mod-env-var) gio-mod-env-var)
- (for-each (cut wrap-program <> #:sh (sh)
- gio-mod-env-var)
- bin-list))))))))
+ (env-vars `(,@(if (not (null? datadirs))
+ (list `("XDG_DATA_DIRS" ":" prefix ,datadirs))
+ '())
+ ,@(if (not (null? gtk-mod-dirs))
+ (list `("GTK_PATH" ":" prefix ,gtk-mod-dirs))
+ '())
+ ,@(if (not (null? gio-mod-dirs))
+ (list `("GIO_EXTRA_MODULES" ":"
+ prefix ,gio-mod-dirs))
+ '()))))
+ (for-each (lambda (program)
+ (apply wrap-program program #:sh (sh) env-vars))
+ bin-list))))))
(for-each handle-output outputs)
#t)
- 46/217: gnu: gst-libav: Update to 1.19.2., (continued)
- 46/217: gnu: gst-libav: Update to 1.19.2., guix-commits, 2021/11/14
- 50/217: gnu: lib2geom: Update to 1.1., guix-commits, 2021/11/14
- 61/217: gnu: gst-plugins-base: Update to 1.18.5., guix-commits, 2021/11/14
- 58/217: gnu: polkit: Update to 0.120 and ungraft., guix-commits, 2021/11/14
- 70/217: gnu: python-keras: Enable parallel tests., guix-commits, 2021/11/14
- 52/217: Revert commits made to resolve a gdk-pixbuf+svg propagation issue., guix-commits, 2021/11/14
- 69/217: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/11/14
- 77/217: gnu: tzdata: Update to 2021e., guix-commits, 2021/11/14
- 79/217: gnu: diffutils: Fix signal processing., guix-commits, 2021/11/14
- 90/217: gnu: glade3: Remove sitecustomize.py workaround., guix-commits, 2021/11/14
- 103/217: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase.,
guix-commits <=
- 118/217: gnu: cmake-bootstrap: Update to 3.21.3., guix-commits, 2021/11/14
- 43/217: gnu: zxing-cpp: Update to 1.2.0., guix-commits, 2021/11/14
- 60/217: gnu: gstreamer: Update to 1.18.5., guix-commits, 2021/11/14
- 48/217: gnu: python-gst: Update to 1.19.2., guix-commits, 2021/11/14
- 55/217: gnu: abseil-cpp: Update to 20210324.2., guix-commits, 2021/11/14
- 65/217: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/11/14
- 64/217: gnu: gst-plugins-ugly: Update to 1.18.5., guix-commits, 2021/11/14
- 57/217: gnu: Add a missing copyright., guix-commits, 2021/11/14
- 53/217: gnu: googletest: Update to 1.11.0., guix-commits, 2021/11/14
- 66/217: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/11/14