commit:     dbc732489963aa91eca6ba5b0bc64e9d53a01ca6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  4 07:44:39 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec  4 07:44:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbc73248

dev-vcs/git-filter-repo: Bump to 2.47.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-vcs/git-filter-repo/Manifest                   |  1 +
 .../git-filter-repo/git-filter-repo-2.47.0.ebuild  | 50 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-vcs/git-filter-repo/Manifest b/dev-vcs/git-filter-repo/Manifest
index c207b04fd4c0..fae329ca1d19 100644
--- a/dev-vcs/git-filter-repo/Manifest
+++ b/dev-vcs/git-filter-repo/Manifest
@@ -1 +1,2 @@
 DIST git-filter-repo-2.45.0.tar.xz 155808 BLAKE2B 
44a7ac3ba98e7fdce3a656aca081d8df1ca33acd98be605152fe9b8a9c205bd3b1d8c080769fea56cae54080a6770a447a8a4fbd8dea8b1ec9622b756c76677d
 SHA512 
2fa48a1c6fe285570d02c63d71c92e1a79a4f4dfc0527141b6bed19f4ec27c92f6b98def2c6541bf1fef149e7dd191b023942c99b370b1a5b1555c2cac3e0c42
+DIST git-filter-repo-2.47.0.tar.xz 186836 BLAKE2B 
3f03c99db40cf1b37e60811935d9e23a341dd74a9e9dcbefa7f261b4b2fb6791284c695b191b59f0119b89fe654e6fceb4e735c29c52b761ba176fe8109c7d42
 SHA512 
8c3c329389a4657b14320733323bf0048e44f09280aca381195c706aedf084ab2c125a6cd3f5290d2173df28519cec551b41558db9a0a0578d2d0a316d000a69

diff --git a/dev-vcs/git-filter-repo/git-filter-repo-2.47.0.ebuild 
b/dev-vcs/git-filter-repo/git-filter-repo-2.47.0.ebuild
new file mode 100644
index 000000000000..da206ffd2fc7
--- /dev/null
+++ b/dev-vcs/git-filter-repo/git-filter-repo-2.47.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Quickly rewrite git repository history (filter-branch 
replacement)"
+HOMEPAGE="https://github.com/newren/git-filter-repo/";
+SRC_URI="https://github.com/newren/git-filter-repo/releases/download/v${PV}/${P}.tar.xz";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+       dev-vcs/git
+"
+BDEPEND="
+       dev-python/setuptools-scm[${PYTHON_USEDEP}]
+"
+
+# the git-archive tarball does not have version info; setuptools-scm
+# requires a valid source of version info, this one is for distros
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_test() {
+       cd .. || die
+       bash "${S}"/t/run_tests || die
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       # Just like git itself there is a manpage in troff + html formats.
+       # Unlike git itself, we cannot install the html one, because the
+       # `git --html-path` has the ${PV} of git in it. So just install
+       # the troff copy.
+       doman "${WORKDIR}"/${P}/Documentation/man1/git-filter-repo.1
+
+       # Points to dead symlink
+       rm "${ED}"/usr/share/doc/${PF}/README.md || die
+       rmdir "${ED}"/usr/share/doc/${PF} || die
+
+       dodoc "${WORKDIR}"/${P}/README.md
+}

Reply via email to