3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: emacs-esxml: Limit packaged files.

* gnu/packages/emacs-xyz.scm (emacs-esxml)[arguments]: Use full emacs.  Only
package two files.  Remove unnecessary phases.
This commit is contained in:
Nicolas Goaziou 2021-05-29 19:25:08 +02:00
parent ef8d95ceb8
commit 7de36f7575
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -15310,25 +15310,10 @@ Lisp.")
"1xzxmgsg0j72sf1vjh9gjswz3c29js0kqhm7r3jrqrh3a5agdnml"))))
(build-system emacs-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-sources
(lambda _
;; See: https://github.com/tali713/esxml/pull/28.
(substitute* "css-lite.el"
((";;; main interface")
(string-append ";;; main interface\n"
"(require 'cl-lib)"))
(("mapcan")
"cl-mapcan")
(("',\\(cl-mapcan #'process-css-rule rules\\)")
"(cl-mapcan #'process-css-rule ',rules)"))
(substitute* "esxml-form.el"
((",esxml-form-field-defn")
"#'esxml-form-field-defn"))
;; See: https://github.com/tali713/esxml/issues/25
(delete-file "esxpath.el")
#t)))))
`(#:emacs ,emacs ;need libxml
;; XXX: Only the two following files are meant to be packaged.
;; Byte-compiling the others Elisp files leads to build errors anyway.
#:include (list "esxml.el" "esxml-query.el")))
(propagated-inputs
`(("emacs-kv" ,emacs-kv)))
(home-page "https://github.com/tali713/esxml/")