From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 3/4] gnu: mu: Install emacs autoloads. Date: Sun, 8 May 2016 13:21:50 +0300 Message-ID: <1462702911-18777-4-git-send-email-alezost@gmail.com> References: <1462702911-18777-1-git-send-email-alezost@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azLqp-0006P1-AE for guix-devel@gnu.org; Sun, 08 May 2016 06:22:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azLqj-0001Zj-0t for guix-devel@gnu.org; Sun, 08 May 2016 06:22:14 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:33328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azLqi-0001Zd-QD for guix-devel@gnu.org; Sun, 08 May 2016 06:22:08 -0400 Received: by mail-lf0-x242.google.com with SMTP id j8so9209604lfd.0 for ; Sun, 08 May 2016 03:22:08 -0700 (PDT) Received: from localhost.localdomain ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id i3sm4210493lbd.44.2016.05.08.03.22.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 May 2016 03:22:07 -0700 (PDT) In-Reply-To: <1462702911-18777-1-git-send-email-alezost@gmail.com> 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 * gnu/packages/mail.scm (mu)[arguments]: Add 'install-emacs-autoloads' phase. Use appropriate modules and imported-modules. --- gnu/packages/mail.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 48379f2..8998fdb 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -365,7 +365,12 @@ repository and Maildir/IMAP as LOCAL repository.") ("gmime" ,gmime) ("tzdata" ,tzdata))) ;for mu/test/test-mu-query.c (arguments - '(#:phases + `(#:modules ((guix build gnu-build-system) + (guix build utils) + (guix build emacs-utils)) + #:imported-modules (,@%gnu-build-system-modules + (guix build emacs-utils)) + #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-configure.ac ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e", @@ -385,6 +390,13 @@ repository and Maildir/IMAP as LOCAL repository.") (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) + #t)) + (add-after 'install 'install-emacs-autoloads + (lambda* (#:key outputs #:allow-other-keys) + (emacs-generate-autoloads + "mu4e" + (string-append (assoc-ref outputs "out") + "/share/emacs/site-lisp")) #t))))) (home-page "http://www.djcbsoftware.nl/code/mu/") (synopsis "Quickly find emails") -- 2.7.3