[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: emacs: Remove *.elc and autoloads from the tarball.
From: |
Alex Kost |
Subject: |
01/06: gnu: emacs: Remove *.elc and autoloads from the tarball. |
Date: |
Tue, 24 May 2016 08:47:53 +0000 (UTC) |
alezost pushed a commit to branch master
in repository guix.
commit 486f36eb9eee508589c6edc99f4e194e105cc1ff
Author: Alex Kost <address@hidden>
Date: Thu May 19 11:01:40 2016 +0300
gnu: emacs: Remove *.elc and autoloads from the tarball.
* gnu/packages/emacs.scm (emacs)[source]: Add 'snippet' to remove
compiled and generated elisp files.
---
gnu/packages/emacs.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 18898e9..ae02a07 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -80,7 +80,18 @@
(base32
"0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx"))
(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)
(arguments
`(#:phases
- branch master updated (d16479c -> 8eeb301), Alex Kost, 2016/05/24
- 03/06: build-system/emacs: Use 'emacs-minimal' by default., Alex Kost, 2016/05/24
- 04/06: gnu: Move emacs for building from inputs to native-inputs., Alex Kost, 2016/05/24
- 02/06: gnu: Add emacs-minimal., Alex Kost, 2016/05/24
- 01/06: gnu: emacs: Remove *.elc and autoloads from the tarball.,
Alex Kost <=
- 05/06: gnu: Use 'emacs-minimal' instead of 'emacs-no-x'., Alex Kost, 2016/05/24
- 06/06: gnu: Add emacs-clojure-mode., Alex Kost, 2016/05/24