dev-vcs/git-delete-merged-branches: DistutilsNonPEP517Build + MissingRemoteId

Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
Sebastian Pipping 2022-11-27 01:24:58 +01:00
parent 0c45b2d761
commit bc181a415b
No known key found for this signature in database
GPG Key ID: 96262ACFFBD3AEC6
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="Command-line tool to delete merged Git branches"
HOMEPAGE="https://github.com/hartwork/git-delete-merged-branches"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
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
fi
}

View File

@ -8,4 +8,8 @@
<use>
<flag name="full-name-executable">Install executable /usr/bin/git-delete-merged-branches that is in conflict with <pkg>dev-vcs/git-extras</pkg></flag>
</use>
<upstream>
<remote-id type="github">hartwork/git-delete-merged-branches</remote-id>
<remote-id type="pypi">git-delete-merged-branches</remote-id>
</upstream>
</pkgmetadata>