Archived
1
0
Fork 0

gnu: uncrustify: use new style and gexp.

* gnu/packages/code.scm (uncrustify): use new style and gexp.
[native-inputs]: remove label.
[arguments]: use gexp and remove tail #t.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Zheng Junjie 2023-09-06 18:51:09 +08:00 committed by Ludovic Courtès
parent ca5fae4f26
commit c0bfa12666
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -805,20 +805,18 @@ independent targets.")
(base32 (base32
"17x9p5pqgzjchi9xhskp4kq7ag4chmsgbkvwym5m2b9zwm6qykpm")))) "17x9p5pqgzjchi9xhskp4kq7ag4chmsgbkvwym5m2b9zwm6qykpm"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs (list python-wrapper))
`(("python" ,python-wrapper)))
(arguments (arguments
`(#:phases (list #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'unpack-etc (add-after 'unpack 'unpack-etc
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
;; Configuration samples are not installed by default. ;; Configuration samples are not installed by default.
(let* ((output (assoc-ref outputs "out")) (let* ((output (assoc-ref outputs "out"))
(etcdir (string-append output "/etc"))) (etcdir (string-append output "/etc")))
(for-each (lambda (l) (for-each (lambda (l)
(install-file l etcdir)) (install-file l etcdir))
(find-files "etc" "\\.cfg$"))) (find-files "etc" "\\.cfg$"))))))))
#t)))))
(home-page "https://uncrustify.sourceforge.net/") (home-page "https://uncrustify.sourceforge.net/")
(synopsis "Code formatter for C and other related languages") (synopsis "Code formatter for C and other related languages")
(description (description