# Copyright 2022 Gentoo Authors
# Copyright 2019-2022 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2

EAPI="8"

TRINITY_EXTRAGEAR_PACKAGING="yes"
TRINITY_HANDBOOK="optional"

TRINITY_LANGS="ar bg cs da de el es fi fr hi hu it ja km lt
	nb nl pa pl pt pt_BR ru sl_SI sv tr uk zh_CN zh_TW"

TRINITY_DOC_LANGS="cs de fi hu nb"

TRINITY_MODULE_TYPE="applications/system"
inherit trinity-base-2

DESCRIPTION="A TDE frontend for power management"
HOMEPAGE="https://trinitydesktop.org/"

LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="14"
if [[ ${PV} != *9999* ]] ; then
    KEYWORDS="~amd64 ~arm64 ~x86"
fi

DEPEND="
	~dev-libs/dbus-1-tqt-${PV}
	x11-libs/libXext
	x11-libs/libXScrnSaver
	x11-libs/libXtst
"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DBUILD_TRANSLATIONS=ON
	)
	trinity-base-2_src_configure
}
