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:
parent
7fd9c40f60
commit
41a5720be9
1 changed files with 9 additions and 17 deletions
|
@ -21911,23 +21911,15 @@ Magit.")
|
||||||
"06plnrxj6kgnl9mjcbc48mgagpa60yyyyribwicmcgg9pgrs0wad"))))
|
"06plnrxj6kgnl9mjcbc48mgagpa60yyyyribwicmcgg9pgrs0wad"))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:include #~(cons "^template/" %default-include)
|
||||||
(add-after 'unpack 'patch-template-directory
|
#:phases
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
#~(modify-phases %standard-phases
|
||||||
(chmod "lice.el" #o666)
|
(add-after 'unpack 'patch-template-directory
|
||||||
(emacs-substitute-variables "lice.el"
|
(lambda _
|
||||||
("lice:system-template-directory"
|
(emacs-substitute-variables "lice.el"
|
||||||
(string-append (assoc-ref outputs "out")
|
("lice:system-template-directory"
|
||||||
"/share/emacs-lice-el/template")))
|
(string-append (elpa-directory #$output) "/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)))))
|
|
||||||
(home-page "https://github.com/buzztaiki/lice-el")
|
(home-page "https://github.com/buzztaiki/lice-el")
|
||||||
(synopsis "License and header template for Emacs")
|
(synopsis "License and header template for Emacs")
|
||||||
(description "@code{lice.el} provides following features:
|
(description "@code{lice.el} provides following features:
|
||||||
|
|
Reference in a new issue