all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#66270] [PATCH] gnu: mpd-mpc: Install bash completions in correct location.
@ 2023-09-29 18:45 Liliana Marie Prikler
  2023-09-29 18:45 ` [bug#66270] [PATCH v2] " Liliana Marie Prikler
  0 siblings, 1 reply; 7+ messages in thread
From: Liliana Marie Prikler @ 2023-09-29 18:45 UTC (permalink / raw)
  To: 66270

* gnu/packages/mpd.scm (mpd-mpc)[#:phases]: Add ‘move-completion’.
---
 gnu/packages/mpd.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index d617dc014b..f42f08414f 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -246,7 +246,14 @@ (define-public mpd-mpc
                  ;; actually invoked.
                  (lambda _
                    (substitute* "doc/meson.build"
-                     (("rsync") "ls")))))))
+                     (("rsync") "ls"))))
+               (add-after 'install 'move-completion
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out"))
+                          (contrib (string-append out "/share/doc/mpc/contrib"))
+                          (completion "/etc/bash-completion.d/"))
+                     (rename-file (string-append contrib "/mpc-completion.bash")
+                                  (string-append completion "/mpc"))))))))
     (inputs (list libmpdclient))
     (native-inputs
      (list pkg-config python-sphinx))

base-commit: ce0cc6137df81919389f61671096a6ce701c0889
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-08  7:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 18:45 [bug#66270] [PATCH] gnu: mpd-mpc: Install bash completions in correct location Liliana Marie Prikler
2023-09-29 18:45 ` [bug#66270] [PATCH v2] " Liliana Marie Prikler
2023-10-04 10:02   ` Simon Tournier
2023-10-04 18:51     ` Liliana Marie Prikler
2023-10-05 15:06       ` Simon Tournier
2023-10-06  8:59         ` Liliana Marie Prikler
2023-10-08  6:54           ` bug#66270: " Liliana Marie Prikler

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.