From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 10C1215808B for ; Sat, 5 Mar 2022 23:18:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4EDA9E079E; Sat, 5 Mar 2022 23:18:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24623E079E for ; Sat, 5 Mar 2022 23:18:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 174C63430F0 for ; Sat, 5 Mar 2022 23:18:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 80AD22B0 for ; Sat, 5 Mar 2022 23:18:26 +0000 (UTC) From: "Oliver Freyermuth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Oliver Freyermuth" Message-ID: <1646522279.1a0ab44edcf9cf6ea1abe63e3146f5150b783cb7.freyermuth@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/mpv-mpris/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-video/mpv-mpris/Manifest media-video/mpv-mpris/mpv-mpris-0.7.ebuild X-VCS-Directories: media-video/mpv-mpris/ X-VCS-Committer: freyermuth X-VCS-Committer-Name: Oliver Freyermuth X-VCS-Revision: 1a0ab44edcf9cf6ea1abe63e3146f5150b783cb7 X-VCS-Branch: dev Date: Sat, 5 Mar 2022 23:18:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84ee3bb4-3e7f-4459-a280-fe144e2083ff X-Archives-Hash: a707451efaadb40f76555c8f5d2a8e7a commit: 1a0ab44edcf9cf6ea1abe63e3146f5150b783cb7 Author: Oliver Freyermuth googlemail com> AuthorDate: Sat Mar 5 23:17:59 2022 +0000 Commit: Oliver Freyermuth googlemail com> CommitDate: Sat Mar 5 23:17:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a0ab44e media-video/mpv-mpris: bump to 0.7. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Oliver Freyermuth googlemail.com> media-video/mpv-mpris/Manifest | 1 + media-video/mpv-mpris/mpv-mpris-0.7.ebuild | 71 ++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/media-video/mpv-mpris/Manifest b/media-video/mpv-mpris/Manifest index fe3bc469b..e4703e19a 100644 --- a/media-video/mpv-mpris/Manifest +++ b/media-video/mpv-mpris/Manifest @@ -1,2 +1,3 @@ DIST mpv-mpris-0.5.tar.gz 8559 BLAKE2B 7eef231ab3855ed3f0a708484881f1df93152d9b79be491986ed0da2cd54870101d5fd90a35d95344b886a6af930c303b3f8c0bc480b55c8799ec8b96e7acdab SHA512 9c28b4f3fdcd6bddf3824125f994807d7a31f8e7398178296dab9d4422d3cc71a0b798ae75fe68c890556c993fb04bf5d7ffa379676312840fdf219bf4a974f7 DIST mpv-mpris-0.6.tar.gz 8910 BLAKE2B 44888f9a0945bf850ba48a4b2a5b2d03325e05b17111a6184c3540eaf15745c7bb18006b03dd018599e017837c005bf10dafc910b3e031e440a511a5496d6ab4 SHA512 da92e4cf6541f0f18fc1c779ab87eef914e6e76a94bfe1259b323953a11654b228d02c4d352ea0c588308bedc8aa807bdaa41023917629a90d50269f454e256d +DIST mpv-mpris-0.7.tar.gz 12982 BLAKE2B db919cdad6528519211725694f63871e371a33a331c46eebb202fa87d452d1cf30cecf3d4c2b26cb187cfa2c4cdd53411b88e6e7855510ffbaeef28ab3eb8346 SHA512 b370c9550622302cfdd07c21ae2f03a4e66e80da02e8f38c68d447ef273ae582ad6d918e207a9fb8c917a851163c6aadc08d3d68ad8e70ec85b37732c0cac96f diff --git a/media-video/mpv-mpris/mpv-mpris-0.7.ebuild b/media-video/mpv-mpris/mpv-mpris-0.7.ebuild new file mode 100644 index 000000000..8814420b5 --- /dev/null +++ b/media-video/mpv-mpris/mpv-mpris-0.7.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="MPRIS plugin for mpv" +HOMEPAGE="https://github.com/hoyon/mpv-mpris" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/hoyon/${PN}.git" +else + SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +SLOT="0" +LICENSE="MIT" +IUSE="+autoload test" + +RDEPEND=" + dev-libs/glib:2 + media-video/mpv:=[cplugins,libmpv] +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + test? ( + app-misc/jq + app-shells/bash + app-text/jo + media-sound/playerctl + net-misc/socat + sys-apps/dbus + virtual/awk + x11-apps/xauth + x11-misc/xvfb-run + x11-themes/sound-theme-freedesktop + ) +" +RESTRICT="!test? ( test )" + +src_compile() { + tc-export CC + emake PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_test() { + emake test +} + +src_install() { + insinto "/usr/$(get_libdir)/mpv" + doins mpris.so + use autoload && dosym -r /usr/$(get_libdir)/mpv/mpris.so /etc/mpv/scripts/mpris.so + einstalldocs +} + +pkg_postinst() { + if ! use autoload; then + elog + elog "The plugin has not been installed to /etc/mpv/scripts for autoloading." + elog "You have to activate it manually by passing" + elog " '${EPREFIX}/usr/$(get_libdir)/mpv/mpris.so' " + elog "as a script option to mpv or symlinking the library to 'scripts' in your mpv" + elog "config directory." + elog "Alternatively, activate the autoload use flag." + elog + fi +}