# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_PV="$(ver_cut 1-2)*"

DESCRIPTION="Meta ebuild for LXQt, the Lightweight Desktop Environment"
HOMEPAGE="https://lxqt.github.io/"

KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"

LICENSE="metapackage"
SLOT="0"

IUSE="+about admin archiver +display-manager +filemanager lightdm lximage
minimal nls onboard +policykit powermanagement processviewer qtvirtualkeyboard screenlock screensaver screenshot +sddm
ssh-askpass sudo terminal +trash virtkeyboard"

REQUIRED_USE="display-manager? ( ^^ ( lightdm sddm ) )
trash? ( filemanager )
virtkeyboard? (
	lightdm? ( onboard )
	sddm? ( qtvirtualkeyboard )
)"

# Note: we prefer kde-frameworks/oxygen-icons over other icon sets, as the initial
# install expects oxygen icons, until the user specifies otherwise (bug 543380)
RDEPEND="
	kde-frameworks/oxygen-icons
	>=lxde-base/lxmenu-data-0.1.5
	=lxqt-base/lxqt-config-${MY_PV}
	=lxqt-base/lxqt-globalkeys-${MY_PV}
	=lxqt-base/lxqt-notificationd-${MY_PV}
	=lxqt-base/lxqt-panel-${MY_PV}
	=lxqt-base/lxqt-qtplugin-${MY_PV}
	=lxqt-base/lxqt-runner-${MY_PV}
	=lxqt-base/lxqt-session-${MY_PV}
	virtual/ttf-fonts
	=x11-themes/lxqt-themes-${MY_PV}
	about? ( =lxqt-base/lxqt-about-${MY_PV} )
	admin? ( =lxqt-base/lxqt-admin-${MY_PV} )
	archiver? ( app-arch/lxqt-archiver )
	filemanager? ( =x11-misc/pcmanfm-qt-${MY_PV} )
	lightdm? ( x11-misc/lightdm )
	lximage? ( media-gfx/lximage-qt )
	!minimal? (
		x11-wm/openbox
		x11-misc/obconf-qt
	)
	nls? ( dev-qt/qttranslations:5 )
	onboard? ( app-accessibility/onboard )
	policykit? ( =lxqt-base/lxqt-policykit-${MY_PV} )
	powermanagement? ( =lxqt-base/lxqt-powermanagement-${MY_PV} )
	processviewer? ( x11-misc/qps:0 )
	qtvirtualkeyboard? ( dev-qt/qtvirtualkeyboard )
	screenlock? (
		x11-misc/xautolock
		x11-misc/i3lock
	)
	screensaver? ( x11-misc/xscreensaver )
	screenshot? ( x11-misc/screengrab:0 )
	sddm? ( >=x11-misc/sddm-0.11.0 )
	ssh-askpass? ( =lxqt-base/lxqt-openssh-askpass-${MY_PV} )
	sudo? ( =lxqt-base/lxqt-sudo-${MY_PV} )
	terminal? ( x11-terms/qterminal:0 )
	trash? ( gnome-base/gvfs )
"