Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/chrome-gnome-shell/
Date: Sat, 20 Apr 2019 23:25:32
Message-Id: 1555678337.3d78ce7f7d4173f0cd57b958a5702ac5a63e44ec.mgorny@gentoo
1 commit: 3d78ce7f7d4173f0cd57b958a5702ac5a63e44ec
2 Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org>
3 AuthorDate: Mon Nov 12 16:35:54 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 19 12:52:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d78ce7f
7
8 gnome-extra/chrome-gnome-shell: properly support firefox-bin.
9
10 www-client/firefox-bin is built on Debian host which doesn't have
11 /usr/lib{32,64}, so it expects native host manifest in /usr/lib.
12 With this change native host manifest will be additionally installed in
13 /usr/lib when needed.
14
15 Closes: https://bugs.gentoo.org/643522
16 Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org>
17 Closes: https://github.com/gentoo/gentoo/pull/10401
18 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
19
20 .../chrome-gnome-shell-10-r1.ebuild | 51 ++++++++++++++++++++++
21 1 file changed, 51 insertions(+)
22
23 diff --git a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r1.ebuild b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r1.ebuild
24 new file mode 100644
25 index 00000000000..5e66e29d679
26 --- /dev/null
27 +++ b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r1.ebuild
28 @@ -0,0 +1,51 @@
29 +# Copyright 1999-2019 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +PYTHON_COMPAT=( python2_7 python3_{5,6} )
35 +
36 +inherit cmake-utils python-single-r1
37 +
38 +DESCRIPTION="GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, Opera browsers"
39 +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome"
40 +SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz"
41 +
42 +LICENSE="GPL-3+"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
45 +IUSE=""
46 +
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +DEPEND="${PYTHON_DEPS}
50 + app-misc/jq
51 + sys-apps/coreutils
52 +"
53 +RDEPEND="${PYTHON_DEPS}
54 + dev-python/pygobject:3[${PYTHON_USEDEP}]
55 + dev-python/requests[${PYTHON_USEDEP}]
56 + gnome-base/gnome-shell
57 +"
58 +
59 +src_configure() {
60 + local mycmakeargs=( -DBUILD_EXTENSION=OFF )
61 + cmake-utils_src_configure
62 +}
63 +
64 +src_install() {
65 + cmake-utils_src_install
66 +
67 + if [[ $(get_libdir) != "lib" && "${SYMLINK_LIB}" != yes ]]; then
68 + # Workaround www-client/firefox-bin manifests location
69 + # Bug: https://bugs.gentoo.org/643522
70 + insinto /usr/lib/mozilla/native-messaging-hosts
71 + doins "${ED}"/usr/$(get_libdir)/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
72 + fi
73 +}
74 +
75 +pkg_postinst() {
76 + elog "Please note that this package provides native messaging connector only."
77 + elog "You can install browser extension using link provided at"
78 + elog "https://extensions.gnome.org website."
79 +}