From: m8r-y0v7u9@mailinator.com
To: guix-devel@gnu.org
Subject: Re: [PATCH] r: make and install info files
Date: Wed, 1 Jul 2015 13:31:45 +0200 (CEST) [thread overview]
Message-ID: <20150701113145.63EB3D5553@emkei.cz> (raw)
Thanks for the review and comments. Below is a revised patch.
It seemed to work ok here.
--------
* gnu/packages/statistics.scm (r)[arguments]: make and install info files
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 91d988e..35355f7 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -58,11 +58,23 @@
(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 'check 'set-timezone
+ ;; Some tests require the timezone to be set.
+ (lambda _ (setenv "TZ" "UTC")))
+ (add-after 'install 'install-info
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (and (zero? (system* "make" "info"))
+ (let ((infodir (string-append out "/share/info")))
+ (mkdir-p infodir)
+ (chdir "./doc/manual")
+ (for-each (lambda (info)
+ (copy-file
+ info
+ (string-append infodir "/" info)))
+ (find-files "." "\\.info$"))
+ #t))))))
#:configure-flags
'("--with-blas"
"--with-lapack"
next reply other threads:[~2015-07-01 11:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 11:31 m8r-y0v7u9 [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-30 8:53 [PATCH] r: make and install info files m8r-y0v7u9
2015-06-30 14:40 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150701113145.63EB3D5553@emkei.cz \
--to=m8r-y0v7u9@mailinator.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).