summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-04-27 05:16:00 +0100
committerSam James <sam@gentoo.org>2024-04-27 05:19:42 +0100
commit3cdee62a15218b82803a620b86b6b2cae1d8a8a9 (patch)
tree3af9f5effb5be27c1d390d0ff14ba972d39eb02b /dev-vcs
parentsys-apps/goawk: add 1.27.0 (diff)
downloadgentoo-3cdee62a15218b82803a620b86b6b2cae1d8a8a9.tar.gz
gentoo-3cdee62a15218b82803a620b86b6b2cae1d8a8a9.tar.bz2
gentoo-3cdee62a15218b82803a620b86b6b2cae1d8a8a9.zip
dev-vcs/git-extras: add 7.2.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/git-extras/Manifest1
-rw-r--r--dev-vcs/git-extras/git-extras-7.2.0.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-vcs/git-extras/Manifest b/dev-vcs/git-extras/Manifest
index 9531b1d6a9b1..f6b8f5f88444 100644
--- a/dev-vcs/git-extras/Manifest
+++ b/dev-vcs/git-extras/Manifest
@@ -1 +1,2 @@
DIST git-extras-7.1.0.tar.gz 176733 BLAKE2B 697f09c2993e85595620e272465ad2f4afa3bbd456a1041b92b01a98f962f3aa1fb5f22f1c9ef7e484b87734e8c9e8d15da15f71fb345b9049dd5bb1b98093c9 SHA512 955161b40c48ab92578efe487db78ea8d0fff499aaf8d4da2b13e8194a7f9297a84542c8642dd3a7c61c9a4d1e92342b5c586d341e4a003c9838d5e9731127b9
+DIST git-extras-7.2.0.tar.gz 183043 BLAKE2B 242adf211a39666b97996f0a45073171034930fe29ee3ebbfa07068886367832e17cc76398145d8802d32201c2563c8f2ba4171ed206344fbefbb10c4fadd6f3 SHA512 c97c00bab24415574c8b38f259a0becd5da2edafe8cb5ff373de50917bc2854e39b1c396c42b603d4f203af2853d0ebaefe074bfe353f7692af7b1a13e744586
diff --git a/dev-vcs/git-extras/git-extras-7.2.0.ebuild b/dev-vcs/git-extras/git-extras-7.2.0.ebuild
new file mode 100644
index 000000000000..6c3441ad3f2f
--- /dev/null
+++ b/dev-vcs/git-extras/git-extras-7.2.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+inherit bash-completion-r1 python-any-r1
+
+DESCRIPTION="Git utilities -- repo summary, repl, changelog population, and many more"
+HOMEPAGE="https://github.com/tj/git-extras"
+SRC_URI="https://github.com/tj/git-extras/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=app-shells/bash-4.0:*
+ dev-vcs/git
+"
+BDEPEND="
+ test? (
+ $(python_gen_any_dep '
+ >=dev-python/GitPython-3.1.40[${PYTHON_USEDEP}]
+ >=dev-python/pytest-7.2[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # For now, don't force including the git completion
+ sed -i -e "1 i source $(get_bashcompdir)\/git" etc/bash_completion.sh || die
+}
+
+src_compile() {
+ return
+}
+
+src_test() {
+ epytest
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ SYSCONFDIR="${EPREFIX}/etc" \
+ COMPL_DIR="${D}/$(get_bashcompdir)" \
+ install
+
+ # TODO: Unfortunately, none of the completion seems to
+ # actually work for me yet(?)
+
+ newbashcomp "${S}"/etc/bash_completion.sh ${PN}
+
+ insinto /usr/share/zsh/site-functions
+ newins "${S}"/etc/${PN}-completion.zsh _${PN}
+
+ insinto /usr/share/fish/vendor_completions.d
+ doins "${S}"/etc/${PN}.fish
+}