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.
This commit is contained in:
Nicolas Goaziou 2022-11-01 00:25:20 +01:00
parent 7fd9c40f60
commit 41a5720be9
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -21911,23 +21911,15 @@ (define-public emacs-lice-el
"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: