gnu: mpdris2: Remove input labels and add inputs.

* gnu/packages/mpd.scm (mpdris2)[arguments]: Use G-expressions.  Remove
trailing #T from phase.
[inputs]: Remove labels.  Add BASH-MINIMAL and
PYTHON-MUTAGEN.
[native-inputs]: Remove labels.
[description]: Use complete sentence.
This commit is contained in:
Simon Streit 2023-01-20 20:07:09 +01:00 committed by Nicolas Goaziou
parent 415db66877
commit a694ef4802
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -9,7 +9,7 @@
;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
;;; Copyright © 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net>
;;; Copyright © 20202022 Simon Streit <simon@netpanic.org>
;;; Copyright © 20202023 Simon Streit <simon@netpanic.org>
;;; Copyright © 2021 Noah Evans <noah@nevans.me>
;;;
;;; This file is part of GNU Guix.
@ -444,27 +444,30 @@ (define-public mpdris2
(build-system gnu-build-system)
;; Manually wrap the binary, because were not using python-build-system.
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(python-path (getenv "GUIX_PYTHONPATH")))
(wrap-program (string-append out "/bin/mpDris2")
`("GUIX_PYTHONPATH" ":" prefix (,python-path)))
#t))))))
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'wrap-program
(lambda* (#:key inputs #:allow-other-keys)
(let ((python-path (getenv "GUIX_PYTHONPATH")))
(wrap-program (string-append #$output "/bin/mpDris2")
`("GUIX_PYTHONPATH" ":" prefix (,python-path)))))))))
(inputs
(list python-mpd2 python-dbus python-pygobject python)) ; Sets GUIX_PYTHONPATH.
;; For bootstrapping.
(list bash-minimal
python
python-dbus
python-mpd2
python-mutagen
python-pygobject))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
("gettext" ,gettext-minimal)
("which" ,which)
("intltool" ,intltool)))
(list autoconf
automake
gettext-minimal
intltool
which))
(synopsis "MPRIS V2.1 support for MPD")
(description "Client for the Music Player Daemon providing MPRIS 2
support")
(description "mpDris2 is a client for the Music Player Daemon providing
MPRIS 2 support.")
(home-page "https://github.com/eonpatapon/mpDris2")
(license license:gpl3+)))