commit:     cb5617a2f61f90d714687094d4458716e38135e8
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri May 30 23:15:45 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  1 04:12:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb5617a2

dev-vcs/git-machete: add 3.35.1

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42365
Closes: https://github.com/gentoo/gentoo/pull/42365
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-vcs/git-machete/Manifest                       |  1 +
 ...machete-3.35.1_no-strays-in-site-packages.patch | 11 +++++
 dev-vcs/git-machete/git-machete-3.35.1.ebuild      | 49 ++++++++++++++++++++++
 3 files changed, 61 insertions(+)

diff --git a/dev-vcs/git-machete/Manifest b/dev-vcs/git-machete/Manifest
index 37921dc567df..c2e67e31592e 100644
--- a/dev-vcs/git-machete/Manifest
+++ b/dev-vcs/git-machete/Manifest
@@ -1 +1,2 @@
 DIST git-machete-3.25.2.gh.tar.gz 1892239 BLAKE2B 
18fe483983ff5acb8139152ba1d1eb4c3a11e5092be827ab922c12841f8b40aef4429b560a3ac29b94f1800fea966dff1b923bc1ce71850cca4998234da016b6
 SHA512 
0d928823d2440a46105eb8d4caa84ef828f4a01e793530151c484958b34f4209da3efa9d874dfb48a32de424cd2defc4ae3634b68e0dec7bcaf9fe82b15e68c8
+DIST git-machete-3.35.1.gh.tar.gz 1920132 BLAKE2B 
0d8d199e236c8b47e8b41f9a90b8960f245e886de3875fccdb26f9a6452a652089d46792f4fe3ddd24ae411fb2e29cc6f799df8e992ce770867b73ecda592f42
 SHA512 
8e3b2d3e1fed78961eb4274e40bfd59d51a18f23e7e3b69577eddab25d7d0545c3cb00db837645cef382763359ce55ca656cf90e1037d43312bc732e17ae10b0

diff --git 
a/dev-vcs/git-machete/files/git-machete-3.35.1_no-strays-in-site-packages.patch 
b/dev-vcs/git-machete/files/git-machete-3.35.1_no-strays-in-site-packages.patch
new file mode 100644
index 000000000000..eb329777c5f9
--- /dev/null
+++ 
b/dev-vcs/git-machete/files/git-machete-3.35.1_no-strays-in-site-packages.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -25,7 +25,7 @@
+     keywords='git',
+     # Non-python directories are only included in `packages` for the sake of 
bdist_wheel;
+     # they have apparently no effect on sdists (only MANIFEST.in matters).
+-    packages=['git_machete', 'git_machete/client', 'completion', 'docs/man'],
++    packages=['git_machete', 'git_machete/client'],
+     entry_points={
+         'console_scripts': [
+             'git-machete = git_machete.bin:main'

diff --git a/dev-vcs/git-machete/git-machete-3.35.1.ebuild 
b/dev-vcs/git-machete/git-machete-3.35.1.ebuild
new file mode 100644
index 000000000000..88d73f855b05
--- /dev/null
+++ b/dev-vcs/git-machete/git-machete-3.35.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+DISTUTILS_USE_PEP517=setuptools
+EPYTEST_XDIST=1
+
+inherit distutils-r1 shell-completion
+
+DESCRIPTION="Probably the sharpest git repo organizer & rebase/merge workflow 
automation tool"
+HOMEPAGE="https://github.com/VirtusLab/git-machete 
https://pypi.org/project/git-machete/";
+# No tests in PyPI tarballs
+SRC_URI="https://github.com/VirtusLab/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+
+RDEPEND="dev-vcs/git"
+BDEPEND="
+       test? (
+               >=dev-python/pytest-mock-3.10.0[${PYTHON_USEDEP}]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.35.1_no-strays-in-site-packages.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+distutils_enable_tests pytest
+
+# Several of the fish- and zsh-completion tests appear to be broken
+EPYTEST_DESELECT=(
+       
tests/completion_e2e/test_completion_e2e.py::TestCompletionEndToEnd::test_completion
+)
+
+src_install() {
+       distutils-r1_src_install
+
+       doman docs/man/${PN}.1
+
+       newbashcomp completion/${PN}.completion.bash ${PN}
+       dofishcomp completion/${PN}.fish
+       newzshcomp completion/${PN}.completion.zsh _${PN}
+}

Reply via email to