diff mbox series

[bug#48215] gnu: crm114: Use emacs-build-system install phase.

Message ID 20210504050651.7643-1-arunisaac@systemreboot.net
State Accepted
Headers show
Series [bug#48215] gnu: crm114: Use emacs-build-system install phase. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Arun Isaac May 4, 2021, 5:06 a.m. UTC
* gnu/packages/mail.scm (crm114)[arguments]: Install the crm114 emacs mode
using the install phase from emacs-build-system, instead of in the custom
pre-install phase. Run the make-autoloads phase after this new
install-emacs-mode phase.
---
 gnu/packages/mail.scm | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Comments

Leo Prikler May 5, 2021, 8:11 a.m. UTC | #1
Pushed as c1036042a52ea25fa833b5b30d18b9f198b74727.
Thanks!
diff mbox series

Patch

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index e4ddf5ee9b..ea5a3d2b1e 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -4432,12 +4432,11 @@  score.")
                ;; Install mail related crm scripts.
                (for-each (lambda (file)
                            (install-file file (string-append out "/bin")))
-                         (list "mailfilter.crm" "mailreaver.crm" "mailtrainer.crm"))
-               ;; Create emacs site-lisp directory so that the install phase
-               ;; can install crm-mode.
-               (mkdir-p (string-append out "/share/emacs/site-lisp")))))
+                         (list "mailfilter.crm" "mailreaver.crm" "mailtrainer.crm")))))
+         (add-after 'install 'install-emacs-mode
+           (assoc-ref emacs:%standard-phases 'install))
          ;; Run phases from the emacs build system.
-         (add-after 'install 'make-autoloads
+         (add-after 'install-emacs-mode 'make-autoloads
            (assoc-ref emacs:%standard-phases 'make-autoloads))
          (add-after 'make-autoloads 'enable-autoloads-compilation
            (assoc-ref emacs:%standard-phases 'enable-autoloads-compilation))