* [bug#39521] [PATCH] gnu: autorandr: Update to 1.9.
@ 2020-02-09 9:10 Brice Waegeneire
2020-02-09 23:42 ` Nicolas Goaziou
2020-02-09 23:43 ` bug#39521: " Nicolas Goaziou
0 siblings, 2 replies; 3+ messages in thread
From: Brice Waegeneire @ 2020-02-09 9:10 UTC (permalink / raw)
To: 39521
* gnu/packages/xdisorg.scm (autorandr): Update to 1.9.
[native-inputs]: Remove man-db.
[arguments]: Install XDG autostart config.
---
gnu/packages/xdisorg.scm | 94 ++++++++++++++++++++--------------------
1 file changed, 46 insertions(+), 48 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index c1f6876c7e..d8920779b1 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -150,58 +150,56 @@ program.")
(license license:gpl3+)))
(define-public autorandr
- ;; Use latest commit since 1.7 lacks many new features such as the
- ;; autorandr_launcher.
- (let ((commit "b484c0ea9c9a4838278bbd661a7cc384333c1df8"))
- (package
- (name "autorandr")
- (version (git-version "1.7" "1" commit))
- (home-page "https://github.com/phillipberndt/autorandr")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url home-page)
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0da17kzsisjv3s993j5idkk1n2d2cvjdn7pngs2b0ic1r2h5z02h"))))
- (build-system python-build-system)
- (native-inputs
- `(("man-db" ,man-db)))
- (inputs
- `(("xrandr" ,xrandr)
- ("libxcb" ,libxcb)))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'configure
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "autorandr.py"
- (("popen\\(\"xrandr") (string-append "popen(\""
- (assoc-ref inputs "xrandr")
- "/bin/xrandr"))
- (("\\[\"xrandr") (string-append "[\""
- (assoc-ref inputs "xrandr")
- "/bin/xrandr")))
- #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_completiond.d"
- "install_manpage"
- "install_bash_completion"
- "install_launcher"))))))
- (synopsis "Auto-detect connected displays and load appropriate setup")
- (description "Autorandr wraps around xrandr to help with X11
+ (package
+ (name "autorandr")
+ (version "1.9")
+ (home-page "https://github.com/phillipberndt/autorandr")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bb0l7fcm5lcx9y02zdxv7pfdqf4v4gsc5br3v1x9gzjvqj64l7n"))))
+ (build-system python-build-system)
+ (inputs
+ `(("xrandr" ,xrandr)
+ ("libxcb" ,libxcb)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
+ (("/usr") (assoc-ref outputs "out")))
+ (substitute* "autorandr.py"
+ (("popen\\(\"xrandr") (string-append "popen(\""
+ (assoc-ref inputs "xrandr")
+ "/bin/xrandr"))
+ (("\\[\"xrandr") (string-append "[\""
+ (assoc-ref inputs "xrandr")
+ "/bin/xrandr")))
+ #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_completiond.d"
+ "install_manpage"
+ "install_bash_completion"
+ "install_launcher"
+ "install_autostart_config"))))))
+ (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
for various multi-screen setups. Autorandr automatically detects the profiles
that can be activated based on the connected hardware. Hook scripts can be
used to further tweak the behaviour of the different profiles.")
- (license license:gpl3+))))
+ (license license:gpl3+)))
(define-public bemenu
(package
--
2.24.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#39521] [PATCH] gnu: autorandr: Update to 1.9.
2020-02-09 9:10 [bug#39521] [PATCH] gnu: autorandr: Update to 1.9 Brice Waegeneire
@ 2020-02-09 23:42 ` Nicolas Goaziou
2020-02-09 23:43 ` bug#39521: " Nicolas Goaziou
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2020-02-09 23:42 UTC (permalink / raw)
To: Brice Waegeneire; +Cc: 39521
Hello,
Brice Waegeneire <brice@waegenei.re> writes:
> * gnu/packages/xdisorg.scm (autorandr): Update to 1.9.
> [native-inputs]: Remove man-db.
> [arguments]: Install XDG autostart config.
I added a copyright line and applied your patch, as
cde4cb4dd29203eb2f15716e3735cbaa36853f6c.
Thank you!
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#39521: [PATCH] gnu: autorandr: Update to 1.9.
2020-02-09 9:10 [bug#39521] [PATCH] gnu: autorandr: Update to 1.9 Brice Waegeneire
2020-02-09 23:42 ` Nicolas Goaziou
@ 2020-02-09 23:43 ` Nicolas Goaziou
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2020-02-09 23:43 UTC (permalink / raw)
To: 39521-done
Applied. Closing.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-09 23:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-09 9:10 [bug#39521] [PATCH] gnu: autorandr: Update to 1.9 Brice Waegeneire
2020-02-09 23:42 ` Nicolas Goaziou
2020-02-09 23:43 ` bug#39521: " Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).