commit:     91273e7f5354dc3a5e1290192044557191db931f
Author:     Jasen Borisov <tajjada <AT> gmail <DOT> com>
AuthorDate: Thu May 12 10:08:10 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Fri May 13 03:34:40 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91273e7f

dev-libs/wlc: add postinst message about Xwayland.

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1459

Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>

 dev-libs/wlc/wlc-0.0.2.ebuild | 10 +++++++++-
 dev-libs/wlc/wlc-9999.ebuild  | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/dev-libs/wlc/wlc-0.0.2.ebuild b/dev-libs/wlc/wlc-0.0.2.ebuild
index 72f4ddd..8917c64 100644
--- a/dev-libs/wlc/wlc-0.0.2.ebuild
+++ b/dev-libs/wlc/wlc-0.0.2.ebuild
@@ -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
+}

diff --git a/dev-libs/wlc/wlc-9999.ebuild b/dev-libs/wlc/wlc-9999.ebuild
index 8af28d5..55443ba 100644
--- a/dev-libs/wlc/wlc-9999.ebuild
+++ b/dev-libs/wlc/wlc-9999.ebuild
@@ -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
+}

Reply via email to