[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
103/201: build: glib-or-gtk-build-system: Simplify the wrap-all-programs
From: |
guix-commits |
Subject: |
103/201: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase. |
Date: |
Mon, 1 Nov 2021 23:18:49 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 9edc01e76d6d79a94f2140b8f2bb21f14727baf5
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)
- 99/201: gnu: python-setuptools-scm: Update to 6.3.2, (continued)
- 99/201: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/11/01
- 112/201: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/11/01
- 110/201: gnu: Add docbook-xsl-ns., guix-commits, 2021/11/01
- 77/201: gnu: tzdata: Update to 2021e., guix-commits, 2021/11/01
- 81/201: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/11/01
- 89/201: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/11/01
- 83/201: gnu: gcc-5: Fix powerpc64le-linux build, guix-commits, 2021/11/01
- 92/201: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/11/01
- 94/201: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., guix-commits, 2021/11/01
- 97/201: gnu: Add python-flit-core., guix-commits, 2021/11/01
- 103/201: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase.,
guix-commits <=
- 106/201: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/11/01
- 107/201: gnu: lsof: Disable the LTlock test., guix-commits, 2021/11/01
- 105/201: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/01
- 102/201: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/11/01
- 111/201: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/01
- 115/201: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/11/01
- 130/201: gnu: webkitgtk: Update to 2.34.1., guix-commits, 2021/11/01
- 122/201: gnu: heimdal: Fix build., guix-commits, 2021/11/01
- 133/201: gnu: python-flit: Update to 3.3.0., guix-commits, 2021/11/01
- 149/201: gnu: meson: Update to 0.60.0., guix-commits, 2021/11/01