x11-misc/rofi-emoji: fix USE flags

The ebuild required either the X or wayland USE flag to be set, but did
not enforce this. This commit removes the X flag and installs X
dependencies by default (i.e. if the wayland USE flag is not set).

Closes: https://bugs.gentoo.org/935159
Signed-off-by: Mathijs Saey <mathijs@mathsaey.be>
This commit is contained in:
Mathijs Saey
2024-06-30 17:13:31 +02:00
parent 6bbd428ebf
commit 6c7d54149b

View File

@@ -13,26 +13,22 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="X wayland"
IUSE="wayland"
DEPEND="
wayland? (
gui-apps/rofi-wayland
)
X? (
x11-misc/rofi
)
!wayland? ( x11-misc/rofi )
wayland? ( gui-apps/rofi-wayland )
"
RDEPEND="
${DEPEND}
!wayland? (
|| ( x11-misc/xsel x11-misc/xclip x11-misc/copyq )
x11-misc/xdotool
)
wayland? (
gui-apps/wl-clipboard
gui-apps/wtype
)
X? (
|| ( x11-misc/xsel x11-misc/xclip x11-misc/copyq )
x11-misc/xdotool
)
"
src_prepare() {