Subject: bug#32611: closed (Re: [bug#32611] [PATCH] xorg.scm - add transset-df)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 03 Sep 2018 21:29:02 +0000

Your bug report

#32611: [PATCH] xorg.scm - add transset-df

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].

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

Subject: Re: [bug#32611] [PATCH] xorg.scm - add transset-df
From: [email-masked] (Ludovic Courtès)
To: Benjamin Slade <[email-masked]>
Cc: [email-masked]
Date: Mon, 03 Sep 2018 23:28:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Benjamin,

I applied with the minor changes below, added a commit log that follows
our convention, and pushed.

Thanks!

Ludo’.

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 1abf95fb3..c89661272 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -6223,17 +6223,18 @@ mouse click.  You can do everything mouse can do with a keyboard.")
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
                     (bin (string-append out "/bin")))
-               (mkdir-p bin)
-               (copy-file "transset-df" (string-append bin "/transset-df"))
+               (install-file "transset-df" bin)
                #t))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs `(("libxcomposite" ,libxcomposite)
-              ("libxdamager" ,libxdamage) ("libxrender" ,libxrender)))
-    (synopsis "Patched version of X.Org's transset with added functionality")
-    (description "A patched version of X.Org's transset with added functionality,
-including: selecting window by clicking (as transset), selecting
-windows by pointing select actual focused X11 window, selecting by
-window name or id, forcing toggle increase or decrease opacity")
+              ("libxdamager" ,libxdamage)
+              ("libxrender" ,libxrender)))
+    (synopsis "Set the transparency of X11 windows")
+    (description "The @command{transset-df} command allows you to set the
+opacity of X11 windows.  This patched version of X.Org's @command{transset}
+adds functionality, including: selecting window by clicking (as transset),
+selecting windows by pointing select actual focused X11 window, selecting by
+window name or id, forcing toggle, increase or decrease opacity.")
     (home-page "http://forchheimer.se/transset-df/")
-    (license x11)))
+    (license license:x11)))

Subject: [PATCH] xorg.scm - add transset-df
From: Benjamin Slade <[email-masked]>
To: [email-masked]
Date: Sat, 01 Sep 2018 21:47:38 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 3875765d2..e8bf99689 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2018 Kei Kebreau <[email-masked]>
 ;;; Copyright © 2018 Oleg Pykhalov <[email-masked]>
+;;; Copyright © 2018 Benjamin Slade <[email-masked]@>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6196,3 +6197,43 @@ and embedded platforms.")
 cursor to any point on the screen with a few key strokes.  It also simulates
 mouse click.  You can do everything mouse can do with a keyboard.")
     (license license:bsd-3)))
+
+(define-public transset-df
+  (package
+    (name "transset-df")
+    (version "6")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://forchheimer.se/" name "/" name "-" version
+                                  ".tar.gz"))
+              (sha256
+               (base32
+                "1vnykwwrv75miigbhmcwxniw8xnhsdyzhqydip2m9crxi2lwhqs5"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'setenv
+           (lambda _
+             (setenv "CC" (which "gcc"))
+             #t))
+         (delete 'configure)
+         (delete 'check)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (mkdir-p bin)
+               (copy-file "transset-df" (string-append bin "/transset-df"))
+               #t))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs `(("libxcomposite" ,libxcomposite)
+              ("libxdamager" ,libxdamage) ("libxrender" ,libxrender)))
+    (synopsis "Patched version of X.Org's transset with added functionality")
+    (description "A patched version of X.Org's transset with added functionality,
+including: selecting window by clicking (as transset), selecting
+windows by pointing select actual focused X11 window, selecting by
+window name or id, forcing toggle increase or decrease opacity")
+    (home-page "http://forchheimer.se/transset-df/")
+    (license x11)))

-- 
Dr Benjamin Slade - https://babbagefiles.xyz
  `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
    '(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
       `(Choose Linux ,(Choose Freedom) . https://linux.com )