~ruther/guix-local

f4f4ced8dccba6bc0b7c5d5e4c90cdb6488d1faf — Ricardo Wurmus 10 years ago 28de8d2
gnu: r: Set default pager.

* gnu/packages/statistics.scm (r)[arguments]: Add phase "set-default-pager" to
  avoid "false" as a default pager.
1 files changed, 10 insertions(+), 5 deletions(-)

M gnu/packages/statistics.scm
M gnu/packages/statistics.scm => gnu/packages/statistics.scm +10 -5
@@ 58,11 58,16 @@
                            (assoc-ref %outputs "out")
                            "/lib/R/lib"))
       #:phases
       (alist-cons-before
        'check 'set-timezone
        ;; Some tests require the timezone to be set.
        (lambda _ (setenv "TZ" "UTC"))
        %standard-phases)
       (modify-phases %standard-phases
         (add-before
          'configure 'set-default-pager
          ;; Set default pager to "cat", because otherwise it is "false",
          ;; making "help()" print nothing at all.
          (lambda _ (setenv "PAGER" "cat") #t))
         (add-before
          'check 'set-timezone
          ;; Some tests require the timezone to be set.
          (lambda _ (setenv "TZ" "UTC") #t)))
       #:configure-flags
       '("--with-blas"
         "--with-lapack"