gnu: emacs: Remove *.elc and autoloads from the tarball.
* gnu/packages/emacs.scm (emacs)[source]: Add 'snippet' to remove compiled and generated elisp files.
This commit is contained in:
parent
d16479c51e
commit
486f36eb9e
1 changed files with 12 additions and 1 deletions
|
@ -80,7 +80,18 @@
|
||||||
(base32
|
(base32
|
||||||
"0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx"))
|
"0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx"))
|
||||||
(patches (search-patches "emacs-exec-path.patch"
|
(patches (search-patches "emacs-exec-path.patch"
|
||||||
"emacs-source-date-epoch.patch"))))
|
"emacs-source-date-epoch.patch"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
;; Delete the bundled byte-compiled elisp files and
|
||||||
|
;; generated autoloads.
|
||||||
|
'(with-directory-excursion "lisp"
|
||||||
|
(for-each delete-file
|
||||||
|
(append (find-files "." "\\.elc$")
|
||||||
|
(find-files "." "loaddefs\\.el$")
|
||||||
|
;; This is the only "autoloads" file that
|
||||||
|
;; does not have "*loaddefs.el" name.
|
||||||
|
'("eshell/esh-groups.el")))))))
|
||||||
(build-system glib-or-gtk-build-system)
|
(build-system glib-or-gtk-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
|
Reference in a new issue