gnu: emacs-esxml: Fix byte compilation.

* gnu/packages/emacs.scm (emacs-esxml)[arguments]: Add fix-sources phase.

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
This commit is contained in:
Maxim Cournoyer 2018-03-24 23:07:18 -04:00 committed by Arun Isaac
parent 62950ec7e9
commit 9835a71d80
No known key found for this signature in database
GPG Key ID: 2E25EE8B61802BB3
1 changed files with 22 additions and 0 deletions

View File

@ -7340,6 +7340,28 @@ Lisp.")
(base32 (base32
"00vv8a75wdklygdyr4km9mc2ismxak69c45jmcny41xl44rp9x8m")))) "00vv8a75wdklygdyr4km9mc2ismxak69c45jmcny41xl44rp9x8m"))))
(build-system emacs-build-system) (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)))))
(propagated-inputs
`(("emacs-kv" ,emacs-kv)))
(home-page "https://github.com/tali713/esxml/") (home-page "https://github.com/tali713/esxml/")
(synopsis "SXML for EmacsLisp") (synopsis "SXML for EmacsLisp")
(description "This is XML/XHTML done with S-Expressions in EmacsLisp. (description "This is XML/XHTML done with S-Expressions in EmacsLisp.