mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
I manually went through some entries for `pkgcheck scan -c VariableOrderCheck`. Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Julien Roy <julien@jroy.ca>
56 lines
1.3 KiB
Bash
56 lines
1.3 KiB
Bash
# 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"
|
|
|
|
S="${WORKDIR}/${PN}_${PV}"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND="
|
|
dev-qt/qtcore:5
|
|
dev-qt/qtgui:5
|
|
dev-qt/qtnetwork:5
|
|
dev-qt/qtwidgets:5
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
dev-vcs/git
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Drop 'fatal' warning on version detection via git command:
|
|
sed -i -e '/message("Submodule update:")/d' \
|
|
-e "/system(git submodule update --init --recursive)/d" \
|
|
-e "/GQ_SHA =/s| \$\$system(git rev-parse --short HEAD)||" \
|
|
-e "/VERSION =/s| \$\$system(git describe --abbrev=0)||" "${MY_PN}".pro || 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
|
|
}
|