diff options
author | Sebastian Pipping <sping@gentoo.org> | 2023-11-07 01:07:07 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2023-11-07 01:07:07 +0100 |
commit | 996b0428ec50dcd931077c12168e8ace7f29c820 (patch) | |
tree | b76bdc0d3ccc74b9e1d0ee5242ab059af5584cbc /dev-vcs/git-delete-merged-branches | |
parent | dev-vcs/git-big-picture: Python 3.12 (diff) | |
download | gentoo-996b0428ec50dcd931077c12168e8ace7f29c820.tar.gz gentoo-996b0428ec50dcd931077c12168e8ace7f29c820.tar.bz2 gentoo-996b0428ec50dcd931077c12168e8ace7f29c820.zip |
dev-vcs/git-delete-merged-branches: Python 3.12
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'dev-vcs/git-delete-merged-branches')
-rw-r--r-- | dev-vcs/git-delete-merged-branches/git-delete-merged-branches-7.4.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-vcs/git-delete-merged-branches/git-delete-merged-branches-7.4.0-r1.ebuild b/dev-vcs/git-delete-merged-branches/git-delete-merged-branches-7.4.0-r1.ebuild new file mode 100644 index 000000000000..e840b4c17836 --- /dev/null +++ b/dev-vcs/git-delete-merged-branches/git-delete-merged-branches-7.4.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{9..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Command-line tool to delete merged Git branches" +HOMEPAGE="https://github.com/hartwork/git-delete-merged-branches" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="full-name-executable test" + +COMMON_DEPEND=" + >=dev-python/colorama-0.4.3[${PYTHON_USEDEP}] + >=dev-python/prompt-toolkit-3.0.18[${PYTHON_USEDEP}] +" +DEPEND="${COMMON_DEPEND} + test? ( dev-python/parameterized[${PYTHON_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + full-name-executable? ( !dev-vcs/git-extras ) + dev-vcs/git +" + +RESTRICT="!test? ( test )" + +distutils_enable_tests pytest + +src_install() { + distutils-r1_src_install + + if ! use full-name-executable; then + rm "${D}"/usr/bin/git-delete-merged-branches || die + rm "${D}"/usr/share/man/man1/git-delete-merged-branches.1* || die + fi +} |