From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wM/rKRoPlF8cEwAA0tVLHw (envelope-from ) for ; Sat, 24 Oct 2020 11:25:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EI/bJRoPlF+CQQAA1q6Kng (envelope-from ) for ; Sat, 24 Oct 2020 11:25:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 11313940418 for ; Sat, 24 Oct 2020 11:25:13 +0000 (UTC) Received: from localhost ([::1]:56812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWHfb-0002tV-Je for larch@yhetil.org; Sat, 24 Oct 2020 07:25:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWHfS-0002rh-Rv for guix-patches@gnu.org; Sat, 24 Oct 2020 07:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWHfS-0000zM-IM for guix-patches@gnu.org; Sat, 24 Oct 2020 07:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWHfS-00021w-Dy for guix-patches@gnu.org; Sat, 24 Oct 2020 07:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44190] [PATCH] gnu: Add mpdris2 Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Oct 2020 11:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44190 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44190@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16035386647739 (code B ref -1); Sat, 24 Oct 2020 11:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Oct 2020 11:24:24 +0000 Received: from localhost ([127.0.0.1]:32836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWHeq-00020l-Eq for submit@debbugs.gnu.org; Sat, 24 Oct 2020 07:24:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:44800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWHen-00020c-13 for submit@debbugs.gnu.org; Sat, 24 Oct 2020 07:24:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWHem-0002Ye-HV for guix-patches@gnu.org; Sat, 24 Oct 2020 07:24:20 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]:48272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1kWHej-0000wK-Lf for guix-patches@gnu.org; Sat, 24 Oct 2020 07:24:19 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4CJJdk4nkHzQkjp for ; Sat, 24 Oct 2020 13:24:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1603538648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZfRjjSJOfrumJxIjNkPF7jQNyoqlpRiX9zP86JropP4=; b=TkXXLrDaBEGvWvr+LaeBkcrbJagpcIdxsu2zxDLiTWiV9veIlaP8kopYUn2I3nD2EdbWfF L8LUAwWuEg85UKxO94IljGTf1SFkfOOYNIef0lQyw6JzaJ4NLB2kBJ4rR5bfPrFg4UT6lK 9aeEf1I+VJ1/ONtgd/XIguF6wJQiM2BGxOCQR+RY6I2IyXdoS2+R4j59uaBmiE0T44yuT0 x/TNFhupjuJeuuO2J3/zLnb54kPm2iUC4ueHLSysCci9klaSVHXnAYOYuwyaNrBuswCAE3 CDy7sgFK+w0kIKwPvnW+qaaDD/6XseSMKu2kZfyZm1Fe+3SPubu4Igwdi/JxXQ== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id 3Rr9BZIculPh for ; Sat, 24 Oct 2020 13:24:06 +0200 (CEST) Date: Sat, 24 Oct 2020 13:24:05 +0200 From: Lars-Dominik Braun Message-ID: <20201024112405.GA96185@noor.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -9.39 / 15.00 / 15.00 X-Rspamd-Queue-Id: 6279115 X-Rspamd-UID: 2daf02 Received-SPF: pass client-ip=2001:67c:2050::465:202; envelope-from=lars@6xq.net; helo=mout-p-202.mailbox.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.6 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=6xq.net header.s=MBO0001 header.b=TkXXLrDa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: wISDV8N9D0mF * gnu/packages/mpd.scm (mpdris2): New package. --- gnu/packages/mpd.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 6be7c930a1..323ae51af7 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2019 Evan Straw ;;; Copyright © 2020 Ricardo Wurmus +;;; Copyright © 2020 Lars-Dominik Braun ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,7 +35,9 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system python) + #:use-module (gnu packages autotools) #:use-module (gnu packages avahi) + #:use-module (gnu packages base) #:use-module (gnu packages boost) #:use-module (gnu packages gettext) #:use-module (gnu packages gnome) @@ -53,6 +56,7 @@ #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages sphinx) #:use-module (gnu packages sqlite) @@ -369,3 +373,47 @@ MPD library in a similar way to many other music players' 'shuffle library' feature. ashuffle works like any other MPD client, and can be used alongside other MPD frontends.") (license license:expat))) + +(define-public mpdris2 + (package + (name "mpdris2") + (version "0.8") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eonpatapon/mpDris2.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "048b8acsd1b8kcxzd9fsh5p9g2an9c4rznicfcpyrsjz5syv894h")))) + (build-system gnu-build-system) + ;; Manually wrap the binary, because we’re 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 "PYTHONPATH"))) + (wrap-program (string-append out "/bin/mpDris2") + `("PYTHONPATH" ":" prefix (,python-path))) + #t)))))) + (inputs + `(("python-mpd2" ,python-mpd2) + ("python-dbus" ,python-dbus) + ("python-pygobject" ,python-pygobject) + ("python" ,python))) ; Sets PYTHONPATH. + ;; For bootstrapping. + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("gettext" ,gnu-gettext) + ("which" ,which) + ("intltool" ,intltool))) + (synopsis "MPRIS V2.1 support for mpd") + (description "Client for the Music Player Daemon providing MPRIS 2 +support") + (home-page "https://github.com/eonpatapon/mpDris2") + (license license:gpl3))) + -- 2.26.2