Updated gui-apps/qt6ct-kde-0.11-r4 to 0.11-r5
This commit is contained in:
		
							
								
								
									
										57
									
								
								gui-apps/qt6ct-kde/qt6ct-kde-0.11-r5.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								gui-apps/qt6ct-kde/qt6ct-kde-0.11-r5.ebuild
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,57 @@
 | 
			
		||||
# Copyright 2023-2025 Gentoo Authors
 | 
			
		||||
# Distributed under the terms of the GNU General Public License v2
 | 
			
		||||
 | 
			
		||||
EAPI=8
 | 
			
		||||
 | 
			
		||||
inherit cmake
 | 
			
		||||
 | 
			
		||||
DESCRIPTION="Qt 6 Configuration Utility, patched to work correctly with KDE applications"
 | 
			
		||||
HOMEPAGE="https://www.opencode.net/trialuser/qt6ct"
 | 
			
		||||
SRC_URI="https://www.opencode.net/trialuser/qt6ct/-/archive/${PV}/qt6ct-${PV}.tar.gz -> ${P}.tar.gz"
 | 
			
		||||
S="${WORKDIR}/qt6ct-${PV}"
 | 
			
		||||
 | 
			
		||||
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]
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
PATCHES=(
 | 
			
		||||
	"${FILESDIR}/qt6ct-kde-0.11-r4.patch"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
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 typically not be used with DEs that do"
 | 
			
		||||
		elog "their own integration (e.g. Plasma/KDE). Qt also has special"
 | 
			
		||||
		elog "handling for Gnome which may or may not be better."
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user