Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-machete/
Date: Wed, 31 Aug 2022 13:17:36
Message-Id: 1661951848.3cc5234252ebc76b21449286f515c2f01a357600.marecki@gentoo
1 commit: 3cc5234252ebc76b21449286f515c2f01a357600
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 13:16:53 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 13:17:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cc52342
7
8 dev-vcs/git-machete: initial import, version 3.12.0
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 dev-vcs/git-machete/Manifest | 1 +
13 dev-vcs/git-machete/git-machete-3.12.0.ebuild | 46 +++++++++++++++++++++++++++
14 dev-vcs/git-machete/metadata.xml | 26 +++++++++++++++
15 3 files changed, 73 insertions(+)
16
17 diff --git a/dev-vcs/git-machete/Manifest b/dev-vcs/git-machete/Manifest
18 new file mode 100644
19 index 000000000000..7ef3fd6c958f
20 --- /dev/null
21 +++ b/dev-vcs/git-machete/Manifest
22 @@ -0,0 +1 @@
23 +DIST git-machete-3.12.0.gh.tar.gz 1377199 BLAKE2B 82c4287efe902f6571504a5b2a793aa3c1b61a526db4262456bd617897b16e30ba2713f7900fa8482f7b30b75e6b76257cefaed154ec41e7e54f3097565a60bc SHA512 6a6168c7d8f0fb406b1ddb471f280a31dac4406a058006b62f4a4d8b5f8e1b681e460a59671acd091cf8411c1d3050c175544a4e18f21522297811c89ac9a271
24
25 diff --git a/dev-vcs/git-machete/git-machete-3.12.0.ebuild b/dev-vcs/git-machete/git-machete-3.12.0.ebuild
26 new file mode 100644
27 index 000000000000..a4233157cd39
28 --- /dev/null
29 +++ b/dev-vcs/git-machete/git-machete-3.12.0.ebuild
30 @@ -0,0 +1,46 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +DISTUTILS_USE_PEP517=setuptools
38 +
39 +inherit bash-completion-r1 distutils-r1
40 +
41 +DESCRIPTION="Probably the sharpest git repository organizer & rebase/merge workflow automation tool you've ever seen"
42 +HOMEPAGE="https://github.com/VirtusLab/git-machete https://pypi.org/project/git-machete/"
43 +# No tests in PyPI tarballs
44 +SRC_URI="https://github.com/VirtusLab/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE="fish-completion zsh-completion"
50 +
51 +RDEPEND="dev-vcs/git"
52 +BDEPEND="test? (
53 + $(python_gen_cond_dep '
54 + >=dev-python/pytest-mock-3.8.2[${PYTHON_USEDEP}]
55 + >=dev-python/pytest-xdist-2.5.0[${PYTHON_USEDEP}]
56 + ')
57 +)"
58 +
59 +DOCS=( CONTRIBUTING.md README.md )
60 +
61 +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
62 +distutils_enable_tests pytest
63 +
64 +src_install() {
65 + distutils-r1_src_install
66 +
67 + newbashcomp completion/${PN}.completion.bash ${PN}
68 + if use fish-completion; then
69 + insinto /usr/share/fish/vendor_completions.d
70 + doins completion/${PN}.fish
71 + fi
72 + if use zsh-completion; then
73 + insinto /usr/share/zsh/site-functions
74 + newins completion/${PN}.completion.zsh _${PN}
75 + fi
76 +}
77
78 diff --git a/dev-vcs/git-machete/metadata.xml b/dev-vcs/git-machete/metadata.xml
79 new file mode 100644
80 index 000000000000..8199593ab959
81 --- /dev/null
82 +++ b/dev-vcs/git-machete/metadata.xml
83 @@ -0,0 +1,26 @@
84 +<?xml version="1.0" encoding="UTF-8"?>
85 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
86 +<pkgmetadata>
87 + <maintainer type="person">
88 + <email>marecki@g.o</email>
89 + <name>Marek Szuba</name>
90 + </maintainer>
91 + <longdescription>
92 + git-machete is a robust tool that simplifies your git workflows.
93 +
94 + The bird's eye view provided by git-machete makes merges/rebases/push/pulls
95 + hassle-free even when multiple branches are present in the repository
96 + (master/develop, your topic branches, teammate's branches checked out
97 + for review, etc.).
98 +
99 + Using this tool, you can maintain small, focused, easy-to-review pull
100 + requests with little effort.
101 + </longdescription>
102 + <upstream>
103 + <remote-id type="github">VirtusLab/git-machete</remote-id>
104 + <remote-id type="pypi">git-machete</remote-id>
105 + </upstream>
106 + <use>
107 + <flag name="fish-completion">Enable fish completion support</flag>
108 + </use>
109 +</pkgmetadata>