[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/13: gnu: cwm: Improve package style.
From: |
guix-commits |
Subject: |
07/13: gnu: cwm: Improve package style. |
Date: |
Mon, 20 Feb 2023 08:06:22 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit 46cdc0b5388346299d6b64a1189e149e7f861f49
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Feb 20 13:46:05 2023 +0100
gnu: cwm: Improve package style.
* gnu/packages/wm.scm (cwm)[arguments]: Use G-expressions.
<#:phases>: Use MAKE-DESKTOP-ENTRY-FILE.
[inputs, native-inputs]: Re-order alphabetically.
[synopsis]: Use proper capitalization.
---
gnu/packages/wm.scm | 50 ++++++++++++++++++++++----------------------------
1 file changed, 22 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 5c3b6c5b05..0d3e27e7cc 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -1410,36 +1410,30 @@ It is inspired by Xmonad and dwm. Its major features
include:
(base32 "145xjwam11194w2irsvs4z0xgn0jdijxfmx67gqd1n0j8g5wan2a"))))
(build-system gnu-build-system)
(arguments
- `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
- (string-append "PREFIX=" %output))
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (add-after 'build 'install-xsession
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Add a .desktop file to xsessions.
- (let* ((output (assoc-ref outputs "out"))
- (xsessions (string-append output "/share/xsessions")))
- (mkdir-p xsessions)
- (with-output-to-file
- (string-append xsessions "/cwm.desktop")
- (lambda _
- (format #t
- "[Desktop Entry]~@
- Name=cwm~@
- Comment=OpenBSD Calm Window Manager fork~@
- Exec=~a/bin/cwm~@
- TryExec=~@*~a/bin/cwm~@
- Icon=~@
- Type=Application~%"
- output)))))))))
- (inputs
- (list libxft libxrandr libxinerama))
+ (list
+ #:tests? #f
+ #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "PREFIX=" #$output))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'build 'install-xsession
+ (lambda _
+ ;; Add a .desktop file to xsessions.
+ (let ((xsessions (string-append #$output "/share/xsessions")))
+ (mkdir-p xsessions)
+ (make-desktop-entry-file
+ (string-append xsessions "/cwm.desktop")
+ #:name: cwm
+ #:exec (string-append #$output "/bin/cwm")
+ #:try-exec (string-append #$output "/bin/cwm")
+ #:comment '((#f "OpenBSD Calm Window Manager fork")))))))))
(native-inputs
- (list pkg-config bison))
+ (list bison pkg-config))
+ (inputs
+ (list libxrandr libxft libxinerama))
(home-page "https://github.com/leahneukirchen/cwm")
- (synopsis "OpenBSD fork of the calmwm window manager")
+ (synopsis "OpenBSD fork of the Calm Window Manager")
(description "Cwm is a stacking window manager for X11. It is an OpenBSD
project derived from the original Calm Window Manager.")
(license license:isc)))
- 01/13: gnu: emacs-wisp-mode: Update to 1.0.10., (continued)
- 01/13: gnu: emacs-wisp-mode: Update to 1.0.10., guix-commits, 2023/02/20
- 02/13: gnu: emacs-project: Update to 0.9.8., guix-commits, 2023/02/20
- 05/13: gnu: emacs-magit: Update to 3.3.0-3.2c91c08., guix-commits, 2023/02/20
- 09/13: gnu: python-pygraphviz: Update to 1.10., guix-commits, 2023/02/20
- 10/13: gnu: python-construct: Update to 2.10.68., guix-commits, 2023/02/20
- 12/13: gnu: fet: Update to 6.8.4., guix-commits, 2023/02/20
- 13/13: gnu: sshpass: Update to 1.10., guix-commits, 2023/02/20
- 03/13: gnu: emacs-vertico-posframe: Update to 0.7.0., guix-commits, 2023/02/20
- 04/13: gnu: emacs-diff-hl: Update to 1.9.2., guix-commits, 2023/02/20
- 06/13: gnu: cwm: Update to 7.1., guix-commits, 2023/02/20
- 07/13: gnu: cwm: Improve package style.,
guix-commits <=
- 08/13: gnu: qsynth: Update to 0.9.9., guix-commits, 2023/02/20
- 11/13: gnu: python-capablerobot-usbhub: Update to 0.5.0., guix-commits, 2023/02/20