commit: 19c3fa4b5736113dc445f670bebe22982c231aa5 Author: David Roman <droman <AT> ifae <DOT> es> AuthorDate: Tue Mar 3 15:10:53 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Mar 3 21:54:54 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19c3fa4b
dev-vcs/git-cola: add 4.17.1 Signed-off-by: David Roman <droman <AT> ifae.es> Part-of: https://codeberg.org/gentoo/gentoo/pulls/207 Merges: https://codeberg.org/gentoo/gentoo/pulls/207 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-vcs/git-cola/Manifest | 1 + dev-vcs/git-cola/git-cola-4.17.1.ebuild | 83 +++++++++++++++++++++++++++++++++ dev-vcs/git-cola/metadata.xml | 1 + 3 files changed, 85 insertions(+) diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest index 8a5ad900e494..2a89214560ae 100644 --- a/dev-vcs/git-cola/Manifest +++ b/dev-vcs/git-cola/Manifest @@ -1 +1,2 @@ DIST git-cola-4.16.1.tar.gz 1342468 BLAKE2B e8d9b9c829d6be7d17c5da4d3a7ac09ea839c254773b6caab8eda56bf3b584bd85519d23563da587756500e297ee5d6676378cdf704002be00d44a43637b9849 SHA512 78e0ddb3bdfce3499e53faad9421829febd1306d52b48d9bf5f631386ca0630d8295ab43ca2d4a56e98cb8a02cee6fcdf3789dd6b2dd1f6224470e562d874a76 +DIST git-cola-4.17.1.tar.bz2 936683 BLAKE2B d0b5c82f8f7243bfa782395905603245b33fb0038170571b3fa0f6b3106ebec7f986940e3188fc845009c32a111b07874f3a28ac04a5e9e1e5d3ff0aeaed3789 SHA512 28b900c0e2999546e3cd5cde3f295e48319df948ff7c5ce61599781cb551575301dc85aab64953d2ccb39c212df4d4a2117eb4090a5e52a5ca996a4a1ab4e411 diff --git a/dev-vcs/git-cola/git-cola-4.17.1.ebuild b/dev-vcs/git-cola/git-cola-4.17.1.ebuild new file mode 100644 index 000000000000..3aba7f46973a --- /dev/null +++ b/dev-vcs/git-cola/git-cola-4.17.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) +DISTUTILS_SINGLE_IMPL=true +DISTUTILS_USE_PEP517=setuptools +inherit desktop distutils-r1 optfeature readme.gentoo-r1 virtualx xdg + +DESCRIPTION="The highly caffeinated git GUI" +HOMEPAGE="https://git-cola.github.io/" +SRC_URI="https://gitlab.com/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2" + +S="${WORKDIR}/${PN}-v${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/polib[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/qtpy[pyqt6,gui,network,${PYTHON_USEDEP}] + ') + dev-vcs/git +" +BDEPEND=" + sys-devel/gettext + $(python_gen_cond_dep " + dev-python/setuptools-scm[\${PYTHON_USEDEP}] + test? ( + dev-python/pytest[\${PYTHON_USEDEP}] + dev-python/qtpy[pyqt6,gui,network,\${PYTHON_USEDEP}] + ) + ") +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + 'dev-python/rst-linker' + +src_prepare() { + # remove bundled qtpy and polib + rm -Rf qtpy cola/polib.py || die + distutils-r1_src_prepare +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + cd "${T}" || die + GIT_CONFIG_NOSYSTEM=true LC_ALL="C.UTF-8" \ + epytest "${S}"/test +} + +src_compile() { + SETUPTOOLS_SCM_PRETEND_VERSION=${PV} distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install + + domenu share/applications/*.desktop + doicon -s scalable cola/icons/git-cola.svg + + # patch the binaries to use desired qtpy backend + sed -i "s|import sys|import sys\nimport os\nos.environ['QT_API'] = 'pyqt6'\n|" "${D}"/usr/bin/* || die + + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "enable desktop notifications" dev-python/notify2 + optfeature "enables Send to Trash feature" dev-python/send2trash +} diff --git a/dev-vcs/git-cola/metadata.xml b/dev-vcs/git-cola/metadata.xml index b01ac73fc379..0f0c2dd27386 100644 --- a/dev-vcs/git-cola/metadata.xml +++ b/dev-vcs/git-cola/metadata.xml @@ -15,5 +15,6 @@ </maintainer> <upstream> <remote-id type="github">git-cola/git-cola</remote-id> + <remote-id type="gitlab">git-cola/git-cola</remote-id> </upstream> </pkgmetadata>
