From 1f20f96c5592f63b083c5643e98e8630371cfa2b Mon Sep 17 00:00:00 2001 From: Sergey Torokhov Date: Sun, 12 Feb 2023 20:12:15 +0300 Subject: [PATCH] dev-vcs/gitqlient: 1.6.1-r1 bump, fix tabs style For KDE Plasma some QWidgets aren't filled with proper bg colour resulting in grey fg fonts over white bg (for dark theme). Signed-off-by: Sergey Torokhov --- .../gitqlient-1.6.1_fix_tabs_style.patch | 102 ++++++++++++++++++ dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild | 57 ++++++++++ 2 files changed, 159 insertions(+) create mode 100644 dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_tabs_style.patch create mode 100644 dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild diff --git a/dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_tabs_style.patch b/dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_tabs_style.patch new file mode 100644 index 0000000000..34af553bec --- /dev/null +++ b/dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_tabs_style.patch @@ -0,0 +1,102 @@ +diff -Naur a/src/aux_widgets/InitialRepoConfig.ui b/src/aux_widgets/InitialRepoConfig.ui +--- a/src/aux_widgets/InitialRepoConfig.ui ++++ b/src/aux_widgets/InitialRepoConfig.ui +@@ -7,7 +7,7 @@ + 0 + 0 + 600 +- 400 ++ 500 + + + +@@ -184,6 +184,12 @@ + + Credentials configuration + ++ ++ false ++ ++ ++ background: transparent; ++ + + + 0 +diff -Naur a/src/big_widgets/ConfigWidget.ui b/src/big_widgets/ConfigWidget.ui +--- a/src/big_widgets/ConfigWidget.ui ++++ b/src/big_widgets/ConfigWidget.ui +@@ -678,7 +678,7 @@ + 10 + + +- ++ + + Store credentials using GitQlient (Current session or in Storage) + +@@ -1018,6 +1018,12 @@ + + Installed plugins + ++ ++ false ++ ++ ++ background: transparent; ++ + + + 10 +@@ -1129,6 +1135,12 @@ + + Official GitQlient plugins + ++ ++ false ++ ++ ++ background: transparent; ++ + + + 10 +@@ -1213,6 +1225,12 @@ + + Branches panel + ++ ++ false ++ ++ ++ background: transparent; ++ + + + +@@ -1250,6 +1268,12 @@ + + GitQlient repo operations + ++ ++ false ++ ++ ++ background: transparent; ++ + + + +@@ -1315,6 +1339,12 @@ + + GitQlient general + ++ ++ false ++ ++ ++ background: transparent; ++ + + + diff --git a/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild b/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild new file mode 100644 index 0000000000..64cdfd1bfd --- /dev/null +++ b/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature qmake-utils xdg + +MY_PN="GitQlient" + +DESCRIPTION="Multi-platform Git client written with Qt" +HOMEPAGE="https://github.com/francescmm/GitQlient" + +SRC_URI="https://github.com/francescmm/${MY_PN}/releases/download/v${PV}/${PN}_${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" +S="${WORKDIR}/${PN}_${PV}" + +LICENSE="LGPL-2.1" +SLOT="0" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 +" +RDEPEND=" + ${DEPEND} + dev-vcs/git +" + +PATCHES=( "$FILESDIR/${P}_fix_tabs_style.patch" ) + +src_prepare() { + default + + # Drop 'fatal' warning on version detection via git command: + sed -i -e "/^GQ_SHA/d" \ + -e "/VERSION =/s| \$\$system(git rev-parse --short HEAD)||" "${MY_PN}".pro || die + + sed -i -e "s/Office/Development/" "${S}/src/resources/${PN}.desktop" || die +} + +src_configure() { + eqmake5 PREFIX=/usr "${MY_PN}".pro +} + +src_install() { + emake INSTALL_ROOT="${D}" install +} + +pkg_postinst() { + optfeature "Terminal tab plugin support" x11-libs/qtermwidget + optfeature "GitServer plugin support" dev-vcs/gitqlient-gitserver-plugin + optfeature "Jenkins plugin support" dev-vcs/gitqlient-jenkins-plugin + elog "To use plugins set PluginFolder in GitQlient settings Plugin tab to /usr/$(get_libdir)" + xdg_pkg_postinst +}