mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +02:00
gnu: emacs-plantuml-mode: Refresh package.
* gnu/packages/emacs-xyz.scm (emacs-plantuml-mode): [arguments]: Improve style, rewrite using gexps. <phases>: Add symlink for tests in phase 'use-local-plantuml. <tests?>: Disable them for now. <test-command>: Set it. [native-inputs]: Add emacs-ert-runner, icedtea. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
2a275045a7
commit
f82152fd1e
1 changed files with 28 additions and 26 deletions
|
@ -41530,18 +41530,22 @@ PDDL files with syntax highlighting, templates, auto-completion, and more.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0yp41d2dmf3sx7qnl5x0zdjcr9y71b2wwc9m0q31v22xqn938ipc"))))
|
(base32 "0yp41d2dmf3sx7qnl5x0zdjcr9y71b2wwc9m0q31v22xqn938ipc"))))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:tests? #f ; Unclear why tests fail.
|
||||||
|
#:test-command #~(list "ert-runner")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'use-local-plantuml
|
(add-after 'unpack 'use-local-plantuml
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((plantuml (assoc-ref inputs "plantuml"))
|
(symlink (search-input-file inputs "/bin/plantuml")
|
||||||
(file "plantuml-mode.el"))
|
"bin/plantuml")
|
||||||
|
(let ((file "plantuml-mode.el"))
|
||||||
(chmod file #o644)
|
(chmod file #o644)
|
||||||
(emacs-substitute-variables file
|
(emacs-substitute-variables file
|
||||||
("plantuml-jar-path"
|
("plantuml-jar-path"
|
||||||
(string-append plantuml "/share/java/plantuml.jar"))
|
(search-input-file inputs "/share/java/plantuml.jar"))
|
||||||
("plantuml-executable-path"
|
("plantuml-executable-path"
|
||||||
(string-append plantuml "/bin/plantuml"))
|
(search-input-file inputs "/bin/plantuml"))
|
||||||
("plantuml-server-url" 'nil)
|
("plantuml-server-url" 'nil)
|
||||||
("plantuml-default-exec-mode" ''executable))
|
("plantuml-default-exec-mode" ''executable))
|
||||||
(emacs-batch-edit-file file
|
(emacs-batch-edit-file file
|
||||||
|
@ -41550,12 +41554,10 @@ PDDL files with syntax highlighting, templates, auto-completion, and more.")
|
||||||
(re-search-forward "(defun plantuml-download-jar")
|
(re-search-forward "(defun plantuml-download-jar")
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(kill-sexp))
|
(kill-sexp))
|
||||||
(basic-save-buffer)))
|
(basic-save-buffer)))))))))
|
||||||
#t))))))
|
(inputs (list plantuml))
|
||||||
(inputs
|
(native-inputs (list emacs-ert-runner icedtea))
|
||||||
(list plantuml))
|
(propagated-inputs (list emacs-dash))
|
||||||
(propagated-inputs
|
|
||||||
(list emacs-dash))
|
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(home-page "https://github.com/skuro/plantuml-mode")
|
(home-page "https://github.com/skuro/plantuml-mode")
|
||||||
(synopsis "Major mode for editing PlantUML sources")
|
(synopsis "Major mode for editing PlantUML sources")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue