diff options
| -rw-r--r-- | dev-vcs/git-cola/Manifest | 1 | ||||
| -rw-r--r-- | dev-vcs/git-cola/git-cola-4.11.0.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest index 70a903e42a7b..875b0108e44a 100644 --- a/dev-vcs/git-cola/Manifest +++ b/dev-vcs/git-cola/Manifest @@ -1,3 +1,4 @@ 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.8.2.tar.gz 1251173 BLAKE2B 758b34e271883c5493e9a219e7f9970c1ca2e0cdb97bbab50828ea53ae2bae223692a06c353d0b017af2e82b3855708ebd2937d9656b373b8d45ab457ac50b7b SHA512 0b924837e8e5dcaa9687ffdff779bd3ed9f629713826f6c537d6470fdaed84bab3cec793aa9f1cf0e7bce3c4dae60c838822005efa93236b5964c8be74ef33cc DIST git-cola-4.9.0.tar.gz 1261512 BLAKE2B 51994539e79d1f3db5876b64c10bf84fd2ac7f90cab05227c23831b0f0a6771cead11bf3bcb76863eb0e6e26c245a735143306d55f1773a697036652d7a1084e SHA512 8abb30c8263170c185dc66061b8271dfb73a0173a29337ef704cc0d206a218bfb5ede528966ea55c64fc68121162973f9345ff112b7f8d7093f602a7774b72e0 diff --git a/dev-vcs/git-cola/git-cola-4.11.0.ebuild b/dev-vcs/git-cola/git-cola-4.11.0.ebuild new file mode 100644 index 000000000000..17c5e8352a84 --- /dev/null +++ b/dev-vcs/git-cola/git-cola-4.11.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_{10..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 +} |
