# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="SDDM configuration editor"
HOMEPAGE="https://qtilities.github.io/"
SRC_URI="https://github.com/qtilities/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-qt/qtbase:6[widgets]
	sys-auth/polkit
	x11-misc/sddm
"
DEPEND="${RDEPEND}"
BDEPEND="
	dev-build/qtilitools
	dev-qt/qttools:6[linguist]
"

src_configure() {
	local mycmakeargs=(
		-DPROJECT_QT_VERSION=6
	)
	cmake_src_configure
}
