commit:     28af20091a8243d35db232d7d71c41563cba5ee1
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 11 11:36:36 2021 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Jan 11 12:08:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28af2009

net-misc/chrome-remote-desktop: switch xrandr to optfeature logging

Bug: https://bugs.gentoo.org/764626
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 .../chrome-remote-desktop-88.0.4324.33.ebuild                      | 7 ++++---
 net-misc/chrome-remote-desktop/metadata.xml                        | 3 ---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/net-misc/chrome-remote-desktop/chrome-remote-desktop-88.0.4324.33.ebuild 
b/net-misc/chrome-remote-desktop/chrome-remote-desktop-88.0.4324.33.ebuild
index ace3c7112e5..32d84d04957 100644
--- a/net-misc/chrome-remote-desktop/chrome-remote-desktop-88.0.4324.33.ebuild
+++ b/net-misc/chrome-remote-desktop/chrome-remote-desktop-88.0.4324.33.ebuild
@@ -18,7 +18,7 @@ EAPI="7"
 PYTHON_COMPAT=( python3_{7,8,9} )
 PLOCALES="am ar bg bn ca cs da de el en_GB en es_419 es et fa fil fi fr gu he 
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv 
sw ta te th tr uk vi zh_CN zh_TW"
 
-inherit unpacker python-single-r1 l10n
+inherit unpacker python-single-r1 l10n optfeature
 
 DESCRIPTION="access remote computers via Chrome!"
 PLUGIN_URL="https://chrome.google.com/remotedesktop";
@@ -30,7 +30,7 @@ SRC_URI="amd64? ( ${BASE_URI}_amd64.deb )"
 LICENSE="google-chrome"
 SLOT="0"
 KEYWORDS="-* ~amd64"
-IUSE="xrandr"
+IUSE=""
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 RESTRICT="bindist mirror"
 
@@ -69,7 +69,6 @@ RDEPEND+="
 # - The Xorg invocation uses absolute paths with -logfile & -config which are 
rejected.
 # - The config takes over the active display in addition to starting up a 
virtual one.
 RDEPEND+="
-       xrandr? ( x11-apps/xrandr )
        x11-base/xorg-server[xvfb]"
 DEPEND="$(unpacker_src_uri_depends)"
 
@@ -119,6 +118,8 @@ src_install() {
 }
 
 pkg_postinst() {
+       optfeature "Dynamic resolution changes" "x11-apps/xrandr"
+
        if [[ -z ${REPLACING_VERSIONS} ]] ; then
                elog "Two ways to launch the server:"
                elog "(1) access an existing desktop"

diff --git a/net-misc/chrome-remote-desktop/metadata.xml 
b/net-misc/chrome-remote-desktop/metadata.xml
index 09ff7ff62a4..496b9d3fd3e 100644
--- a/net-misc/chrome-remote-desktop/metadata.xml
+++ b/net-misc/chrome-remote-desktop/metadata.xml
@@ -4,7 +4,4 @@
 <maintainer type="person">
        <email>[email protected]</email>
 </maintainer>
-<use>
-       <flag name="xrandr">Enable support for the XRandR extension for dynamic 
desktop resizing</flag>
-</use>
 </pkgmetadata>

Reply via email to