summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Konotopov <ykonotopov@gnome.org>2022-09-07 12:15:36 +0400
committerMatt Turner <mattst88@gentoo.org>2022-10-01 15:23:15 -0400
commit78779bbfc179a1c7c7657f0a6363219e5e956e2b (patch)
tree85ded7836b575c44f6a5766cebee7e554c5fbbab /gnome-extra/gnome-browser-connector/gnome-browser-connector-42.1.ebuild
parentgnome-base/gnome-settings-daemon: Version bump to 43.0 (diff)
downloadgentoo-78779bbfc179a1c7c7657f0a6363219e5e956e2b.tar.gz
gentoo-78779bbfc179a1c7c7657f0a6363219e5e956e2b.tar.bz2
gentoo-78779bbfc179a1c7c7657f0a6363219e5e956e2b.zip
gnome-extra/gnome-browser-connector: Version bump to 42.1
Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org> Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'gnome-extra/gnome-browser-connector/gnome-browser-connector-42.1.ebuild')
-rw-r--r--gnome-extra/gnome-browser-connector/gnome-browser-connector-42.1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnome-extra/gnome-browser-connector/gnome-browser-connector-42.1.ebuild b/gnome-extra/gnome-browser-connector/gnome-browser-connector-42.1.ebuild
new file mode 100644
index 000000000000..6b5b05530200
--- /dev/null
+++ b/gnome-extra/gnome-browser-connector/gnome-browser-connector-42.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit gnome.org meson python-single-r1 xdg
+
+DESCRIPTION="OS-native connector counterpart for GNOME Shell browser extension"
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegration"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
+"
+RDEPEND="${DEPEND}
+ gnome-base/gnome-shell
+"
+
+src_install() {
+ meson_src_install
+ python_fix_shebang "${D}/usr/bin/${PN}"
+ python_fix_shebang "${D}/usr/bin/${PN}-host"
+ python_optimize
+
+ 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
+ for id in chrome_gnome_shell browser_connector; do
+ doins "${ED}/usr/$(get_libdir)/mozilla/native-messaging-hosts/org.gnome.${id}.json"
+ done
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ elog "Please note that this package provides OS-native connector only."
+ elog "You can install browser extension using link provided at"
+ elog "https://extensions.gnome.org website."
+}