gnu: emacs-clojure-mode: Fix build.

* gnu/packages/emacs-xyz.scm
(emacs-clojure-mode)[#:phases]: Add "fix-tests" phase.
This commit is contained in:
Oleg Pykhalov 2020-08-29 22:59:02 +03:00
parent 6d69886d73
commit 0c9ead5028
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -7183,7 +7183,17 @@ (define-public emacs-clojure-mode
("emacs-s" ,emacs-s)))
(arguments
`(#:tests? #t
#:test-command '("buttercup")))
#:test-command '("buttercup")
#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-tests
;; See: https://github.com/clojure-emacs/clojure-mode/issues/568
(lambda _
(substitute* "clojure-mode.el"
(("\\(list \\(cdr project\\)\\)" line)
(string-append "\"Return the list of directory roots of the PROJECT.\"\n"
line)))
#t)))))
(home-page "https://github.com/clojure-emacs/clojure-mode")
(synopsis "Major mode for Clojure code")
(description