1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_6 )
8 inherit cmake-utils python-single-r1
10 DESCRIPTION="GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, Opera browsers"
11 HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome"
12 SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz"
16 KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21 DEPEND="${PYTHON_DEPS}
25 RDEPEND="${PYTHON_DEPS}
26 $(python_gen_cond_dep '
27 dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
28 dev-python/requests[${PYTHON_MULTI_USEDEP}]
30 gnome-base/gnome-shell
34 local mycmakeargs=( -DBUILD_EXTENSION=OFF )
35 cmake-utils_src_configure
39 cmake-utils_src_install
41 if [[ $(get_libdir) != "lib" && "${SYMLINK_LIB}" != yes ]]; then
42 # Workaround www-client/firefox-bin manifests location
43 # Bug: https://bugs.gentoo.org/643522
44 insinto /usr/lib/mozilla/native-messaging-hosts
45 doins "${ED}"/usr/$(get_libdir)/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
50 elog "Please note that this package provides native messaging connector only."
51 elog "You can install browser extension using link provided at"
52 elog "https://extensions.gnome.org website."