commit:     4e3a6a3193c4cfb6a0403752cf43a558406c2b92
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  2 06:43:01 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  2 07:50:38 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e3a6a31

x11-misc/qt5ct: Bump to 1.5

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 x11-misc/qt5ct/Manifest         |  1 +
 x11-misc/qt5ct/qt5ct-1.5.ebuild | 49 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/x11-misc/qt5ct/Manifest b/x11-misc/qt5ct/Manifest
index 7f4077da5a1..83d450ff6a1 100644
--- a/x11-misc/qt5ct/Manifest
+++ b/x11-misc/qt5ct/Manifest
@@ -1 +1,2 @@
 DIST qt5ct-1.3.tar.bz2 80506 BLAKE2B 
eda2d69fcddf80553358d3c9e9bd0ef33355919c5b62912d8e79a84a36ee5a25d1dab553b6413d78e16ce69435861a01b298ae97202a77f1f50ed805f14445dd
 SHA512 
9f4397d5cfc3dec14330759f213ae99b02ae36d3ea48dfdb3015c3b7d3fe12cde619af855d7320566ca32120e8689e4b39f78e4fdf9886e2472aef570beb75bd
+DIST qt5ct-1.5.tar.bz2 81089 BLAKE2B 
8bf02a6c53c68f30e0647ff7c40c9d80044cbf914ee13f9e7f13ad6424e5cf73b9460af70ea484d498bfb693e8f8b018f7e32cac6205ffa2dba05930c6d0610c
 SHA512 
fc16c7849a89aa8ee9480162888294638bc01f83b89d86c978397e58f6da4360cf07b9f558635b8a5b13bd10d18f3ad49663fe8a76183da9ae55aac23230b1e5

diff --git a/x11-misc/qt5ct/qt5ct-1.5.ebuild b/x11-misc/qt5ct/qt5ct-1.5.ebuild
new file mode 100644
index 00000000000..bcb0e53195b
--- /dev/null
+++ b/x11-misc/qt5ct/qt5ct-1.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Qt5 configuration tool, similar to qtconfig for Qt4"
+HOMEPAGE="https://sourceforge.net/projects/qt5ct/";
+SRC_URI="https://download.sourceforge.net/qt5ct/${P}.tar.bz2";
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
+IUSE="+dbus"
+
+RDEPEND="
+       dev-qt/qtconcurrent:5
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5=
+       dev-qt/qtwidgets:5
+       dbus? (
+               dev-qt/qtdbus:5
+               dev-qt/qtgui:5[dbus]
+       )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-qt/linguist-tools:5
+       dev-qt/qtpaths:5
+"
+
+src_install() {
+       cmake_src_install
+
+       newenvd - 98qt5ct <<< 'QT_QPA_PLATFORMTHEME=qt5ct'
+}
+
+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
+}

Reply via email to