commit:     96699d1829d3ce2e3394673e756bb4faec9bcef0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 25 01:50:50 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 25 01:57:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96699d18

dev-vcs/git-extras: add 7.0.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/dev-vcs/git-extras/Manifest b/dev-vcs/git-extras/Manifest
index 1f6b7fb5acc2..3e29b822c726 100644
--- a/dev-vcs/git-extras/Manifest
+++ b/dev-vcs/git-extras/Manifest
@@ -1 +1,2 @@
 DIST git-extras-6.5.0.tar.gz 167015 BLAKE2B 
44331744399f55f9c6bba26bd0eef95e87a5b8ed0a216f3a4a71397fd2ac7aad4325ef787e1970f54c5b8732d0d291c20d6103c8549f3a1eb315bd7fe884337e
 SHA512 
1dbf350ab822f5317d57ca7b90b914a71d3ad83746a79a369e221d20ade606b07a8b0f702610f50d1551c5c3ca12517df18106c6066745b40bf966052bbe9a46
+DIST git-extras-7.0.0.tar.gz 169165 BLAKE2B 
8b6ae331b761729d5f92cd350bf21f4f5ebb5098092e224f49db9fe5ef2cbdcd3fc2783af2fb74a8d22008d35675d9a753e753d5fa60e586dbbde919dab7ff80
 SHA512 
0768ea3de95f5b3de1912dced2c889c2dff823d5c4b8a796c73da043af36b75b3194760a30e8fe7c2525b681fe81fa45a438d0481f4a5166ff6de6d5d7d05927

diff --git a/dev-vcs/git-extras/git-extras-7.0.0.ebuild 
b/dev-vcs/git-extras/git-extras-7.0.0.ebuild
new file mode 100644
index 000000000000..1c679d084497
--- /dev/null
+++ b/dev-vcs/git-extras/git-extras-7.0.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-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 ~x64-macos"
+
+RDEPEND="
+       >=app-shells/bash-4.0:*
+       dev-vcs/git
+"
+
+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_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
+}

Reply via email to