gnu: sent: Improve style.

* gnu/packages/suckless.scm (sent)[arguments]: Use G-Expressions.

Change-Id: Ia75977bfc8b1d87233cc3942c39bf22cb58f0e90
Signed-off-by: jgart <jgart@dismail.de>
This commit is contained in:
Cayetano Santos 2025-08-24 13:36:27 +02:00 committed by jgart
parent 0e2d8eff10
commit bc2f435f04
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -551,30 +551,31 @@ point surf to another URI by setting its XProperties.")
"0cxysz5lp25mgww73jl0mgip68x7iyvialyzdbriyaff269xxwvv"))))
(build-system gnu-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(delete 'configure) ;no configuration
(add-before 'build 'patch-farbfeld
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "config.def.h"
(("2ff") (search-input-file inputs "/bin/2ff")))))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc (string-append out "/share/doc/" ,name "-"
,(package-version this-package))))
(install-file "README.md" doc)))))
#:tests? #f ;no test suite
#:make-flags
(let ((pkg-config (lambda (flag)
(string-append "$(shell pkg-config " flag " "
"xft fontconfig x11 libpng)"))))
(list (string-append "CC="
,(cc-for-target))
(string-append "PREFIX=" %output)
(string-append "INCS=-I. "
(pkg-config "--cflags"))
(string-append "LIBS="
(pkg-config "--libs") " -lm")))))
(list
#:phases
#~(modify-phases %standard-phases
(delete 'configure) ;no configuration
(add-before 'build 'patch-farbfeld
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "config.def.h"
(("2ff") (search-input-file inputs "/bin/2ff")))))
(add-after 'install 'install-doc
(lambda _
(install-file "README.md"
(string-append
#$output "/share/doc/"
#$name
"-"
#$(package-version this-package))))))
#:tests? #f ;no test suite
#:make-flags
#~(let ((pkg-config (lambda (flag)
(string-append "$(shell pkg-config " flag " "
"xft fontconfig x11 libpng)"))))
(list (string-append "CC=" #$(cc-for-target))
(string-append "PREFIX=" #$output)
(string-append "INCS=-I. " (pkg-config "--cflags"))
(string-append "LIBS=" (pkg-config "--libs") " -lm")))))
(native-inputs (list pkg-config))
(inputs (list farbfeld libpng libx11 libxft fontconfig))
(synopsis "Plain-text presentation tool")