diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2025-01-06 15:09:49 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2025-01-06 15:58:21 -0500 |
commit | 95818dbac6215a98c2a8a768c30b205887bb23b9 (patch) | |
tree | ed8fdc6d835a02c473640f7ae15bfc58d22b8ff2 /gui-apps | |
parent | dev-ada/e3-testsuite: fix test DEPS (diff) | |
download | gentoo-95818dbac6215a98c2a8a768c30b205887bb23b9.tar.gz gentoo-95818dbac6215a98c2a8a768c30b205887bb23b9.tar.bz2 gentoo-95818dbac6215a98c2a8a768c30b205887bb23b9.zip |
gui-apps/qt6ct: install env.d file + update messages
Was formerly hesitating about installing the env.d by default
given it can conflict with other themes and qt6ct was formerly
kind of unstable causing (some) application crashes, but...
1. qt5ct been doing this for a long time
2. users that haven't set the variable themselves will be
surprised when qt5ct is removed given it activated themes
for qt6ct too
3. plasma-meta was blocking qt5ct to stop it from setting this
variable but, despite qt6ct wasn't, it blocks it as well anyway
and won't cause problems there if we change this
4. haven't seen crashes in a while, not to say it may not still
happen with some applications
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'gui-apps')
-rw-r--r-- | gui-apps/qt6ct/qt6ct-0.9-r1.ebuild | 62 | ||||
-rw-r--r-- | gui-apps/qt6ct/qt6ct-0.9.ebuild | 40 |
2 files changed, 62 insertions, 40 deletions
diff --git a/gui-apps/qt6ct/qt6ct-0.9-r1.ebuild b/gui-apps/qt6ct/qt6ct-0.9-r1.ebuild new file mode 100644 index 000000000000..2f798cf51885 --- /dev/null +++ b/gui-apps/qt6ct/qt6ct-0.9-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Qt6 Configuration Tool (for DE/WM without Qt integration)" +HOMEPAGE="https://github.com/trialuser02/qt6ct/" +SRC_URI="https://github.com/trialuser02/qt6ct/releases/download/${PV}/${P}.tar.xz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64" + +# uses Qt private APIs wrt := +# dlopen: qtsvg +DEPEND=" + dev-qt/qtbase:6=[gui,widgets] +" +RDEPEND=" + ${DEPEND} + dev-qt/qtsvg:6 +" +BDEPEND=" + dev-qt/qtbase:6 + dev-qt/qttools:6[linguist] +" + +src_install() { + cmake_src_install + + # can replace after qt5ct is gone +# newenvd - 98${PN} <<<'QT_QPA_PLATFORMTHEME=qt6ct' + newenvd - 98${PN} <<-EOF + # 'qt5ct' is recognized by both qt5ct and qt6ct to allow simultaneous usage + QT_QPA_PLATFORMTHEME=qt5ct + EOF +} + +pkg_postinst() { + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog + elog "QT_QPA_PLATFORMTHEME has been set to enable ${PN} usage by" + elog "default. This will only come into effect after re-login into" + elog "the current desktop session(s)." + elog + elog "Note that ${PN} should not be used with DEs that do their own" + elog "integration (e.g. Plasma/KDE). Qt also has special handling" + elog "for Gnome which may or may not be better." + fi + + # not a very important warning (at most could surprise users that had it + # installed but weren't really using it), can likely cleanup next version + if [[ ${REPLACING_VERSIONS##* } ]] && + ver_test ${REPLACING_VERSIONS##* } -lt 0.9-r1 + then + ewarn + ewarn "Note that ${PF} newly sets QT_QPA_PLATFORMTHEME globally" + ewarn "by default to use ${PN} (or qt5ct if it is installed)." + fi +} diff --git a/gui-apps/qt6ct/qt6ct-0.9.ebuild b/gui-apps/qt6ct/qt6ct-0.9.ebuild deleted file mode 100644 index bb92d244d751..000000000000 --- a/gui-apps/qt6ct/qt6ct-0.9.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -DESCRIPTION="Qt6 Configuration Tool (for DE/WM without Qt integration)" -HOMEPAGE="https://github.com/trialuser02/qt6ct/" -SRC_URI="https://github.com/trialuser02/qt6ct/releases/download/${PV}/${P}.tar.xz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="amd64" - -# uses Qt private APIs wrt := -DEPEND="dev-qt/qtbase:6=[gui,widgets]" -RDEPEND=" - ${DEPEND} - dev-qt/qtsvg:6 -" -BDEPEND=" - dev-qt/qtbase:6 - dev-qt/qttools:6[linguist] -" - -pkg_postinst() { - if [[ ! ${REPLACING_VERSIONS} ]]; then - elog "Note need to export QT_QPA_PLATFORMTHEME=qt6ct in the used environment" - elog "for theming to take effect (not done automatically, may want to set in" - elog "the HOME's shell initialization scripts, or use /etc/env.d followed by" - elog "running env-update then re-login)." - elog - elog "If also using x11-misc/qt5ct, =qt5ct is alternatively recognized so it" - elog "can be activated for both Qt5 and Qt6 at once." - elog - elog "Try disabling if experience startup crashes for some applications," - elog "may still be unstable (especially with newly released Qt versions)." - fi -} |