From baae04ddbf5edd0512d7144d937aa508de112070 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 24 Mar 2018 23:07:18 -0400 Subject: [PATCH 20/30] gnu: emacs-esxml: Fix byte compilation. * gnu/packages/emacs.scm (emacs-esxml): Add phases to patch sources. --- gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 335142b55..4773c34b1 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7269,6 +7269,32 @@ structures such as plists, alists and hash-tables.") (base32 "00vv8a75wdklygdyr4km9mc2ismxak69c45jmcny41xl44rp9x8m")))) (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; See: https://github.com/tali713/esxml/pull/28. + (add-after 'unpack 'fix-css-lite.el + (lambda _ + (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)")) + #t)) + (add-after 'fix-css-lite.el 'fix-esxml-form.el + (lambda _ + (substitute* "esxml-form.el" + ((",esxml-form-field-defn") + "#'esxml-form-field-defn")))) + ;; See: https://github.com/tali713/esxml/issues/25 + (add-after 'fix-esxml-form.el 'rm-broken-test-file.el + (lambda _ + (delete-file "esxpath.el")))))) + (propagated-inputs + `(("emacs-kv" ,emacs-kv))) (home-page "https://github.com/tali713/esxml/") (synopsis "SXML for EmacsLisp") (description "This is XML/XHTML done with S-Expressions in EmacsLisp. -- 2.16.1