[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/06: gnu: guile-ncurses: Run tests with a locale that's actually avail
From: |
Ludovic Courtès |
Subject: |
05/06: gnu: guile-ncurses: Run tests with a locale that's actually available. |
Date: |
Mon, 09 Mar 2015 22:51:55 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit b0b727808b0b3466959b3f7143d35435834df0ee
Author: Ludovic Courtès <address@hidden>
Date: Mon Mar 9 23:34:39 2015 +0100
gnu: guile-ncurses: Run tests with a locale that's actually available.
* gnu/packages/guile.scm (guile-ncurses)[arguments]: Add 'change-locale'
phase.
---
gnu/packages/guile.scm | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index ea18bdf..9fde949 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -237,17 +237,25 @@ many readers as needed).")
(string-append "--with-guilesitedir="
(assoc-ref %outputs "out")
"/share/guile/site/2.0"))
- #:phases (alist-cons-after
- 'install 'post-install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (dir (string-append out "/share/guile/site/"))
- (files (find-files dir ".scm")))
- (substitute* files
- (("\"libguile-ncurses\"")
- (format #f "\"~a/lib/libguile-ncurses\""
- out)))))
- %standard-phases)))
+ #:phases (alist-cons-before
+ 'check 'change-locale
+ (lambda _
+ ;; Use the locale that's actually available in the build
+ ;; environment.
+ (substitute* "test/f009_form_wide.test"
+ (("en_US\\.utf8")
+ "en_US.UTF-8")))
+ (alist-cons-after
+ 'install 'post-install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (dir (string-append out "/share/guile/site/"))
+ (files (find-files dir ".scm")))
+ (substitute* files
+ (("\"libguile-ncurses\"")
+ (format #f "\"~a/lib/libguile-ncurses\""
+ out)))))
+ %standard-phases))))
(home-page "http://www.gnu.org/software/guile-ncurses/")
(synopsis "Guile bindings to ncurses")
(description
- branch master updated (c426e61 -> 116244d), Ludovic Courtès, 2015/03/09
- 03/06: gnu: Add Ploticus., Ludovic Courtès, 2015/03/09
- 02/06: Add Alexander to 'AUTHORS'., Ludovic Courtès, 2015/03/09
- 05/06: gnu: guile-ncurses: Run tests with a locale that's actually available.,
Ludovic Courtès <=
- 01/06: gnu: Add rxvt-unicode., Ludovic Courtès, 2015/03/09
- 06/06: services: Statically report duplicate dmd service identifiers., Ludovic Courtès, 2015/03/09
- 04/06: gnu: wget: Update to 1.16.3., Ludovic Courtès, 2015/03/09