Subject: bug#47524: closed (Re: bug#47524: [PATCH] gnu: Add wlogout.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 10 Apr 2021 20:51:02 +0000

Your bug report

#47524: [PATCH] gnu: Add wlogout.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
47524: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47524
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#47524: [PATCH] gnu: Add wlogout.
From: Ludovic Courtès <[email-masked]>
To: la snesne <[email-masked]>
Cc: [email-masked]
Date: Sat, 10 Apr 2021 22:50:39 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

la snesne <[email-masked]> skribis:

> * gnu/packages/wm.scm (wlogout): New variable.

Applied with the following cosmetic changes, thanks!

Ludo’.

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 2ad9b8a034..90896c2b89 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -2485,6 +2485,6 @@ capabilities.  It is heavily inspired by the Calm Window manager(cwm).")
                  (("/etc") (string-append out "/etc"))))
              #t)))))
     (home-page "https://github.com/ArtsyMacaw/wlogout")
-    (synopsis "Logout menu for wayland")
-    (description "wlogout is a logout menu for wayland environments")
+    (synopsis "Logout menu for Wayland")
+    (description "wlogout is a logout menu for Wayland environments.")
     (license license:expat)))

Subject: [PATCH] gnu: Add wlogout.
From: la snesne <[email-masked]>
To: [email-masked]
Cc: la snesne <[email-masked]>
Date: Thu, 1 Apr 2021 01:12:15 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/wm.scm (wlogout): New variable.
---
 gnu/packages/wm.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 6105a98f14..d61d0a11b0 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -44,6 +44,7 @@
 ;;; Copyright © 2021 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2021 Sharlatan Hellseher <[email-masked]>
 ;;; Copyright © 2021 qblade <[email-masked]>
+;;; Copyright © 2021 lasnesne <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2451,3 +2452,39 @@ read and write, and compatible with JSON.")
      "Hikari is a stacking Wayland compositor with additional tiling
 capabilities.  It is heavily inspired by the Calm Window manager(cwm).")
     (license license:bsd-2)))
+
+(define-public wlogout
+  (package
+    (name "wlogout")
+    (version "1.1.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ArtsyMacaw/wlogout")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1swhzkqkzli59c89pvrakfvicd00x7ga860c3x2pbb4y3xziqfvi"))))
+    (build-system meson-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("scdoc" ,scdoc)))
+    (inputs
+     `(("gtk-layer-shell" ,gtk-layer-shell)
+       ("gtk+" ,gtk+)))
+    (arguments
+     '(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack  'patch-source-paths
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (substitute* "main.c"
+                 (("/usr/share") (string-append out "/share"))
+                 (("/etc") (string-append out "/etc"))))
+             #t)))))
+    (home-page "https://github.com/ArtsyMacaw/wlogout")
+    (synopsis "Logout menu for wayland")
+    (description "wlogout is a logout menu for wayland environments")
+    (license license:expat)))
-- 
2.31.1