dev-libs/wlc: introduce xwayland use flag.
authorMykyta Holubakha <hilobakho@gmail.com>
Fri, 4 Nov 2016 18:52:04 +0000 (20:52 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 4 Nov 2016 22:23:04 +0000 (23:23 +0100)
Closes: https://github.com/gentoo/gentoo/pull/2744

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-libs/wlc/metadata.xml
dev-libs/wlc/wlc-9999.ebuild

index bd85b2b7a6ab441431936d356d8251cd0c79f88c..3319b29914b0117cb14cdc3d173fbe71cf6117b4 100644 (file)
@@ -12,5 +12,6 @@
        <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>
index 5a3e040fbf84a3c09fe02119e011db1445aa3c7a..e44e750107d2e39fbef4d081758c86bf27cdd2c1 100644 (file)
@@ -14,7 +14,7 @@ EGIT_REPO_URI="https://github.com/Cloudef/wlc.git"
 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]
@@ -29,6 +29,7 @@ RDEPEND="virtual/opengl
                         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}
@@ -52,9 +53,8 @@ src_configure() {
 }
 
 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
 }