From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 72937@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Subject: [bug#72937] [PATCH 2/2] gnu: autorandr: Use GEXPs.
Date: Sun, 1 Sep 2024 21:55:23 +0300 [thread overview]
Message-ID: <617d4764936280f3fe24c7928195078f563f255f.1725216784.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <cover.1725216784.git.poptsov.artyom@gmail.com>
* gnu/packages/xdisorg.scm (autorandr): Use GEXPs.
Change-Id: I476e29ddff17c0180e8a0eeefe818954364eac71
---
gnu/packages/xdisorg.scm | 45 ++++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index e470ad8c0a..f123b739e7 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -298,29 +298,28 @@ (define-public autorandr
(inputs
(list xrandr libxcb))
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'configure
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((xrandr (search-input-file inputs "/bin/xrandr")))
- (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
- (("/usr") (assoc-ref outputs "out")))
- (substitute* "autorandr.py"
- (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
- (("\\[\"xrandr") (string-append "[\"" xrandr)))
- (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
- (("/usr/bin/autorandr")
- (string-append (assoc-ref outputs "out") "/bin/autorandr")))
- (setenv "CC" "gcc"))
- #t))
- (add-after 'install 'install-contrib
- (lambda* (#:key outputs #:allow-other-keys)
- (invoke "make"
- (string-append "DESTDIR=" (assoc-ref outputs "out"))
- "PREFIX="
- "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
- "install"
- "TARGETS=autorandr launcher manpage bash_completion"))))))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((xrandr (search-input-file inputs "/bin/xrandr")))
+ (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
+ (("/usr") (assoc-ref outputs "out")))
+ (substitute* "autorandr.py"
+ (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
+ (("\\[\"xrandr") (string-append "[\"" xrandr)))
+ (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
+ (("/usr/bin/autorandr")
+ (string-append (assoc-ref outputs "out") "/bin/autorandr")))
+ (setenv "CC" "gcc"))))
+ (add-after 'install 'install-contrib
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "make"
+ (string-append "DESTDIR=" (assoc-ref outputs "out"))
+ "PREFIX="
+ "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
+ "install"
+ "TARGETS=autorandr launcher manpage bash_completion"))))))
(synopsis "Auto-detect connected displays and load appropriate setup")
(description "Autorandr wraps around xrandr to help with X11
multi-screen configuration management. It allows the user to create profiles
--
2.45.2
next prev parent reply other threads:[~2024-09-01 18:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-01 18:53 [bug#72937] [PATCH 0/2] gnu: autorandr: Update to 1.15 Artyom V. Poptsov
2024-09-01 18:55 ` [bug#72937] [PATCH 1/2] " Artyom V. Poptsov
2024-09-01 18:55 ` Artyom V. Poptsov [this message]
2024-09-04 14:10 ` bug#72937: [PATCH 0/2] " jgart via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=617d4764936280f3fe24c7928195078f563f255f.1725216784.git.poptsov.artyom@gmail.com \
--to=poptsov.artyom@gmail.com \
--cc=72937@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.