1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Qt5 configuration tool, similar to qtconfig for Qt4"
10 HOMEPAGE="https://sourceforge.net/projects/qt5ct/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
22 systray? ( dev-qt/qtgui:5[dbus] )
25 dev-qt/linguist-tools:5
28 PATCHES=( "${FILESDIR}/${P}-fix-kde-styles.patch" )
31 eqmake5 DEFINES="$(usex systray '' QT_NO_SYSTEMTRAYICON)" ${PN}.pro
35 emake INSTALL_ROOT="${D}" install
38 echo 'QT_QPA_PLATFORMTHEME=qt5ct' > "${T}"/98${PN} || die
43 if [[ -z ${REPLACING_VERSIONS} ]]; then
44 ewarn "qt5ct configuration won't be applied to the currently running sessions."
45 ewarn "Please relogin."
47 if ! has_version 'dev-qt/qtsvg:5'; then
49 elog "For SVG icon themes, please install 'dev-qt/qtsvg:5'."