mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-11-09 09:11:19 -05:00
After release of 1.5.0 on 25 June 2022 the upstream prepare tarball of GitQlient that contains all required submodules within (on 04 July 2022). Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
# Copyright 1999-2022 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
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i -e "/QMAKE_CXXFLAGS/s:-Werror::" -e "/^GQ_SHA/d" "${MY_PN}".pro || die
|
|
sed -i -e "s:Office:Development:" "${S}/src/resources/${PN}.desktop" || die
|
|
# Drop 'fatal' warning on version detection via git command:
|
|
sed -i -e "/VERSION =/s: \$\$system(git rev-parse --short HEAD)::" "${MY_PN}".pro || die
|
|
}
|
|
|
|
src_configure() {
|
|
eqmake5 PREFIX=/usr "${MY_PN}".pro
|
|
}
|
|
|
|
src_install() {
|
|
emake INSTALL_ROOT="${D}" install
|
|
}
|
|
|
|
pkg_postinst() {
|
|
optfeature "Jenkins and/or GitServer plugins support" dev-qt/qtwebchannel:5 dev-qt/qtwebengine:5[widgets]
|
|
}
|