commit:     32d820b41e659459f9f8e830bc15decc580159fe
Author:     Yuri Konotopov <ykonotopov <AT> gnome <DOT> org>
AuthorDate: Fri Mar 11 15:41:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 11 16:16:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32d820b4

gnome-extra/chrome-gnome-shell: move to cmake.eclass and update to EAPI-8

Bug: https://bugs.gentoo.org/834118
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org>
Closes: https://github.com/gentoo/gentoo/pull/24492
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../chrome-gnome-shell-10-r5.ebuild                | 54 ++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r5.ebuild 
b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r5.ebuild
new file mode 100644
index 000000000000..1e973b982b02
--- /dev/null
+++ b/gnome-extra/chrome-gnome-shell/chrome-gnome-shell-10-r5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit cmake python-single-r1
+
+DESCRIPTION="GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, 
Opera browsers"
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome";
+SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+       $(python_gen_cond_dep '
+               dev-python/pygobject:3[${PYTHON_USEDEP}]
+               dev-python/requests[${PYTHON_USEDEP}]
+       ')
+       gnome-base/gnome-shell
+"
+BDEPEND="
+       app-misc/jq
+       sys-apps/coreutils
+"
+
+src_configure() {
+       local mycmakeargs=( -DBUILD_EXTENSION=OFF )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       if [[ $(get_libdir) != "lib" && "${SYMLINK_LIB}" != yes ]]; then
+               # Workaround www-client/firefox-bin manifests location
+               # Bug: https://bugs.gentoo.org/643522
+               insinto /usr/lib/mozilla/native-messaging-hosts
+               doins 
"${ED}"/usr/$(get_libdir)/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
+       fi
+}
+
+pkg_postinst() {
+       elog "Please note that this package provides native messaging connector 
only."
+       elog "You can install browser extension using link provided at"
+       elog "https://extensions.gnome.org website."
+}

Reply via email to