gnu: emacs-ddskk: Use newer package style.

* gnu/packages/emacs-xyz.scm (emacs-ddskk)[arguments]:
Convert to list of G-Expressions.
Use #$output rather than the outputs alist.
Drop trailing #t.
(emascs-ddskk-nicola): Likewise.

Change-Id: Ie6ed743ded35b55fa55bb61d02353456a0f2c79f
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
gemmaro 2024-06-22 08:02:55 +09:00 committed by Liliana Marie Prikler
parent 6e6bb64375
commit d69270b696
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -37033,22 +37033,21 @@ (define-public emacs-ddskk
(base32 "0vfdbab3ncns8wwrna8h6y2w0grkphzr9s65sgxq98lpqmxbbr72"))))
(build-system gnu-build-system)
(arguments
`(#:modules ((guix build gnu-build-system)
(list #:modules '((guix build gnu-build-system)
(guix build utils)
(guix build emacs-utils))
#:imported-modules (,@%gnu-build-system-modules
#:imported-modules `(,@%gnu-build-system-modules
(guix build emacs-utils))
#:test-target "test"
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(lambda _
(emacs-substitute-variables "SKK-MK"
("PREFIX" (assoc-ref outputs "out"))
("PREFIX" #$output)
("LISPDIR" '(expand-file-name "/share/emacs/site-lisp" PREFIX))
("SKK_PREFIX" "")
("SKK_INFODIR" '(expand-file-name "info" PREFIX)))
#t))
("SKK_INFODIR" '(expand-file-name "info" PREFIX)))))
(add-after 'unpack 'fix-test
(lambda _
(substitute* "Makefile"
@ -37071,24 +37070,23 @@ (define-public emacs-ddskk-nicola
(propagated-inputs
(list emacs-ddskk))
(arguments
`(#:make-flags
(let ((out (assoc-ref %outputs "out")))
(append
(list (string-append "PREFIX=" out)
(string-append "LISPDIR=" out "/share/emacs/site-lisp"))))
#:tests? #f ; no tests in this subtree
,@(substitute-keyword-arguments (package-arguments emacs-ddskk)
(list #:make-flags
#~(append
(list (string-append "PREFIX=" #$output)
(string-append "LISPDIR=" #$output "/share/emacs/site-lisp")))
;; no tests in this subtree
#:tests? #f)
(substitute-keyword-arguments (package-arguments emacs-ddskk)
((#:phases phases)
`(modify-phases ,phases
#~(modify-phases #$phases
(add-after 'fix-test 'chdir
(lambda _
(chdir "nicola")
#t))
(chdir "nicola")))
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(lambda _
(emacs-substitute-sexps "NICOLA-DDSKK-CFG"
("setq NICOLA-DDSKK_PREFIX" ""))
#t)))))))
("setq NICOLA-DDSKK_PREFIX" "")))))))))
(synopsis "Nicola layout for Daredevil SKK")
(description
"Daredevil SKK is a version of @acronym{SKK, Simple Kana to Kanji