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

EAPI=8

inherit git-r3 qmake-utils xdg

DESCRIPTION="A good looking terminal emulator which mimics the old cathode display"
HOMEPAGE="https://github.com/Swordfish90/cool-retro-term"
EGIT_REPO_URI="https://github.com/Swordfish90/${PN}"

LICENSE="GPL-3 GPL-2"
SLOT="0"

RDEPEND="
	dev-qt/qt5compat:6[qml]
	dev-qt/qtbase:6[gui,network,opengl,sql,widgets]
	dev-qt/qtdeclarative:6[opengl,sql]
"
DEPEND="${RDEPEND}"
BDEPEND="
	dev-qt/qtshadertools:6
"

src_configure() {
	eqmake6 PREFIX="${EPREFIX}/usr"
}

src_install() {
	# qmltermwidget has overlapping directory and file install targets.
	emake -j1 INSTALL_ROOT="${D}" install
	doman packaging/debian/cool-retro-term.1
}