summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2022-11-01 00:25:20 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-11-01 00:46:31 +0100
commit41a5720be9f0dd105e53ac73253445b966288ac7 (patch)
treee1c4fd3ebb927cc161a795877b9fac92458859a9 /gnu
parent7fd9c40f602c2aae32772992d36866e25d15993f (diff)
downloadguix-41a5720be9f0dd105e53ac73253445b966288ac7.tar.gz
gnu: emacs-lice-el: Improve package style.
* gnu/packages/emacs-xyz.scm (emacs-lice-el)[arguments]: Use G-expressions.
<#:include>: Add "template" directory instead of installing files manually.
<#:phases>: Use ELPA-DIRECTORY.  Remove trailing #T.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm26
1 files changed, 9 insertions, 17 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 85aa8ac136..f3e11a3733 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21911,23 +21911,15 @@ Magit.")
                 "06plnrxj6kgnl9mjcbc48mgagpa60yyyyribwicmcgg9pgrs0wad"))))
     (build-system emacs-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-template-directory
-           (lambda* (#:key outputs #:allow-other-keys)
-             (chmod "lice.el" #o666)
-             (emacs-substitute-variables "lice.el"
-               ("lice:system-template-directory"
-                (string-append (assoc-ref outputs "out")
-                               "/share/emacs-lice-el/template")))
-             #t))
-         (add-after 'install 'install-templates
-           (lambda* (#:key outputs #:allow-other-keys)
-             (copy-recursively
-              "template"
-              (string-append (assoc-ref outputs "out")
-                             "/share/emacs-lice-el/template"))
-             #t)))))
+     (list
+      #:include #~(cons "^template/" %default-include)
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-template-directory
+            (lambda _
+              (emacs-substitute-variables "lice.el"
+                ("lice:system-template-directory"
+                 (string-append (elpa-directory #$output) "/template"))))))))
     (home-page "https://github.com/buzztaiki/lice-el")
     (synopsis "License and header template for Emacs")
     (description "@code{lice.el} provides following features: