From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: [PATCH] gnu: emacs-ag: build/install info Date: Mon, 10 Apr 2017 18:56:21 -0400 Message-ID: <86h91vswh6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxiEZ-0005m5-Kx for guix-devel@gnu.org; Mon, 10 Apr 2017 18:56:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxiEV-0000jX-R5 for guix-devel@gnu.org; Mon, 10 Apr 2017 18:56:31 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:33904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxiEV-0000jP-KT for guix-devel@gnu.org; Mon, 10 Apr 2017 18:56:27 -0400 Received: by mail-wr0-x22b.google.com with SMTP id z109so18085599wrb.1 for ; Mon, 10 Apr 2017 15:56:27 -0700 (PDT) Received: from g1 (c-73-167-118-254.hsd1.ma.comcast.net. [73.167.118.254]) by smtp.gmail.com with ESMTPSA id h3sm19043641wrb.43.2017.04.10.15.56.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Apr 2017 15:56:25 -0700 (PDT) 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" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Info source was included but not previously being built. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-emacs-ag-build-install-info.patch >From 5b757a33ffb1528621027aeecff07a7b95c5df39 Mon Sep 17 00:00:00 2001 From: George Clemmer Date: Mon, 10 Apr 2017 18:31:52 -0400 Subject: [PATCH] gnu: emacs-ag: build/install info * gnu/packages/emacs.scm (emacs-a): build/install info --- gnu/packages/emacs.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index cc14fd228..4e788830c 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) #:use-module (gnu packages ncurses) + #:use-module (gnu packages python) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls) @@ -1125,9 +1126,23 @@ than @code{electric-indent-mode}.") ("ag-executable" (string-append (assoc-ref inputs "the-silver-searcher") "/bin/ag"))) - #t))))) + #t)) + (add-before 'install 'make-info + (lambda _ + (with-directory-excursion "docs" + (unless (zero? (system* "make" "info")) + (error "makeinfo failed"))))) + (add-after 'install 'install-info + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (info (string-append out "/share/info"))) + (install-file "docs/_build/texinfo/agel.info" info) + #t)))))) (inputs `(("the-silver-searcher" ,the-silver-searcher))) + (native-inputs + `(("python-sphinx" ,python-sphinx) + ("texinfo" ,texinfo))) (propagated-inputs `(("dash" ,emacs-dash) ("s" ,emacs-s))) -- 2.12.2 --=-=-=--