gnu: emacs-polymode-ansible: Fix package.

* gnu/packages/emacs-xyz.scm (emacs-polymode-ansible)[arguments]: Ignore
script for generating keywords from Ansible, but install other files.  Require
`systemd' library so `validate-compiled-autoloads' doesn't barf.
[propagated-inputs]: Add emacs-systemd-mode.

Change-Id: If67f8150852089f10cb7be19d96372177ce2e979
This commit is contained in:
Nicolas Goaziou 2024-08-20 12:59:56 +02:00
parent dc704e3b6c
commit 7ed52500c9
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -22504,19 +22504,27 @@ (define-public emacs-polymode-ansible
(build-system emacs-build-system)
(arguments
(list
#:include #~(list "maint/poly-ansible-jinja2-filters-generator.el")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'move-source-files
(lambda _
(let ((el-files (find-files "./lisp" ".*\\.el$")))
(for-each (lambda (f) (copy-file f (basename f)))
el-files)))))))
el-files))))
;; Autoloads file include a reference to "systemd-autoload-regexp".
;; Require `systemd' to load its definition and let
;; `validate-compiled-autoloads' phase run peacefully.
(add-after 'make-autoloads 'require-systemd-mode
(lambda _
(substitute* "polymode-ansible-autoloads.el"
((";;; Code:" lead)
(string-append lead "\n(require 'systemd)"))))))))
(propagated-inputs
(list emacs-ansible
emacs-ansible-doc
emacs-jinja2-mode
emacs-polymode
emacs-systemd-mode
emacs-yaml-mode))
(properties '((upstream-name . "poly-ansible")))
(home-page "https://gitlab.com/mavit/poly-ansible/")