From 14fff03b5545ac6b6f575afd2e6174afbd294fdd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 27 Aug 2023 22:00:51 +0100 Subject: gentoo auto-resync : 27:08:2023 - 22:00:51 --- dev-vcs/git-cola/git-cola-4.3.1.ebuild | 67 ++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dev-vcs/git-cola/git-cola-4.3.1.ebuild (limited to 'dev-vcs/git-cola/git-cola-4.3.1.ebuild') diff --git a/dev-vcs/git-cola/git-cola-4.3.1.ebuild b/dev-vcs/git-cola/git-cola-4.3.1.ebuild new file mode 100644 index 000000000000..4f9e775c09e5 --- /dev/null +++ b/dev-vcs/git-cola/git-cola-4.3.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_SINGLE_IMPL=true +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 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/pygments[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] + dev-python/QtPy[gui,network,${PYTHON_USEDEP}] + dev-python/send2trash[${PYTHON_USEDEP}] + ') + dev-vcs/git +" +BDEPEND="sys-devel/gettext + $(python_gen_cond_dep " + test? ( + ${VIRTUALX_DEPEND} + dev-python/pytest[\${PYTHON_USEDEP}] + dev-python/PyQt5[\${PYTHON_USEDEP},gui,widgets] + ) + ") +" + +distutils_enable_sphinx docs \ + 'dev-python/rst-linker' +distutils_enable_tests pytest + +src_prepare() { + sed -i "s|doc/git-cola =|doc/${PF} =|" setup.cfg || die + # https://github.com/git-cola/git-cola/pull/1336 + sed -E -i 's|root \+ os.sep|str\(root\)|' extras/sphinxtogithub/sphinxtogithub.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 + readme.gentoo_create_doc +} -- cgit v1.2.3