[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
103/227: build: glib-or-gtk-build-system: Simplify the wrap-all-programs
From: |
guix-commits |
Subject: |
103/227: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase. |
Date: |
Thu, 11 Nov 2021 12:30:16 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit eb619cda362959c61ec107acceee11c0017995f7
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)
- 73/227: bluez: Update to 5.61., (continued)
- 73/227: bluez: Update to 5.61., guix-commits, 2021/11/11
- 84/227: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/11/11
- 80/227: gnu: diffutils: Update to 3.8., guix-commits, 2021/11/11
- 85/227: gnu: Add ld-gold-wrapper., guix-commits, 2021/11/11
- 89/227: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/11/11
- 93/227: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/11/11
- 99/227: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/11/11
- 59/227: Revert gstreamer update to 1.19.2., guix-commits, 2021/11/11
- 101/227: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/11/11
- 98/227: gnu: Add python-tomli., guix-commits, 2021/11/11
- 103/227: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase.,
guix-commits <=
- 105/227: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/11
- 106/227: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/11/11
- 107/227: gnu: lsof: Disable the LTlock test., guix-commits, 2021/11/11
- 109/227: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/11
- 112/227: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/11/11
- 114/227: gnu: rest: Use libsoup-minimal., guix-commits, 2021/11/11
- 115/227: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/11/11
- 60/227: gnu: gstreamer: Update to 1.18.5., guix-commits, 2021/11/11
- 66/227: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/11/11
- 69/227: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/11/11