commit:     fa90ec98febd5311603b99f94ca4ce5b74b89bb0
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 30 13:35:00 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Wed Jun 30 13:35:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa90ec98

x11-terms/mlterm: add X USE flag

Reported-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/19242
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 x11-terms/mlterm/mlterm-3.9.1-r1.ebuild | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/x11-terms/mlterm/mlterm-3.9.1-r1.ebuild 
b/x11-terms/mlterm/mlterm-3.9.1-r1.ebuild
index 9a1c8d6abe4..540972d7eb7 100644
--- a/x11-terms/mlterm/mlterm-3.9.1-r1.ebuild
+++ b/x11-terms/mlterm/mlterm-3.9.1-r1.ebuild
@@ -12,13 +12,15 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 ppc ppc64 x86"
-IUSE="bidi brltty cairo canna debug fbcon fcitx freewnn gtk harfbuzz ibus 
libssh2 m17n-lib nls regis scim skk static-libs uim utempter wayland xft"
+IUSE="+X bidi brltty cairo canna debug fbcon fcitx freewnn gtk harfbuzz ibus 
libssh2 m17n-lib nls regis scim skk static-libs uim utempter wayland xft"
+REQUIRED_USE="|| ( X fbcon wayland )"
 
 RDEPEND="virtual/libcrypt:=
-       x11-libs/libICE
-       x11-libs/libxkbcommon
-       x11-libs/libSM
-       x11-libs/libX11
+       X? (
+               x11-libs/libICE
+               x11-libs/libSM
+               x11-libs/libX11
+       )
        bidi? ( dev-libs/fribidi )
        brltty? ( app-accessibility/brltty )
        cairo? ( x11-libs/cairo[X(+)] )
@@ -47,7 +49,10 @@ RDEPEND="virtual/libcrypt:=
        )
        uim? ( app-i18n/uim )
        utempter? ( sys-libs/libutempter )
-       wayland? ( dev-libs/wayland )
+       wayland? (
+               dev-libs/wayland
+               x11-libs/libxkbcommon
+       )
        xft? ( x11-libs/libXft )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -82,7 +87,8 @@ src_configure() {
                $(use_enable scim)
                $(use_enable skk)
                $(use_enable uim)
-               --with-gui=xlib$(usex fbcon ",fb" "")$(usex wayland ",wayland" 
"")
+               $(use_with X x)
+               --with-gui=$(usex X "xlib" "")$(usex fbcon ",fb" "")$(usex 
wayland ",wayland" "")
                --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo 
",cairo" "")
                --with-utmp=$(usex utempter utempter none)
                --enable-optimize-redrawing

Reply via email to