From c643bd542c9c3b867df84b18509f3a2b1d7c72b3 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 18 Oct 2022 04:01:42 +0100 Subject: dev-python/git-review: install man page Closes: https://bugs.gentoo.org/656042 Signed-off-by: Sam James --- dev-python/git-review/git-review-2.3.1-r1.ebuild | 40 ++++++++++++++++++++++++ dev-python/git-review/git-review-2.3.1.ebuild | 34 -------------------- dev-python/git-review/git-review-9999.ebuild | 6 ++++ 3 files changed, 46 insertions(+), 34 deletions(-) create mode 100644 dev-python/git-review/git-review-2.3.1-r1.ebuild delete mode 100644 dev-python/git-review/git-review-2.3.1.ebuild (limited to 'dev-python') diff --git a/dev-python/git-review/git-review-2.3.1-r1.ebuild b/dev-python/git-review/git-review-2.3.1-r1.ebuild new file mode 100644 index 000000000000..2e2e15a3f440 --- /dev/null +++ b/dev-python/git-review/git-review-2.3.1-r1.ebuild @@ -0,0 +1,40 @@ +# 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..10} ) + +inherit distutils-r1 + +DESCRIPTION="Tool to submit code to Gerrit" +HOMEPAGE="https://git.openstack.org/cgit/openstack-infra/git-review" +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://opendev.org/opendev/${PN}.git" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="amd64 x86 ~x64-cygwin ~amd64-linux ~x86-linux" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +BDEPEND=" + >=dev-python/pbr-4.1.0[${PYTHON_USEDEP}] +" +RDEPEND=" + >=dev-python/requests-1.1[${PYTHON_USEDEP}] +" + +python_prepare_all() { + sed -i -e '/manpages/,+1d' setup.cfg || die + distutils-r1_python_prepare_all +} + +python_install_all() { + doman git-review.1 + + distutils-r1_python_install_all +} diff --git a/dev-python/git-review/git-review-2.3.1.ebuild b/dev-python/git-review/git-review-2.3.1.ebuild deleted file mode 100644 index 52acf643695f..000000000000 --- a/dev-python/git-review/git-review-2.3.1.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# 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..10} ) - -inherit distutils-r1 - -DESCRIPTION="Tool to submit code to Gerrit" -HOMEPAGE="https://git.openstack.org/cgit/openstack-infra/git-review" -if [[ ${PV} == 9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://opendev.org/opendev/${PN}.git" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="amd64 x86 ~x64-cygwin ~amd64-linux ~x86-linux" -fi - -LICENSE="Apache-2.0" -SLOT="0" - -BDEPEND=" - >=dev-python/pbr-4.1.0[${PYTHON_USEDEP}] -" -RDEPEND=" - >=dev-python/requests-1.1[${PYTHON_USEDEP}] -" - -python_prepare_all() { - sed -i -e '/manpages/,+1d' setup.cfg || die - distutils-r1_python_prepare_all -} diff --git a/dev-python/git-review/git-review-9999.ebuild b/dev-python/git-review/git-review-9999.ebuild index 16e5454edee8..ee331b500152 100644 --- a/dev-python/git-review/git-review-9999.ebuild +++ b/dev-python/git-review/git-review-9999.ebuild @@ -32,3 +32,9 @@ python_prepare_all() { sed -i -e '/manpages/,+1d' setup.cfg || die distutils-r1_python_prepare_all } + +python_install_all() { + doman git-review.1 + + distutils-r1_python_install_all +} -- cgit v1.2.3-65-gdbad