| 1 |
|
# Copyright 2021-2025 Gentoo Authors
|
|
1 |
# Copyright 2021-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| ... | ... | |
| 9 |
9 |
DESCRIPTION="Cross-platform application development framework"
|
| 10 |
10 |
|
| 11 |
11 |
if [[ ${QT6_BUILD_TYPE} == release ]]; then
|
| 12 |
|
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
|
|
12 |
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
|
| 13 |
13 |
fi
|
| 14 |
14 |
|
| 15 |
15 |
declare -A QT6_IUSE=(
|
| 16 |
16 |
[global]="+ssl +udev zstd"
|
| 17 |
|
[core]="icu journald syslog"
|
|
17 |
[core]="icu io-uring journald syslog"
|
| 18 |
18 |
[modules]="+concurrent +dbus +gui +network +sql +xml"
|
| 19 |
19 |
|
| 20 |
20 |
[gui]="
|
| ... | ... | |
| 65 |
65 |
dev-libs/glib:2
|
| 66 |
66 |
dev-libs/libpcre2:=[pcre16,unicode(+)]
|
| 67 |
67 |
icu? ( dev-libs/icu:= )
|
|
68 |
io-uring? ( sys-libs/liburing:= )
|
| 68 |
69 |
journald? ( sys-apps/systemd )
|
| 69 |
70 |
|
| 70 |
71 |
dbus? ( sys-apps/dbus )
|
| ... | ... | |
| 207 |
208 |
}
|
| 208 |
209 |
|
| 209 |
210 |
src_configure() {
|
| 210 |
|
# temporary warning to spare surprised users for whom "it worked before",
|
| 211 |
|
# will drop this in Qt 6.11 (bug #966289)
|
| 212 |
|
if use custom-cflags && tc-cpp-is-true __RDRND__ ${CXXFLAGS}; then
|
| 213 |
|
ewarn "USE=custom-cflags is enabled, and there is a good chance that the build"
|
| 214 |
|
ewarn "will fail with current CXXFLAGS. Please disable it if have issues."
|
| 215 |
|
fi
|
| 216 |
|
|
| 217 |
211 |
if use gtk; then
|
| 218 |
212 |
# defang automagic dependencies (bug #624960)
|
| 219 |
213 |
use X || append-cxxflags -DGENTOO_GTK_HIDE_X11
|
| ... | ... | |
| 248 |
242 |
|
| 249 |
243 |
# qtcore
|
| 250 |
244 |
$(qt_feature icu)
|
|
245 |
$(qt_feature io-uring liburing)
|
| 251 |
246 |
$(qt_feature journald)
|
| 252 |
247 |
$(qt_feature syslog)
|
| 253 |
248 |
# currently jemalloc upstream is dead and tests fail with it
|
| ... | ... | |
| 331 |
326 |
qt6-build_src_configure
|
| 332 |
327 |
}
|
| 333 |
328 |
|
|
329 |
src_compile() {
|
|
330 |
# workaround missing qtest include race condition when building
|
|
331 |
# the new test from qtbase@b412e424b (needs more looking into)
|
|
332 |
cmake_build include/QtTest/QtTest
|
|
333 |
cmake_src_compile
|
|
334 |
}
|
|
335 |
|
| 334 |
336 |
src_test() {
|
| 335 |
337 |
local -x TZ=UTC
|
| 336 |
338 |
local -x LC_TIME=C
|