gnu: weechat: Improve style.

* gnu/packages/irc.scm (weechat)[native-inputs]: Remove label.
[arguments]: Use G-expressions.

Change-Id: I08e2f4135760e61acbae915f045fb3838d965b25
This commit is contained in:
Zheng Junjie 2024-12-01 15:43:04 +08:00
parent 0cd8edf926
commit f9c3a6dd2a
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -383,11 +383,10 @@ (define-public weechat
(build-system cmake-build-system)
(outputs '("out" "doc"))
(native-inputs
`(("gettext-minimal" ,gettext-minimal)
("pkg-config" ,pkg-config)
,@(if (target-x86?)
`(("ruby-asciidoctor" ,ruby-asciidoctor))
'())))
(append (list gettext-minimal pkg-config)
(if (target-x86?)
(list ruby-asciidoctor)
'())))
(inputs
(list aspell
curl
@ -405,25 +404,25 @@ (define-public weechat
tcl
cjson))
(arguments
`(#:configure-flags
(list "-DENABLE_PHP=OFF"
,@(if (target-x86?)
'("-DENABLE_MAN=ON"
"-DENABLE_DOC=ON"
"-DENABLE_DOC_INCOMPLETE=ON")
'()))
#:phases
(modify-phases %standard-phases
,@(if (target-x86?)
'((add-after 'install 'move-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc (assoc-ref outputs "doc"))
(from (string-append out "/share/doc/weechat"))
(to (string-append doc "/share/doc/weechat")))
(mkdir-p (string-append doc "/share/doc"))
(rename-file from to)))))
'()))))
(list #:configure-flags
#~(list "-DENABLE_PHP=OFF"
#$@(if (target-x86?)
#~("-DENABLE_MAN=ON"
"-DENABLE_DOC=ON"
"-DENABLE_DOC_INCOMPLETE=ON")
#~()))
#:phases
#~(modify-phases %standard-phases
#$@(if (target-x86?)
#~((add-after 'install 'move-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc (assoc-ref outputs "doc"))
(from (string-append out "/share/doc/weechat"))
(to (string-append doc "/share/doc/weechat")))
(mkdir-p (string-append doc "/share/doc"))
(rename-file from to)))))
#~()))))
(synopsis "Extensible chat client")
(description "WeeChat (Wee Enhanced Environment for Chat) is an
@dfn{Internet Relay Chat} (IRC) client, which is designed to be light and fast.