# Copyright 2021-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 QT6_HAS_STATIC_LIBS=1 inherit flag-o-matic qt6-build toolchain-funcs DESCRIPTION="Cross-platform application development framework" # BENTOO-DIVERGENCE: PATCHES - 6.11.2's QTBUG-149431 and mimeinfo2.5 patches # are upstream in 6.12.0 (both reverse-apply cleanly on the tarball). # BENTOO-DIVERGENCE: RDEPEND - no !=6.6.2 had related fixes, needs retesting # this test has often caused trouble depending on arch, endianness, # musl, and others with some image/pixel formats and similar and, # while there is likely real bugs, it's above what I'm willing to # handle for now tst_qimage # partially broken on llvm-musl, needs looking into but skip to have # a baseline for regressions (rest of dev-qt still passes with musl) $(usev elibc_musl ' tst_qicoimageformat tst_qimagereader ') # fails due to hppa's NaN handling, needs looking into (bug #914371) $(usev hppa ' tst_qcborvalue tst_qnumeric ') # note: for linux, upstream only really runs+maintains tests for amd64 # https://doc.qt.io/qt-6/supported-platforms.html ) qt6-build_src_test } src_install() { qt6-build_src_install if use test; then local delete_bins=( # need a better way to handle this apphelper clientserver copier crashingServer desktopsettingsaware_helper echo fileWriterProcess modal_helper nospace 'one space' paster qcommandlineparser_test_helper qfileopeneventexternal socketprocess syslocaleapp tst_qhashseed_helper 'two space s' write-read-write ) local delete=( # sigh "${D}${QT6_BINDIR}"/test* "${D}${QT6_LIBDIR}/objects-${CMAKE_BUILD_TYPE}"/*test* "${delete_bins[@]/#/${D}${QT6_BINDIR}/}" ) # using -f given not tracking which tests may be skipped or not rm -rf -- "${delete[@]}" || die fi }