Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-gsconnect/
Date: Sun, 27 Mar 2022 09:20:33
Message-Id: 1648372578.3e61b88d7f5a9624a951a9a9f0cdc51139625281.pacho@gentoo
1 commit: 3e61b88d7f5a9624a951a9a9f0cdc51139625281
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 09:16:18 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 09:16:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e61b88d
7
8 gnome-extra/gnome-shell-extension-gsconnect: add 49
9
10 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
11
12 .../gnome-shell-extension-gsconnect/Manifest | 1 +
13 .../gnome-shell-extension-gsconnect-49.ebuild | 68 ++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/gnome-extra/gnome-shell-extension-gsconnect/Manifest b/gnome-extra/gnome-shell-extension-gsconnect/Manifest
17 index bb068ebc4f46..90f6b9571e12 100644
18 --- a/gnome-extra/gnome-shell-extension-gsconnect/Manifest
19 +++ b/gnome-extra/gnome-shell-extension-gsconnect/Manifest
20 @@ -1 +1,2 @@
21 DIST gnome-shell-extension-gsconnect-48.tar.gz 795292 BLAKE2B d7885d5a29c2a71d5180baed0da201b921ea9058c284b110becbc84594610f6b5ffd539b598c091113f3ad2e12f9adb486d216d4b37064ef1b6218edc547ec82 SHA512 309e4fdb3f13d4c14f744316f7904aa7c4d5c2c712187625ac1db6de7f1a03fe156754468ba4b982ebed9042006701c3f7eb7114d1e84a7051332edf58c5b21b
22 +DIST gnome-shell-extension-gsconnect-49.tar.gz 852895 BLAKE2B 21822c3bd724638be0ee537c5cfe86deda9e68fccc58d4f84ad8981d98e42ffc35c9065e9a8cb64baa07e9eea647439bbbdd01d2985c20d2e940cfa3238fe536 SHA512 35da54b9603adefb2dd42e2af3037c414565ab5e936f24180a193c9378ec9e9c0ae02663048679a29385a57050ebe93838fe45190444c41f82cd571ac1a39b52
23
24 diff --git a/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-49.ebuild b/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-49.ebuild
25 new file mode 100644
26 index 000000000000..02be1761f68f
27 --- /dev/null
28 +++ b/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-49.ebuild
29 @@ -0,0 +1,68 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +inherit gnome2-utils meson readme.gentoo-r1 xdg
35 +
36 +DESCRIPTION="KDE Connect implementation for Gnome Shell"
37 +HOMEPAGE="https://github.com/GSConnect/gnome-shell-extension-gsconnect"
38 +SRC_URI="https://github.com/GSConnect/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +
40 +LICENSE="GPL-2+"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +IUSE="nautilus"
44 +
45 +COMMON_DEPEND="dev-libs/glib:2"
46 +RDEPEND="${COMMON_DEPEND}
47 + app-eselect/eselect-gnome-shell-extensions
48 + >=dev-libs/gjs-1.68
49 + =gnome-base/gnome-shell-41*
50 + gnome-base/gvfs
51 + gnome-extra/evolution-data-server
52 + || ( media-libs/libcanberra media-libs/gsound )
53 + nautilus? (
54 + dev-python/nautilus-python
55 + gnome-base/nautilus[introspection] )
56 +"
57 +DEPEND="${COMMON_DEPEND}"
58 +BDEPEND="
59 + virtual/pkgconfig
60 +"
61 +
62 +DISABLE_AUTOFORMATTING="yes"
63 +DOC_CONTENTS="For knowing more about how to do the setup, please visit:
64 +https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki/Installation"
65 +
66 +src_configure() {
67 + # nemo support relies on nemo-python from https://github.com/linuxmint/nemo-extensions
68 + # https://bugs.gentoo.org/694388
69 + meson_src_configure \
70 + -Dinstalled_tests=false \
71 + -Dnemo=false \
72 + $(meson_use nautilus)
73 +}
74 +
75 +src_install() {
76 + meson_src_install
77 + readme.gentoo_create_doc
78 +}
79 +
80 +pkg_preinst() {
81 + gnome2_schemas_savelist
82 + xdg_pkg_preinst
83 +}
84 +
85 +pkg_postinst() {
86 + gnome2_schemas_update
87 + xdg_pkg_postinst
88 + ebegin "Updating list of installed extensions"
89 + eselect gnome-shell-extensions update
90 + eend $?
91 + readme.gentoo_print_elog
92 +}
93 +
94 +pkg_postrm() {
95 + gnome2_schemas_update
96 + xdg_pkg_postrm
97 +}