commit:     79a01153cb233861ab23b0e02f5b24bbed082b1c
Author:     David Roman <droman <AT> ifae <DOT> es>
AuthorDate: Thu Feb 27 13:42:59 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 07:14:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79a01153

dev-vcs/git-cola: add 4.12.0

Signed-off-by: David Roman <droman <AT> ifae.es>
Closes: https://github.com/gentoo/gentoo/pull/40792
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

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

diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
index f163f49a0055..cc04d574d826 100644
--- a/dev-vcs/git-cola/Manifest
+++ b/dev-vcs/git-cola/Manifest
@@ -1,2 +1,3 @@
 DIST git-cola-4.10.1.tar.gz 1265278 BLAKE2B 
3c2ff0f25b5f75340f24577b5109fcbc3ce89122df88a097b1578c193bf37e832c2825ec25dcac720145230c879ba473a7db35ea2e9e1f476c937b14e3649c7c
 SHA512 
582842a861726b4ed6e9f966afc47cb4817cecd82740bb446e39b6f3d03fb96523401267ebdef64960ef60b55cc3e7f42d8023a738b9ff660b9f0d9ea07f201b
 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

diff --git a/dev-vcs/git-cola/git-cola-4.12.0.ebuild 
b/dev-vcs/git-cola/git-cola-4.12.0.ebuild
new file mode 100644
index 000000000000..c052fd0a6ae3
--- /dev/null
+++ b/dev-vcs/git-cola/git-cola-4.12.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