gnu: clipmenu: Improve package style.

* gnu/packages/xdisorg.scm (clipmenu)[arguments]: Use g-expressions; remove
trailing #t from phases.
This commit is contained in:
EuAndreh via Guix-patches via 2022-11-29 20:23:46 -03:00 committed by Christopher Baines
parent 3efd1ce0b5
commit 15bab8f1f7
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -2891,23 +2891,22 @@ (define-public clipmenu
"1403sw49ccb8xsd8v611fzp0csaglfz8nmz3wcjsk8x11h9jvxwy")))) "1403sw49ccb8xsd8v611fzp0csaglfz8nmz3wcjsk8x11h9jvxwy"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(delete 'build) (delete 'build)
(replace 'install (replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda _
(let* ((out (assoc-ref outputs "out")) (let ((bin (string-append #$output "/bin"))
(bin (string-append out "/bin")) (doc (string-append #$output "/share/doc/"
(doc (string-append %output "/share/doc/" #$name "-" #$version)))
,name "-" ,version)))
(install-file "clipdel" bin) (install-file "clipdel" bin)
(install-file "clipmenu" bin) (install-file "clipmenu" bin)
(install-file "clipmenud" bin) (install-file "clipmenud" bin)
(install-file "clipfsck" bin) (install-file "clipfsck" bin)
(install-file "clipctl" bin) (install-file "clipctl" bin)
(install-file "README.md" doc) (install-file "README.md" doc))))
#t)))
(add-after 'install 'wrap-script (add-after 'install 'wrap-script
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
@ -2927,8 +2926,7 @@ (define-public clipmenu
(string-append dir "/bin")) (string-append dir "/bin"))
(list clipnotify coreutils-minimal (list clipnotify coreutils-minimal
gawk util-linux xdotool xsel))))) gawk util-linux xdotool xsel)))))
'("clipmenu" "clipmenud" "clipdel" "clipfsck" "clipctl"))) '("clipmenu" "clipmenud" "clipdel" "clipfsck" "clipctl")))))
#t))
(replace 'check (replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
;; substitute a shebang appearing inside a string (the test ;; substitute a shebang appearing inside a string (the test
@ -2936,8 +2934,7 @@ (define-public clipmenu
(substitute* "tests/test-clipmenu" (substitute* "tests/test-clipmenu"
(("#!/usr/bin/env bash") (("#!/usr/bin/env bash")
(string-append "#!" (which "bash")))) (string-append "#!" (which "bash"))))
(invoke "tests/test-clipmenu") (invoke "tests/test-clipmenu"))))))
#t)))))
(inputs (inputs
(list clipnotify (list clipnotify
coreutils-minimal coreutils-minimal