Rename and update gnome-browser-connector (from chrome-gnome-shell).

This commit is contained in:
ajacoutot 2022-07-29 15:26:15 +00:00
parent 7bf20d56a1
commit 9a444565dc
9 changed files with 80 additions and 81 deletions

View File

@ -7,13 +7,13 @@
SUBDIR += autoar
SUBDIR += backgrounds
SUBDIR += baobab
SUBDIR += browser-connector
SUBDIR += builder
SUBDIR += calculator
SUBDIR += calendar
SUBDIR += caribou
SUBDIR += characters
SUBDIR += cheese
SUBDIR += chrome-gnome-shell
SUBDIR += clocks
SUBDIR += connections
SUBDIR += console

View File

@ -0,0 +1,31 @@
COMMENT= GNOME Shell browser connector
V= 42.0
GNOME_PROJECT= gnome-browser-connector
GNOME_VERSION= v${V}
PKGNAME= ${GNOME_PROJECT}-${V}
# override gnome MODULE
MASTER_SITES= https://gitlab.gnome.org/nE0sIghT/${GNOME_PROJECT}/-/archive/${GNOME_VERSION}/
EXTRACT_SUFX= .tar.gz
# GPLv3
PERMIT_PACKAGE= Yes
MODULES= devel/meson \
lang/python \
x11/gnome
MODGNOME_TOOLS= desktop-file-utils gtk-update-icon-cache
MODPY_ADJ_FILES= contrib/merge_json.py
RUN_DEPENDS= devel/py-gobject3${MODPY_FLAVOR} \
x11/gnome/shell
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/chrome-gnome-shell
mv ${WRKINST}/etc/chromium \
${PREFIX}/share/examples/chrome-gnome-shell/
rm -r ${WRKINST}/etc/opt
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (gnome/gnome-browser-connector-v42.0.tar.gz) = FJvDnlbGqGZ88a5BkHbwD9p9J/Y361O2QMBNZ6XbJ8w=
SIZE (gnome/gnome-browser-connector-v42.0.tar.gz) = 29652

View File

@ -0,0 +1,2 @@
OS-native connector counterpart for GNOME Shell browser extension found at
https://extensions.gnome.org/.

View File

@ -0,0 +1,44 @@
@conflict chrome-gnome-shell-*
@pkgpath x11/gnome/chrome-gnome-shell
bin/gnome-browser-connector
bin/gnome-browser-connector-host
lib/mozilla/
lib/mozilla/native-messaging-hosts/
lib/mozilla/native-messaging-hosts/org.gnome.browser_connector.json
lib/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}application.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}base.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}connector.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}constants.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}helpers.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}logs.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}service.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/${MODPY_PYCACHE}version.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/application.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/base.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/connector.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/constants.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/helpers.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/logs.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/service.py
lib/python${MODPY_VERSION}/site-packages/gnome_browser_connector/version.py
share/applications/org.gnome.BrowserConnector.desktop
share/dbus-1/services/org.gnome.BrowserConnector.service
share/examples/chrome-gnome-shell/
share/examples/chrome-gnome-shell/chromium/
@sample ${SYSCONFDIR}/chromium/
share/examples/chrome-gnome-shell/chromium/native-messaging-hosts/
@sample ${SYSCONFDIR}/chromium/native-messaging-hosts/
share/examples/chrome-gnome-shell/chromium/native-messaging-hosts/org.gnome.browser_connector.json
@sample ${SYSCONFDIR}/chromium/native-messaging-hosts/org.gnome.browser_connector.json
share/examples/chrome-gnome-shell/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
@sample ${SYSCONFDIR}/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
share/icons/hicolor/128x128/apps/org.gnome.BrowserConnector.png
share/icons/hicolor/16x16/apps/org.gnome.BrowserConnector.png
share/icons/hicolor/48x48/apps/org.gnome.BrowserConnector.png
@tag update-desktop-database
@tag gtk-update-icon-cache %D/share/icons/hicolor

View File

@ -1,46 +0,0 @@
COMMENT= GNOME Shell integration for Chrome
GNOME_PROJECT= chrome-gnome-shell
GNOME_VERSION= 10.1
REVISION= 4
# GPLv3
PERMIT_PACKAGE= Yes
MODULES= devel/cmake \
lang/python \
x11/gnome
MODGNOME_TOOLS= desktop-file-utils gtk-update-icon-cache
MODPY_ADJ_FILES= connector/chrome-gnome-shell.py
BUILD_DEPENDS= textproc/jq
# base64(1)
BUILD_DEPENDS += converters/base64
# ghead(1), sha256sum(1)
BUILD_DEPENDS += sysutils/coreutils
RUN_DEPENDS= devel/py-gobject3${MODPY_FLAVOR} \
www/py-requests${MODPY_FLAVOR} \
x11/gnome/shell
NO_TEST= Yes
CONFIGURE_STYLE= cmake
CONFIGURE_ARGS= -DBUILD_EXTENSION=OFF \
-DCMAKE_INSTALL_PREFIX=${TRUEPREFIX}
pre-configure:
ln -sf ${LOCALBASE}/bin/ghead ${WRKDIR}/bin/head
ln -sf ${LOCALBASE}/bin/gsha256sum ${WRKDIR}/bin/sha256sum
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/chrome-gnome-shell
mv ${WRKINST}/etc/chromium \
${PREFIX}/share/examples/chrome-gnome-shell/
rm -r ${WRKINST}/etc/opt ${PREFIX}/lib/mozilla
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
SHA256 (gnome/chrome-gnome-shell-10.1.tar.xz) = Vq1P7pB4umLEPSQ58VqT1Lh4gfqzWQDX9QONWpXvpDg=
SIZE (gnome/chrome-gnome-shell-10.1.tar.xz) = 169088

View File

@ -1,7 +0,0 @@
Native browser connector for integration with extensions.gnome.org.
A browser extension is needed in order to use it properly:
- Chromium: https://chrome.google.com/webstore/detail/gnome-shell-integration/gphhapmejobijbbhgpjhcjognlahblep
- Firefox: https://addons.mozilla.org/en-US/firefox/addon/gnome-shell-integration/
- Opera: https://addons.opera.com/en/extensions/details/gnome-shell-integration/
- Epiphany: built-in

View File

@ -1,25 +0,0 @@
bin/chrome-gnome-shell
lib/python${MODPY_VERSION}/site-packages/chrome_gnome_shell-0.0.0-py${MODPY_VERSION}.egg-info
share/applications/org.gnome.ChromeGnomeShell.desktop
share/dbus-1/
share/dbus-1/services/
share/dbus-1/services/org.gnome.ChromeGnomeShell.service
share/examples/chrome-gnome-shell/
share/examples/chrome-gnome-shell/chromium/
@sample ${SYSCONFDIR}/chromium/
share/examples/chrome-gnome-shell/chromium/native-messaging-hosts/
@sample ${SYSCONFDIR}/chromium/native-messaging-hosts/
share/examples/chrome-gnome-shell/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
@sample ${SYSCONFDIR}/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
share/icons/gnome/
share/icons/gnome/128x128/
share/icons/gnome/128x128/apps/
share/icons/gnome/128x128/apps/org.gnome.ChromeGnomeShell.png
share/icons/gnome/16x16/
share/icons/gnome/16x16/apps/
share/icons/gnome/16x16/apps/org.gnome.ChromeGnomeShell.png
share/icons/gnome/48x48/
share/icons/gnome/48x48/apps/
share/icons/gnome/48x48/apps/org.gnome.ChromeGnomeShell.png
@tag update-desktop-database
@tag gtk-update-icon-cache %D/share/icons/gnome