[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: build-system/glib-or-gtk: Use 'for-each' and 'cut' as appropriate
From: |
Ludovic Courtès |
Subject: |
02/05: build-system/glib-or-gtk: Use 'for-each' and 'cut' as appropriate. |
Date: |
Mon, 01 Dec 2014 21:41:10 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 4efdabb810717cee845de30a81799c953915d1eb
Author: Ludovic Courtès <address@hidden>
Date: Mon Dec 1 22:15:49 2014 +0100
build-system/glib-or-gtk: Use 'for-each' and 'cut' as appropriate.
* guix/build/glib-or-gtk-build-system.scm (wrap-all-programs): Use
'for-each' instead of 'map' in for-effect contexts. Use 'cut' instead
of 'lambda' when appropriate.
---
guix/build/glib-or-gtk-build-system.scm | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/guix/build/glib-or-gtk-build-system.scm
b/guix/build/glib-or-gtk-build-system.scm
index bed7eb6..011f9b3 100644
--- a/guix/build/glib-or-gtk-build-system.scm
+++ b/guix/build/glib-or-gtk-build-system.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Federico Beffa <address@hidden>
+;;; Copyright © 2014 Ludovic Courtès <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -22,6 +23,7 @@
#:use-module (ice-9 match)
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
+ #:use-module (srfi srfi-26)
#:export (%standard-phases
glib-or-gtk-build))
@@ -96,13 +98,15 @@ if found."
#f)))
(cond
((and schemas-env-var gtk-mod-env-var)
- (map (lambda (prog)
- (wrap-program prog schemas-env-var gtk-mod-env-var))
- bin-list))
+ (for-each (cut wrap-program <> schemas-env-var gtk-mod-env-var)
+ bin-list))
(schemas-env-var
- (map (lambda (prog) (wrap-program prog schemas-env-var)) bin-list))
+ (for-each (cut wrap-program <> schemas-env-var)
+ bin-list))
(gtk-mod-env-var
- (map (lambda (prog) (wrap-program prog gtk-mod-env-var)) bin-list)))))
+ (for-each (cut wrap-program <> gtk-mod-env-var)
+ bin-list)))
+ #t))
(define* (compile-glib-schemas #:key inputs outputs #:allow-other-keys)
"Implement phase \"glib-or-gtk-compile-schemas\": compile \"glib\" schemas