commit:     ebcefb14e106762bb2420e4ba0a42670c7f50af5
Author:     David Roman <droman <AT> ifae <DOT> es>
AuthorDate: Fri May 30 08:31:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  8 05:07:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebcefb14

dev-vcs/git-cola: add 4.13.0

Signed-off-by: David Roman <droman <AT> ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/42341
Closes: https://github.com/gentoo/gentoo/pull/42341
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-vcs/git-cola/Manifest               |  1 +
 dev-vcs/git-cola/git-cola-4.13.0.ebuild | 80 +++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
index 6624ef23ba27..e7c8f8a67ff2 100644
--- a/dev-vcs/git-cola/Manifest
+++ b/dev-vcs/git-cola/Manifest
@@ -1,2 +1,3 @@
 DIST git-cola-4.11.0.tar.gz 1268000 BLAKE2B 
d6e2b52244ea63bf166f84e5f2e86e4b85e03e1f20c57bcb90a5f6e7689645fdaa0491e583bfc03812ed5df7970cd22c41962c8872abd58f13c774ba74330f30
 SHA512 
ce0d9bf3865d7e023bf61a9b846cb764661e07b9d72b25f36c25fa5a3b428c0d490e2382ab3715f5f7b2aaa07824096002351d84d5d9c8545e6e2b678a22c0f5
 DIST git-cola-4.12.0.tar.gz 1269313 BLAKE2B 
447ca9b4db2de5c157aea78d1668c0a4325bb816e031f188342a646e85ae5880ed5ed7bec0d863740975c2860e9a4199f7f34099a23b8a86138a64cc6964988f
 SHA512 
110db6c9a2cdc70eab942aa4965704081fc2d920a9a9a188a91f5a9e76927f02d9c8a4141f6921cb708ea00f676319820f9403e32da6798c0118ab87d388c8c2
+DIST git-cola-4.13.0.tar.gz 1276304 BLAKE2B 
2e75241ed1c528478199aa9977776ceafc8ba72c5b674bc69aceaceb44b1b44db138ac98ea4441100f586dd0940ffcf18b9b64d70a464cbe957d40fe7878dcca
 SHA512 
57b74cf98b6ec72946d730a5e59fbe4e57edaefa7b935a1d757e43e4faea6bc5d1752fbf37767250120d7192cb131c6565b6577e1857c3c6ad48ab6518f21316

diff --git a/dev-vcs/git-cola/git-cola-4.13.0.ebuild 
b/dev-vcs/git-cola/git-cola-4.13.0.ebuild
new file mode 100644
index 000000000000..c052fd0a6ae3
--- /dev/null
+++ b/dev-vcs/git-cola/git-cola-4.13.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+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://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+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}]
+               )
+       ")
+"
+
+distutils_enable_sphinx docs \
+       'dev-python/rst-linker'
+distutils_enable_tests pytest
+
+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.utf8" \
+       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
+}

Reply via email to