Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/chrome-gnome-shell/
Date: Tue, 07 Jan 2020 17:26:38
Message-Id: 1578417868.d82e7f3c3326f1beb816ea6f442cc53c82d5c188.bkohler@gentoo
1 commit: d82e7f3c3326f1beb816ea6f442cc53c82d5c188
2 Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org>
3 AuthorDate: Tue Dec 10 15:24:30 2019 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 7 17:24:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d82e7f3c
7
8 gnome-extra/chrome-gnome-shell: added python3_{7,8} targets
9
10 Closes: https://bugs.gentoo.org/684988
11 Package-Manager: Portage-2.3.79, Repoman-2.3.16
12 Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org>
13 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
14
15 .../chrome-gnome-shell-10-r2.ebuild | 51 ++++++++++++++++++++++
16 1 file changed, 51 insertions(+)
17
18 diff --git a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r2.ebuild b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r2.ebuild
19 new file mode 100644
20 index 00000000000..cc94f8f1db7
21 --- /dev/null
22 +++ b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r2.ebuild
23 @@ -0,0 +1,51 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
30 +
31 +inherit cmake-utils python-single-r1
32 +
33 +DESCRIPTION="GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, Opera browsers"
34 +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome"
35 +SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz"
36 +
37 +LICENSE="GPL-3+"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
40 +IUSE=""
41 +
42 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
43 +
44 +DEPEND="${PYTHON_DEPS}
45 + app-misc/jq
46 + sys-apps/coreutils
47 +"
48 +RDEPEND="${PYTHON_DEPS}
49 + dev-python/pygobject:3[${PYTHON_USEDEP}]
50 + dev-python/requests[${PYTHON_USEDEP}]
51 + gnome-base/gnome-shell
52 +"
53 +
54 +src_configure() {
55 + local mycmakeargs=( -DBUILD_EXTENSION=OFF )
56 + cmake-utils_src_configure
57 +}
58 +
59 +src_install() {
60 + cmake-utils_src_install
61 +
62 + if [[ $(get_libdir) != "lib" && "${SYMLINK_LIB}" != yes ]]; then
63 + # Workaround www-client/firefox-bin manifests location
64 + # Bug: https://bugs.gentoo.org/643522
65 + insinto /usr/lib/mozilla/native-messaging-hosts
66 + doins "${ED}"/usr/$(get_libdir)/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
67 + fi
68 +}
69 +
70 +pkg_postinst() {
71 + elog "Please note that this package provides native messaging connector only."
72 + elog "You can install browser extension using link provided at"
73 + elog "https://extensions.gnome.org website."
74 +}