commit:     97cbda2dbf2439bf009e5345177b12b54c941228
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue May 12 09:30:42 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue May 12 09:30:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97cbda2d

net-im/zoom: Add README.gentoo about display compositing.

Closes: https://bugs.gentoo.org/722430
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 net-im/zoom/files/README.gentoo         | 5 +++++
 net-im/zoom/zoom-5.0.403652.0509.ebuild | 9 ++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/net-im/zoom/files/README.gentoo b/net-im/zoom/files/README.gentoo
new file mode 100644
index 00000000000..06f1f9b3dce
--- /dev/null
+++ b/net-im/zoom/files/README.gentoo
@@ -0,0 +1,5 @@
+Some of Zoom's screen share features (e.g., the whiteboard) require
+display compositing. If you encounter a black window when sharing
+the screen, then one of the following actions should help:
+- Enable compositing in your window manager if it is supported
+- Alternatively, run the xcompmgr command (from x11-misc/xcompmgr)

diff --git a/net-im/zoom/zoom-5.0.403652.0509.ebuild 
b/net-im/zoom/zoom-5.0.403652.0509.ebuild
index f2a3aea4c10..314ddbedc6b 100644
--- a/net-im/zoom/zoom-5.0.403652.0509.ebuild
+++ b/net-im/zoom/zoom-5.0.403652.0509.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit desktop eutils xdg-utils
+inherit desktop eutils readme.gentoo-r1 xdg-utils
 
 DESCRIPTION="Video conferencing and web conferencing service"
 HOMEPAGE="https://zoom.us/";
@@ -86,11 +86,18 @@ src_install() {
        # white on a blue background
        doicon -s scalable "${FILESDIR}"/zoom-videocam.svg
        doicon -s 24 "${FILESDIR}"/zoom-videocam.xpm
+       readme.gentoo_create_doc
 }
 
 pkg_postinst() {
        xdg_desktop_database_update
        xdg_icon_cache_update
+
+       local FORCE_PRINT_ELOG v
+       for v in ${REPLACING_VERSIONS}; do
+               ver_test ${v} -le 5.0.403652.0509 && FORCE_PRINT_ELOG=1
+       done
+       readme.gentoo_print_elog
 }
 
 pkg_postrm() {

Reply via email to