guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: guile-ncurses: Build a UTF-8 locale for the tests.


From: Mark H. Weaver
Subject: 01/01: gnu: guile-ncurses: Build a UTF-8 locale for the tests.
Date: Wed, 14 Jan 2015 01:38:38 +0000

mhw pushed a commit to branch core-updates
in repository guix.

commit a0ba3fc52028d84d18bfb0af3cd4f5c7e1fe9d8c
Author: Mark H Weaver <address@hidden>
Date:   Tue Jan 13 20:37:57 2015 -0500

    gnu: guile-ncurses: Build a UTF-8 locale for the tests.
    
    * gnu/packages/guile.scm (guile-ncurses)[arguments]: Add 'install-locales'
      phase.
---
 gnu/packages/guile.scm |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 0900768..c0c5ced 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -262,7 +262,16 @@ many readers as needed).")
                       (("\"libguile-ncurses\"")
                        (format #f "\"~a/lib/libguile-ncurses\""
                                out)))))
-                 %standard-phases)))
+                 (alist-cons-before
+                  'check 'install-locales
+                  (lambda _
+                    ;; One of the tests requires the availability of a UTF-8
+                    ;; locale and otherwise fails.
+                    (setenv "LOCPATH" (getcwd))
+                    (zero? (system* "localedef" "--no-archive"
+                                    "--prefix" (getcwd) "-i" "en_US"
+                                    "-f" "UTF-8" "./en_US.utf8")))
+                  %standard-phases))))
     (home-page "http://www.gnu.org/software/guile-ncurses/";)
     (synopsis "Guile bindings to ncurses")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]