commit: 5a227cd7c75467efbbeb481dc409ea50b6765f2d Author: Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me> AuthorDate: Wed Sep 27 06:58:21 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Sep 28 17:51:48 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a227cd7
gui-libs/wlroots: add xcb-errors USE-flag (0.16.2-r2) Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me> Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> gui-libs/wlroots/wlroots-0.16.2-r2.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gui-libs/wlroots/wlroots-0.16.2-r2.ebuild b/gui-libs/wlroots/wlroots-0.16.2-r2.ebuild index 86907c012c03..03002a5a59c8 100644 --- a/gui-libs/wlroots/wlroots-0.16.2-r2.ebuild +++ b/gui-libs/wlroots/wlroots-0.16.2-r2.ebuild @@ -19,7 +19,10 @@ else fi LICENSE="MIT" -IUSE="+drm +libinput tinywl vulkan x11-backend X" +IUSE="+drm +libinput tinywl vulkan x11-backend xcb-errors X" +REQUIRED_USE=" + xcb-errors? ( || ( x11-backend X ) ) +" DEPEND=" >=dev-libs/wayland-1.21.0 @@ -46,6 +49,7 @@ DEPEND=" x11-libs/libxcb:0= x11-libs/xcb-util-wm ) + xcb-errors? ( x11-libs/xcb-util-errors ) " RDEPEND=" ${DEPEND} @@ -65,9 +69,8 @@ src_configure() { ) # Separate values with a comma with this evil floating point bit hack local meson_backends=$(IFS=','; echo "${backends[*]}") - # xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?) local emesonargs=( - "-Dxcb-errors=disabled" + $(meson_feature xcb-errors) $(meson_use tinywl examples) -Drenderers=$(usex vulkan 'gles2,vulkan' gles2) $(meson_feature X xwayland)