From patchwork Fri Dec 20 09:04:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 16577 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5249817900; Fri, 20 Dec 2019 09:06:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1324D178CC for ; Fri, 20 Dec 2019 09:06:12 +0000 (GMT) Received: from localhost ([::1]:52114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiEEd-0005OB-Cm for patchwork@mira.cbaines.net; Fri, 20 Dec 2019 04:06:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56736) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiEEW-0005L8-9w for guix-patches@gnu.org; Fri, 20 Dec 2019 04:06:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiEEU-0004zs-W9 for guix-patches@gnu.org; Fri, 20 Dec 2019 04:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iiEEU-0004yW-NC for guix-patches@gnu.org; Fri, 20 Dec 2019 04:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iiEEU-0004ok-D5 for guix-patches@gnu.org; Fri, 20 Dec 2019 04:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38686] [PATCH] gnu: Add mpv-mpris. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Dec 2019 09:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38686 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38686@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157683271318445 (code B ref -1); Fri, 20 Dec 2019 09:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Dec 2019 09:05:13 +0000 Received: from localhost ([127.0.0.1]:45907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iiEDh-0004nQ-EE for submit@debbugs.gnu.org; Fri, 20 Dec 2019 04:05:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:54041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iiEDf-0004nF-GD for submit@debbugs.gnu.org; Fri, 20 Dec 2019 04:05:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48855) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiEDe-0005Ct-61 for guix-patches@gnu.org; Fri, 20 Dec 2019 04:05:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiEDc-0001bL-RT for guix-patches@gnu.org; Fri, 20 Dec 2019 04:05:10 -0500 Received: from flashner.co.il ([178.62.234.194]:48558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iiEDc-0007o3-JT for guix-patches@gnu.org; Fri, 20 Dec 2019 04:05:08 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id C332040270; Fri, 20 Dec 2019 09:04:36 +0000 (UTC) From: Efraim Flashner Date: Fri, 20 Dec 2019 11:04:03 +0200 Message-Id: <20191220090404.12287-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (mpv-mpris): New variable. --- gnu/packages/video.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index ef60767236..fb62fc62a2 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1436,6 +1436,48 @@ projects while introducing many more.") (define-public gnome-mpv (deprecated-package "gnome-mpv" celluloid)) +(define-public mpv-mpris + (package + (name "mpv-mpris") + (version "0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hoyon/mpv-mpris") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06hq3j1jjlaaz9ss5l7illxz8vm5bng86jl24kawglwkqayhdnjx")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; no tests + #:make-flags '("CC=gcc") + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "mpris.so" (string-append out "/lib"))) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("mpv" ,mpv))) + (home-page "https://github.com/hoyon/mpv-mpris") + (synopsis "MPRIS plugin for mpv") + (description "MPRIS plugin for mpv written in C. Implements +@code{org.mpris.MediaPlayer2} and @code{org.mpris.MediaPlayer2.Player} D-Bus +interfaces. + +To load this plugin, specify the following option when starting mpv: +@code{--script $GUIX_PROFILE/lib/mpris.so} or link it into +$HOME/.config/mpv/scripts") + (license license:expat))) + (define-public libvpx (package (name "libvpx")