Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: media-video/mpv-mpris/
Date: Tue, 02 Jun 2020 17:07:47
Message-Id: 1591115624.99f678492d15f81466c38763b0fa2c48d0d6cc47.andrewammerlaan@gentoo
1 commit: 99f678492d15f81466c38763b0fa2c48d0d6cc47
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Tue Jun 2 16:33:44 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue Jun 2 16:33:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=99f67849
7
8 media-video/mpv-mpris: New package.
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
12
13 media-video/mpv-mpris/Manifest | 1 +
14 media-video/mpv-mpris/metadata.xml | 15 +++++++++
15 media-video/mpv-mpris/mpv-mpris-0.5.ebuild | 48 +++++++++++++++++++++++++++++
16 media-video/mpv-mpris/mpv-mpris-9999.ebuild | 48 +++++++++++++++++++++++++++++
17 4 files changed, 112 insertions(+)
18
19 diff --git a/media-video/mpv-mpris/Manifest b/media-video/mpv-mpris/Manifest
20 new file mode 100644
21 index 0000000..21feb4b
22 --- /dev/null
23 +++ b/media-video/mpv-mpris/Manifest
24 @@ -0,0 +1 @@
25 +DIST mpv-mpris-0.5.tar.gz 8559 BLAKE2B 7eef231ab3855ed3f0a708484881f1df93152d9b79be491986ed0da2cd54870101d5fd90a35d95344b886a6af930c303b3f8c0bc480b55c8799ec8b96e7acdab SHA512 9c28b4f3fdcd6bddf3824125f994807d7a31f8e7398178296dab9d4422d3cc71a0b798ae75fe68c890556c993fb04bf5d7ffa379676312840fdf219bf4a974f7
26
27 diff --git a/media-video/mpv-mpris/metadata.xml b/media-video/mpv-mpris/metadata.xml
28 new file mode 100644
29 index 0000000..b7574b8
30 --- /dev/null
31 +++ b/media-video/mpv-mpris/metadata.xml
32 @@ -0,0 +1,15 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>o.freyermuth@××××××××××.com</email>
38 + <name>Oliver Freyermuth</name>
39 + </maintainer>
40 + <upstream>
41 + <bugs-to>https://github.com/hoyon/mpv-mpris/issues</bugs-to>
42 + <remote-id type="github">hoyon/mpv-mpris</remote-id>
43 + </upstream>
44 + <use>
45 + <flag name="autoload">Load plugin automatically</flag>
46 + </use>
47 +</pkgmetadata>
48
49 diff --git a/media-video/mpv-mpris/mpv-mpris-0.5.ebuild b/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
50 new file mode 100644
51 index 0000000..290300d
52 --- /dev/null
53 +++ b/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
54 @@ -0,0 +1,48 @@
55 +# Copyright 1999-2020 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +DESCRIPTION="MPRIS plugin for mpv"
61 +HOMEPAGE="https://github.com/hoyon/mpv-mpris"
62 +
63 +if [[ ${PV} == *9999* ]]; then
64 + inherit git-r3
65 + EGIT_REPO_URI="https://github.com/hoyon/${PN}.git"
66 +else
67 + SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
68 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
69 +fi
70 +
71 +SLOT="0"
72 +LICENSE="MIT"
73 +IUSE="+autoload"
74 +
75 +RDEPEND="media-video/mpv:=[cplugins]
76 + dev-libs/glib"
77 +DEPEND="${RDEPEND}
78 + virtual/pkgconfig"
79 +
80 +DOCS=(
81 + README.md
82 +)
83 +
84 +src_install() {
85 + insinto "/usr/$(get_libdir)/mpv"
86 + doins mpris.so
87 + use autoload && dosym "/usr/$(get_libdir)/mpv/mpris.so" "/etc/mpv/scripts/mpris.so"
88 + einstalldocs
89 +}
90 +
91 +pkg_postinst() {
92 + if ! use autoload; then
93 + elog
94 + elog "The plugin has not been installed to /etc/mpv/scripts for autoloading."
95 + elog "You have to activate it manually by passing"
96 + elog " \"/usr/$(get_libdir)/mpv/mpris.so\" "
97 + elog "as script option to mpv or symlinking the library to \"scripts/\" in your mpv"
98 + elog "config directory."
99 + elog "Alternatively, activate the autoload use flag."
100 + elog
101 + fi
102 +}
103
104 diff --git a/media-video/mpv-mpris/mpv-mpris-9999.ebuild b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
105 new file mode 100644
106 index 0000000..290300d
107 --- /dev/null
108 +++ b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
109 @@ -0,0 +1,48 @@
110 +# Copyright 1999-2020 Gentoo Authors
111 +# Distributed under the terms of the GNU General Public License v2
112 +
113 +EAPI=7
114 +
115 +DESCRIPTION="MPRIS plugin for mpv"
116 +HOMEPAGE="https://github.com/hoyon/mpv-mpris"
117 +
118 +if [[ ${PV} == *9999* ]]; then
119 + inherit git-r3
120 + EGIT_REPO_URI="https://github.com/hoyon/${PN}.git"
121 +else
122 + SRC_URI="https://github.com/hoyon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
123 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
124 +fi
125 +
126 +SLOT="0"
127 +LICENSE="MIT"
128 +IUSE="+autoload"
129 +
130 +RDEPEND="media-video/mpv:=[cplugins]
131 + dev-libs/glib"
132 +DEPEND="${RDEPEND}
133 + virtual/pkgconfig"
134 +
135 +DOCS=(
136 + README.md
137 +)
138 +
139 +src_install() {
140 + insinto "/usr/$(get_libdir)/mpv"
141 + doins mpris.so
142 + use autoload && dosym "/usr/$(get_libdir)/mpv/mpris.so" "/etc/mpv/scripts/mpris.so"
143 + einstalldocs
144 +}
145 +
146 +pkg_postinst() {
147 + if ! use autoload; then
148 + elog
149 + elog "The plugin has not been installed to /etc/mpv/scripts for autoloading."
150 + elog "You have to activate it manually by passing"
151 + elog " \"/usr/$(get_libdir)/mpv/mpris.so\" "
152 + elog "as script option to mpv or symlinking the library to \"scripts/\" in your mpv"
153 + elog "config directory."
154 + elog "Alternatively, activate the autoload use flag."
155 + elog
156 + fi
157 +}