[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: mpv-mpris: Switch to gnu-build-system.
From: |
guix-commits |
Subject: |
03/08: gnu: mpv-mpris: Switch to gnu-build-system. |
Date: |
Thu, 1 Feb 2024 01:24:48 -0500 (EST) |
hako pushed a commit to branch master
in repository guix.
commit ee20e6fa2ee7c607eac9095f5e2fd00c0aa3d7ab
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Wed Dec 27 11:15:22 2023 +0100
gnu: mpv-mpris: Switch to gnu-build-system.
* gnu/packages/video.scm (mpv-mpris)[build-system]: Use gnu-build-system
again.
[arguments]<#:phases>: Run tests.
[native-inputs]: Add dbus, jq, playerctl, socat, sound-theme-freedesktop,
xorg-server-for-tests, xvfb-run.
Change-Id: I9de4ade633388ec42ac30019feb133ca98811ad9
Signed-off-by: Hilton Chain <hako@ultrarare.space>
---
gnu/packages/video.scm | 38 ++++++++++++++++++++++++++++----------
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index b182b2d9f3..ef69c1dcc8 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -154,6 +154,7 @@
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages iso-codes)
+ #:use-module (gnu packages libcanberra)
#:use-module (gnu packages libidn)
#:use-module (gnu packages libusb)
#:use-module (gnu packages linux)
@@ -2785,18 +2786,35 @@ images and image hosting sites.")
(file-name (git-file-name name version))
(sha256
(base32 "1384y8n3l0xk8hbad1nsj9ljzb1h02g3ln3jysd8bd6shbl0x4mx"))))
- (build-system copy-build-system)
+ (build-system gnu-build-system)
(arguments
- '(#:install-plan
- '(("mpris.so" "lib/"))
- #:phases
- (modify-phases %standard-phases
- (add-before 'install 'build
- (lambda _
- (setenv "CC" (which "gcc"))
- (invoke "make"))))))
+ (list
+ #:make-flags
+ #~(list (string-append "SCRIPTS_DIR=" #$output "/lib")
+ (string-append "CC=" #$(cc-for-target)))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'check
+ (lambda* (#:key inputs native-inputs tests? #:allow-other-keys)
+ (if tests?
+ (begin
+ (setenv
+ "MPV_MPRIS_TEST_PLAY"
+ (search-input-file
+ (or native-inputs inputs)
+
"share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga"))
+ (invoke "make" "test"))
+ (format #t "test suite not run~%")))))))
(native-inputs
- (list pkg-config))
+ (list dbus
+ jq
+ pkg-config
+ playerctl
+ socat
+ sound-theme-freedesktop
+ xorg-server-for-tests
+ xvfb-run))
(inputs
(list ffmpeg glib mpv))
(home-page "https://github.com/hoyon/mpv-mpris")
- branch master updated (c76004c574 -> 1eeeeb8add), guix-commits, 2024/02/01
- 06/08: gnu: virt-manager: Update package style., guix-commits, 2024/02/01
- 05/08: gnu: python-apsw: Update to 3.45.1.0., guix-commits, 2024/02/01
- 07/08: gnu: virt-manager: Fix qemu path substitution., guix-commits, 2024/02/01
- 04/08: gnu: sqlite-next: Update to 3.45.1., guix-commits, 2024/02/01
- 02/08: gnu: age-keygen: Move to (gnu packages golang-crypto)., guix-commits, 2024/02/01
- 01/08: gnu: age: Move to (gnu packages golang-crypto)., guix-commits, 2024/02/01
- 08/08: gnu: virt-manager: Don't propagate qemu., guix-commits, 2024/02/01
- 03/08: gnu: mpv-mpris: Switch to gnu-build-system.,
guix-commits <=