blob: 8a2d5172bd93fedb60b1d4da83edbe10af15d993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="QT6 Theme Provider for Hyprland"
HOMEPAGE="https://github.com/hyprwm/hyprqt6engine"
if [[ "${PV}" = *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git"
else
SRC_URI="https://github.com/hyprwm/${PN^}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="BSD"
SLOT="0"
IUSE="kde"
DEPEND="
>=dev-qt/qtbase-6.9:6=[gui,widgets]
dev-qt/qtdeclarative:6
dev-libs/hyprlang
gui-libs/hyprutils
kde? (
kde-frameworks/kcolorscheme:6
kde-frameworks/kconfig:6
kde-frameworks/kiconthemes:6
)
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}/hyprqt6engine-0.1.0-fix-GuiPrivate-not-found.patch"
"${FILESDIR}/hyprqt6engine-0.1.0-KDE-option.patch"
)
src_configure() {
local mycmakeargs=(
-DWITH_KDE=$(usex kde)
)
cmake_src_configure
}
pkg_postinst() {
elog "QT_QPA_PLATFORMTHEME=${PN} has to be set to enable ${PN}."
elog "You can set it in the Hyprland Lua config like"
elog " hl.env(\"QT_QPA_PLATFORMTHEME\", \"${PN}\")"
elog "If you use uwsm with Hyprland, then set it in ~/.config/uwsm/env with"
elog " export QT_QPA_PLATFORMTHEME=${PN}"
elog "instead."
}
|