<use>
<flag name="systemd">Enable support for systemd-logind.</flag>
<flag name="X">Enable X11 backend and XWayland support.</flag>
+ <flag name="xwayland">Enable XWayland support.</flag>
</use>
</pkgmetadata>
LICENSE="MIT ZLIB"
SLOT="0"
KEYWORDS=""
-IUSE="X static-libs systemd"
+IUSE="X static-libs systemd xwayland"
RDEPEND="virtual/opengl
media-libs/mesa[wayland,gbm,gles2,egl]
x11-libs/xcb-util-image
x11-libs/xcb-util-wm
x11-libs/libXfixes )
+ xwayland? ( x11-base/xorg-server[wayland] )
systemd? ( sys-apps/systemd sys-apps/dbus )"
DEPEND="${RDEPEND}
}
pkg_postinst() {
- if use X && !has_version 'x11-base/xorg-server[wayland]'
+ if use X && !use xwayland
then
- elog "You have enabled wlc's X11 support. To use Xwayland, you must emerge"
- elog "'x11-base/xorg-server[wayland]'."
+ elog "xwayland use flag is required for X11 applications support"
fi
}