commit:     567272bcb529b9a1d45d39b477fef0b172a215a1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 26 09:04:05 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 26 09:35:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=567272bc

media-sound/playerctl: add 2.4.1

Closes: https://bugs.gentoo.org/907163
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/playerctl/Manifest               |  1 +
 media-sound/playerctl/playerctl-2.4.1.ebuild | 54 ++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/media-sound/playerctl/Manifest b/media-sound/playerctl/Manifest
index 1da1ef9c7128..3089e6924b4e 100644
--- a/media-sound/playerctl/Manifest
+++ b/media-sound/playerctl/Manifest
@@ -1 +1,2 @@
 DIST playerctl-2.3.1.tar.gz 73595 BLAKE2B 
d6d60d82fb0a8951fba4a3de91ff1e3f4bdba7177563b65b2da53525af4ca40f42755c577f652aaa24d2de308f56a495c8f87840ad67d6cda840cba1411abdb0
 SHA512 
06a10d193c83f60a9a9c50dddfb0a74e00be8cde34ddaa9d75582b7ce487ac564d1ff0675f6cb0c27d968e7d435b6a427818ac14e0cdd94b86af8f5d89661a93
+DIST playerctl-2.4.1.tar.gz 77371 BLAKE2B 
ae9f691d714d6235bd7dc3e3d9a2ed21190482bd2aa8642c108ade0c09902ccb20196d0180ed3b1ffe680ca4e6a4ee293de1a6f10d54878589e3d8c81ca81c53
 SHA512 
2d84f657b07c948cd6990d9e79c4eb6e83f97c387ac53c2322fc0adbeb853950fa935332233329e7555db7d157f3ced6498cc102edaffd78849ca1f7d4c49bdc

diff --git a/media-sound/playerctl/playerctl-2.4.1.ebuild 
b/media-sound/playerctl/playerctl-2.4.1.ebuild
new file mode 100644
index 000000000000..710b5c8ab50a
--- /dev/null
+++ b/media-sound/playerctl/playerctl-2.4.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 meson xdg
+
+DESCRIPTION="A CLI utility to control media players over MPRIS"
+HOMEPAGE="https://github.com/acrisci/playerctl";
+SRC_URI="https://github.com/acrisci/playerctl/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc introspection"
+RESTRICT="test" # Seems to want a system bus, rather than a session one?
+
+RDEPEND="
+       >=dev-libs/glib-2.38:2
+       introspection? ( dev-libs/gobject-introspection:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-util/gdbus-codegen
+       dev-util/glib-utils
+       virtual/pkgconfig
+       doc? ( dev-util/gtk-doc )
+"
+
+src_configure() {
+       local emesonargs=(
+               -Ddatadir=share
+               -Dbindir=bin
+               -Dbash-completions=false
+               -Dzsh-completions=false
+               $(meson_use doc gtk-doc)
+               $(meson_use introspection)
+       )
+
+       xdg_environment_reset # bug #596166
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+
+       docinto examples
+       dodoc -r "${S}"/examples/.
+       docompress -x "/usr/share/doc/${PF}/examples"
+
+       newbashcomp data/playerctl.bash "${PN}"
+       insinto /usr/share/zsh/site-functions
+       newins data/playerctl.zsh _playerctl
+}

Reply via email to