blob: 7441ea92151725f547418fbcac3dbd875d9167d4 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A Qt Platform Theme aimed to accommodate GNOME settings"
HOMEPAGE="https://github.com/FedoraQt/QGnomePlatform"
SRC_URI="https://github.com/FedoraQt/QGnomePlatform/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="+qt5 qt6 minimal wayland"
REQUIRED_USE="|| ( qt5 qt6 )"
RDEPEND="
qt5? (
dev-qt/qtdbus:5=
>=dev-qt/qtquickcontrols2-5.15.2:5=
>=dev-qt/qtwidgets-5.15.2:5=
!minimal? ( kde-frameworks/qqc2-desktop-style:5= )
wayland? ( dev-qt/qtwayland:5= )
)
qt6? (
dev-qt/qtbase:6=[dbus,gui,widgets]
dev-qt/qtdeclarative:6=
wayland? ( dev-qt/qtwayland:6= )
)
gnome-base/gsettings-desktop-schemas
sys-apps/xdg-desktop-portal
x11-libs/gtk+:3
>=x11-themes/adwaita-qt-1.4.2
"
DEPEND="${RDEPEND}"
BDEPEND="${RDEPEND}"
src_configure() {
if use qt5; then
BUILD_DIR="${WORKDIR}/${PN}_qt5"
local mycmakeargs=(
-DUSE_QT6=OFF
-DDISABLE_DECORATION_SUPPORT="$(usex wayland false true)"
)
cmake_src_configure
fi
if use qt6; then
BUILD_DIR="${WORKDIR}/${PN}_qt6"
local mycmakeargs=(
-DUSE_QT6=ON
-DDISABLE_DECORATION_SUPPORT="$(usex wayland false true)"
)
cmake_src_configure
fi
}
src_compile() {
local _d
for _d in "${WORKDIR}"/${PN}_qt*; do
cmake_src_compile -C "${_d}"
done
}
src_install() {
local _d
for _d in "${WORKDIR}"/${PN}_qt*; do
cmake_src_install -C "${_d}"
done
# https://github.com/FedoraQt/QGnomePlatform/pull/150#issuecomment-1689693729
exeinto /etc/X11/xinit/xinitrc.d/
doexe "${FILESDIR}/90-qgnomeplatform"
}
|