summaryrefslogtreecommitdiff
path: root/distro/packages/gawk.scm
diff options
context:
space:
mode:
Diffstat (limited to 'distro/packages/gawk.scm')
-rw-r--r--distro/packages/gawk.scm31
1 files changed, 21 insertions, 10 deletions
diff --git a/distro/packages/gawk.scm b/distro/packages/gawk.scm
index 3bc4a8d8f1..6fed7f8b70 100644
--- a/distro/packages/gawk.scm
+++ b/distro/packages/gawk.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -35,15 +35,26 @@
(sha256
(base32 "0sss7rhpvizi2a88h6giv0i7w5h07s2fxkw3s6n1hqvcnhrfgbb0"))))
(build-system gnu-build-system)
- (arguments (case-lambda
- ((system)
- (if (string=? system "i686-cygwin")
- '(#:tests? #f) ; work around test failure on Cygwin
- '(#:parallel-tests? #f))) ; test suite fails in parallel
- ((system cross-system)
- '(#:parallel-tests? #f))))
- (inputs `(("libsigsegv" ,libsigsegv) ; headers
- ("libsigsegv/lib" ,libsigsegv "lib"))) ; library
+ (arguments
+ (case-lambda
+ ((system)
+ `(#:parallel-tests? #f ; test suite fails in parallel
+
+ ;; Work around test failure on Cygwin.
+ #:tests? ,(not (string=? system "i686-cygwin"))
+
+ #:phases (alist-cons-before
+ 'configure 'set-shell-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Refer to the right shell.
+ (let ((bash (assoc-ref inputs "bash")))
+ (substitute* "io.c"
+ (("/bin/sh")
+ (string-append bash "/bin/bash")))))
+ %standard-phases)))
+ ((system cross-system)
+ '(#:parallel-tests? #f))))
+ (inputs `(("libsigsegv" ,libsigsegv)))
(home-page "http://www.gnu.org/software/gawk/")
(synopsis "GNU implementation of the Awk programming language")
(description