diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2017-03-30 06:14:25 +0300 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2017-03-30 18:41:39 +1100 |
commit | 0db0293a3cacfad594da057e90d990efb64fc638 (patch) | |
tree | 35d6666869726cdbf32595af8c6d3746d4540dc5 /x11-misc/qt5ct/qt5ct-0.31.ebuild | |
parent | x11-drivers/nvidia-drivers: Stable for AMD64 x86 too. (diff) | |
download | gentoo-0db0293a.tar.gz gentoo-0db0293a.tar.bz2 gentoo-0db0293a.zip |
x11-misc/qt5ct: verbump to 0.31
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'x11-misc/qt5ct/qt5ct-0.31.ebuild')
-rw-r--r-- | x11-misc/qt5ct/qt5ct-0.31.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/x11-misc/qt5ct/qt5ct-0.31.ebuild b/x11-misc/qt5ct/qt5ct-0.31.ebuild new file mode 100644 index 000000000000..c37e2dffc558 --- /dev/null +++ b/x11-misc/qt5ct/qt5ct-0.31.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit qmake-utils + +DESCRIPTION="Qt5 configuration tool, similar to qtconfig for Qt4" +HOMEPAGE="https://sourceforge.net/projects/qt5ct/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+systray" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5= + dev-qt/qtwidgets:5 + systray? ( dev-qt/qtgui:5[dbus] ) +" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 +" + +src_configure() { + eqmake5 DEFINES="$(usex systray '' QT_NO_SYSTEMTRAYICON)" ${PN}.pro +} + +src_install() { + emake INSTALL_ROOT="${D}" install + einstalldocs + + echo 'QT_QPA_PLATFORMTHEME=qt5ct' > "${T}"/98${PN} || die + doenvd "${T}"/98${PN} +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + ewarn "qt5ct configuration won't be applied to the currently running sessions." + ewarn "Please relogin." + fi + if ! has_version 'dev-qt/qtsvg:5'; then + elog + elog "For SVG icon themes, please install 'dev-qt/qtsvg:5'." + elog + fi +} |