1 |
commit: dc1e82a8b5e4c7aaa04bcb005f17fc3dd1d8618e |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 16 22:44:11 2018 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 16 22:45:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc1e82a8 |
7 |
|
8 |
media-sound/playerctl: bump to 0.6.1 |
9 |
|
10 |
This version switches from autotools to meson. |
11 |
|
12 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
13 |
|
14 |
media-sound/playerctl/Manifest | 1 + |
15 |
.../playerctl-0.6.1-doc-typesfile-path-fix.patch | 28 +++++++++++++++ |
16 |
media-sound/playerctl/playerctl-0.6.1.ebuild | 41 ++++++++++++++++++++++ |
17 |
3 files changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/media-sound/playerctl/Manifest b/media-sound/playerctl/Manifest |
20 |
index 8abb779fa23..7f6cf729b53 100644 |
21 |
--- a/media-sound/playerctl/Manifest |
22 |
+++ b/media-sound/playerctl/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST playerctl-0.5.0.tar.gz 17015 BLAKE2B 5da1d0fd4e442ac5f124bd693ae14222624c5239c9fad72e57d43977467339522344bc8d8c37b0f2bfda51c61861dc33d7e35e4a730ce59a87b691b5657ec729 SHA512 307cad5eeea7efa0c97c885660f49468f442fe907ef2495b56ac512e0551c7248750897b6d00934cbfcfcb35f486a101a238b276ef71d2ef866132ca3cc0932c |
25 |
DIST playerctl-0.6.0.tar.gz 22124 BLAKE2B 6bb90586c56e21a00b5e6e1769248b9782a8211b01dacf590857fe4fe199d6d3fa7aa46a36cba9a8e198a1aad0bf17973fc15140db11c484edfb0275971d3d08 SHA512 8023b5704ca2a428510df6228850b616061289764cc3c4190c0c46f79d6a20e499495f2d773bd821357653ba63bca40eac70f7cc3a11251da3c6a4f7781db739 |
26 |
+DIST playerctl-0.6.1.tar.gz 22921 BLAKE2B d2f5874280e1a99b318bc83c40a38ee31d9c68426cb63e1e16e8ded26bac1a894d78a929f46d45d631af70e37476a4151c520eb69c94e80026689a12c682f0ad SHA512 07c302eb06a96bf3b8aa180e68e85ef6f9fdb5933b80fbce8ee5f9a36c1d961eaf5638e319ff0b26475984acc57a447a4aa8e705667f77e4bd393364cdbfb284 |
27 |
|
28 |
diff --git a/media-sound/playerctl/files/playerctl-0.6.1-doc-typesfile-path-fix.patch b/media-sound/playerctl/files/playerctl-0.6.1-doc-typesfile-path-fix.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..75ba5b61f9f |
31 |
--- /dev/null |
32 |
+++ b/media-sound/playerctl/files/playerctl-0.6.1-doc-typesfile-path-fix.patch |
33 |
@@ -0,0 +1,28 @@ |
34 |
+From f5fefa32f1ac59d2a9c00221281fe3541845d6d2 Mon Sep 17 00:00:00 2001 |
35 |
+From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= <gokturk@g.o> |
36 |
+Date: Mon, 16 Jul 2018 18:21:21 -0400 |
37 |
+Subject: [PATCH] doc: look for gobject_typesfile in build dir |
38 |
+ |
39 |
+Looking for playerctl.types file in the source directory is a mistake |
40 |
+because it's generated during build and placed in build dir. Look for |
41 |
+the types file in build dir instead. |
42 |
+--- |
43 |
+ doc/reference/meson.build | 2 +- |
44 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
45 |
+ |
46 |
+diff --git a/doc/reference/meson.build b/doc/reference/meson.build |
47 |
+index 100d561..b5a16a7 100644 |
48 |
+--- a/doc/reference/meson.build |
49 |
++++ b/doc/reference/meson.build |
50 |
+@@ -19,7 +19,7 @@ gnome.gtkdoc( |
51 |
+ '--name-space=meson.project_name()', |
52 |
+ ], |
53 |
+ scan_args: '--deprecated-guards="PLAYERCTL_DISABLE_DEPRECATED"', |
54 |
+- gobject_typesfile: meson.project_name() + '.types', |
55 |
++ gobject_typesfile: join_paths(meson.current_build_dir(), meson.project_name() + '.types'), |
56 |
+ fixxref_args: [ |
57 |
+ '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')), |
58 |
+ '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')), |
59 |
+-- |
60 |
+2.17.0 |
61 |
+ |
62 |
|
63 |
diff --git a/media-sound/playerctl/playerctl-0.6.1.ebuild b/media-sound/playerctl/playerctl-0.6.1.ebuild |
64 |
new file mode 100644 |
65 |
index 00000000000..262d4ae14ff |
66 |
--- /dev/null |
67 |
+++ b/media-sound/playerctl/playerctl-0.6.1.ebuild |
68 |
@@ -0,0 +1,41 @@ |
69 |
+# Copyright 1999-2018 Gentoo Foundation |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI=6 |
73 |
+ |
74 |
+inherit meson xdg-utils |
75 |
+ |
76 |
+DESCRIPTION="A CLI utility to control media players over MPRIS" |
77 |
+HOMEPAGE="https://github.com/acrisci/playerctl" |
78 |
+SRC_URI="https://github.com/acrisci/playerctl/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
79 |
+LICENSE="GPL-3+" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
82 |
+IUSE="doc introspection" |
83 |
+ |
84 |
+RDEPEND=" |
85 |
+ dev-libs/glib:2 |
86 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
87 |
+" |
88 |
+# Override the meson dependency in MESON_DEPEND of meson.eclass |
89 |
+# The eclass depends on '>=dev-util/meson-0.40.0' as of writing this |
90 |
+DEPEND="${RDEPEND} |
91 |
+ dev-util/gdbus-codegen |
92 |
+ >=dev-util/meson-0.46.0 |
93 |
+ doc? ( dev-util/gtk-doc ) |
94 |
+ virtual/pkgconfig |
95 |
+" |
96 |
+ |
97 |
+PATCHES=( |
98 |
+ "${FILESDIR}"/${PN}-0.6.1-doc-typesfile-path-fix.patch |
99 |
+) |
100 |
+ |
101 |
+src_configure() { |
102 |
+ local emesonargs=( |
103 |
+ $(meson_use doc gtk-doc) |
104 |
+ $(meson_use introspection) |
105 |
+ ) |
106 |
+ |
107 |
+ xdg_environment_reset # 596166 |
108 |
+ meson_src_configure |
109 |
+} |