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

Bug: https://bugs.gentoo.org/764626
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2021-01-11 06:36:36 -05:00
parent ea084ed5a9
commit 28af20091a
2 changed files with 4 additions and 6 deletions

View File

@@ -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"

View File

@@ -4,7 +4,4 @@
<maintainer type="person">
<email>vapier@gentoo.org</email>
</maintainer>
<use>
<flag name="xrandr">Enable support for the XRandR extension for dynamic desktop resizing</flag>
</use>
</pkgmetadata>