From mboxrd@z Thu Jan 1 00:00:00 1970 From: m8r-y0v7u9@mailinator.com Subject: [PATCH] r: make and install info files Date: Tue, 30 Jun 2015 10:53:17 +0200 (CEST) Message-ID: <20150630085317.ADF86D56E8@emkei.cz> Reply-To: m8r-y0v7u9@mailinator.com Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9rsp-0002XF-Jd for guix-devel@gnu.org; Tue, 30 Jun 2015 05:31:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9rsm-0001bD-BX for guix-devel@gnu.org; Tue, 30 Jun 2015 05:31:15 -0400 Received: from emkei.cz ([46.167.245.71]:53394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9rsm-0001b4-3y for guix-devel@gnu.org; Tue, 30 Jun 2015 05:31:12 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/statistics.scm (r)[arguments]: make and install info files diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 0b9e081..0dfe25d 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -63,7 +63,23 @@ 'check 'set-timezone ;; Some tests require the timezone to be set. (lambda _ (setenv "TZ" "UTC")) - %standard-phases) + (alist-cons-after + 'install 'install-info + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Install the Info manual, unless Texinfo is missing. + (or (not (assoc-ref inputs "texinfo")) + (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))))) + %standard-phases)) #:configure-flags '("--with-blas" "--with-lapack"