gnu: stumpwm: Update to 22.05-1.ff6cb73.

* gnu/packages/wm.scm (stumpwm): Update to 22.05-1.ff6cb73.
This commit is contained in:
Guillaume Le Vaillant 2022-10-31 14:55:17 +01:00
parent 1eee671d7d
commit 39816716c3
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1849,79 +1849,84 @@ (define-public kanshi
(license license:expat))) ; MIT license (license license:expat))) ; MIT license
(define-public stumpwm (define-public stumpwm
(package ;; Some fixes to make stumpwm work with sbcl>=2.2.7 are not in a release
(name "stumpwm") ;; yet, so we use a commit directly.
(version "22.05") (let ((commit "ff6cb73f48f0df4285948f1009ef3b285c78b351")
(source (revision "1"))
(origin (package
(method git-fetch) (name "stumpwm")
(uri (git-reference (version (git-version "22.05" revision commit))
(url "https://github.com/stumpwm/stumpwm") (source
(commit version))) (origin
(file-name (git-file-name "stumpwm" version)) (method git-fetch)
(sha256 (uri (git-reference
(base32 "12hf70mpwy0ixiyvv8sf8pkwrzz8nb12a8ybvsdpibsxfjxgxnan")))) (url "https://github.com/stumpwm/stumpwm")
(build-system asdf-build-system/sbcl) (commit commit)))
(native-inputs (file-name (git-file-name "stumpwm" version))
(list sbcl-fiasco (sha256
texinfo (base32 "0gvr136fv5zs61017gns3kbkz00837n0b52fif9vany5fslx3aj2"))))
(build-system asdf-build-system/sbcl)
(native-inputs
(list sbcl-fiasco
texinfo
;; To build the manual. ;; To build the manual.
autoconf autoconf
automake)) automake))
(inputs (inputs
(list sbcl-alexandria (list sbcl-alexandria
sbcl-cl-ppcre sbcl-cl-ppcre
sbcl-clx)) sbcl-clx))
(outputs '("out" "lib")) (outputs '("out" "lib"))
(arguments (arguments
(list (list
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-tests (add-after 'unpack 'fix-tests
(lambda _ (lambda _
(substitute* "stumpwm-tests.asd" (substitute* "stumpwm-tests.asd"
(("\"ALL-TESTS\"") (("\"ALL-TESTS\"")
"\"RUN-PACKAGE-TESTS\" :package")))) "\"RUN-PACKAGE-TESTS\" :package"))))
(add-after 'create-asdf-configuration 'build-program (add-after 'create-asdf-configuration 'build-program
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(build-program (build-program
(string-append (assoc-ref outputs "out") "/bin/stumpwm") (string-append (assoc-ref outputs "out") "/bin/stumpwm")
outputs outputs
#:entry-program '((stumpwm:stumpwm) 0)))) #:entry-program '((stumpwm:stumpwm) 0))))
(add-after 'build-program 'create-desktop-file (add-after 'build-program 'create-desktop-file
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(xsessions (string-append out "/share/xsessions"))) (xsessions (string-append out "/share/xsessions")))
(mkdir-p xsessions) (mkdir-p xsessions)
(call-with-output-file (call-with-output-file
(string-append xsessions "/stumpwm.desktop") (string-append xsessions "/stumpwm.desktop")
(lambda (file) (lambda (file)
(format file (format file
"[Desktop Entry]~@ "[Desktop Entry]~@
Name=stumpwm~@ Name=stumpwm~@
Comment=The Stump Window Manager~@ Comment=The Stump Window Manager~@
Exec=~a/bin/stumpwm~@ Exec=~a/bin/stumpwm~@
TryExec=~@*~a/bin/stumpwm~@ TryExec=~@*~a/bin/stumpwm~@
Icon=~@ Icon=~@
Type=Application~%" Type=Application~%"
out)))))) out))))))
(add-after 'install 'install-manual (add-after 'install 'install-manual
(lambda* (#:key (make-flags '()) outputs #:allow-other-keys) (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(info (string-append out "/share/info"))) (info (string-append out "/share/info")))
(invoke "./autogen.sh") (invoke "./autogen.sh")
(invoke "sh" "./configure" "SHELL=sh") (invoke "sh" "./configure" "SHELL=sh")
(apply invoke "make" "stumpwm.info" make-flags) (apply invoke "make" "stumpwm.info" make-flags)
(install-file "stumpwm.info" info))))))) (install-file "stumpwm.info" info)))))))
(synopsis "Window manager written in Common Lisp") (synopsis "Window manager written in Common Lisp")
(description "Stumpwm is a window manager written entirely in Common Lisp. (description
"Stumpwm is a window manager written entirely in Common Lisp.
It attempts to be highly customizable while relying entirely on the keyboard It attempts to be highly customizable while relying entirely on the keyboard
for input. These design decisions reflect the growing popularity of for input. These design decisions reflect the growing popularity of
productive, customizable lisp based systems.") productive, customizable lisp based systems.")
(home-page "https://github.com/stumpwm/stumpwm") (home-page "https://github.com/stumpwm/stumpwm")
(license license:gpl2+) (license license:gpl2+)
(properties `((cl-source-variant . ,(delay cl-stumpwm)))))) (properties `((cl-source-variant . ,(delay cl-stumpwm)))))))
(define-public sbcl-stumpwm (define-public sbcl-stumpwm
(deprecated-package "sbcl-stumpwm" stumpwm)) (deprecated-package "sbcl-stumpwm" stumpwm))