dev-libs/wlc: add postinst message about Xwayland.
authorJasen Borisov <tajjada@gmail.com>
Thu, 12 May 2016 10:08:10 +0000 (11:08 +0100)
committerIan Delaney <idella4@gentoo.org>
Fri, 13 May 2016 03:34:40 +0000 (11:34 +0800)
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1459

Signed-off-by: Ian Delaney <idella4@gentoo.org>
dev-libs/wlc/wlc-0.0.2.ebuild
dev-libs/wlc/wlc-9999.ebuild

index 72f4ddd828b36d9b9106f1f1d742559a7ea054de..8917c648a1c33de50c89ef781216235357a8c901 100644 (file)
@@ -6,7 +6,7 @@ EAPI=6
 
 inherit cmake-utils
 
-DESCRIPTION="A helper library for Wayland compositors."
+DESCRIPTION="A helper library for Wayland compositors"
 HOMEPAGE="https://github.com/Cloudef/wlc"
 
 SRC_URI="https://github.com/Cloudef/wlc/releases/download/v${PV}/${P}.tar.bz2"
@@ -48,3 +48,11 @@ src_configure() {
 
        cmake-utils_src_configure
 }
+
+pkg_postinst() {
+       if use X && !has_version 'x11-base/xorg-server[wayland]'
+       then
+               elog "You have enabled wlc's X11 support. To use Xwayland, you must emerge"
+               elog "'x11-base/xorg-server[wayland]'."
+       fi
+}
index 8af28d5b7c419f0c84773394d9ffd82f9ee5cc7e..55443ba35d45dfdec3333dbd8236529e8e3f8da1 100644 (file)
@@ -6,7 +6,7 @@ EAPI=6
 
 inherit git-r3 cmake-utils
 
-DESCRIPTION="A helper library for Wayland compositors."
+DESCRIPTION="A helper library for Wayland compositors"
 HOMEPAGE="https://github.com/Cloudef/wlc"
 
 EGIT_REPO_URI="https://github.com/Cloudef/wlc.git"
@@ -48,3 +48,11 @@ src_configure() {
 
        cmake-utils_src_configure
 }
+
+pkg_postinst() {
+       if use X && !has_version 'x11-base/xorg-server[wayland]'
+       then
+               elog "You have enabled wlc's X11 support. To use Xwayland, you must emerge"
+               elog "'x11-base/xorg-server[wayland]'."
+       fi
+}