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 <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2023-02-12 20:12:15 +03:00
parent 4e0b65b114
commit 1f20f96c55
2 changed files with 159 additions and 0 deletions

View File

@@ -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
}