Skip to content

Commit

Permalink
dev-vcs/git-extras: initial import
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Mar 19, 2021
1 parent 586764e commit 294d829
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-vcs/git-extras/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST git-extras-6.1.0.tar.gz 153503 BLAKE2B 3450edecb3116e19ffcf918b118aee04f025c06d812e29e8701f35a3c466b13d2578d41c8e1ee93327743d0019bf98bb3f397189e19435f89e3a259ff1b82747 SHA512 098415339177f802299d93947e2979a2fc6c2935eb2d735cd71ad76e035d5489e4c8d9009e2673c109b28e393319745be249cc195814087d59b436f4a56dabab
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
We shouldn't install this manually via the Makefile - or to that location.
--- a/Makefile
+++ b/Makefile
@@ -69,8 +69,6 @@ install: check
cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX); \
echo "cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)"; \
fi
- @mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
- cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras
@echo ""
@echo "If you are a zsh user, you may want to 'source $(CODE_DIR)etc/git-extras-completion.zsh'" \
"and put this line into ~/.zshrc to enable zsh completion"
55 changes: 55 additions & 0 deletions dev-vcs/git-extras/git-extras-6.1.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Git utilities -- repo summary, repl, changelog population, author commit percentages and 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
dev-vcs/git
"

PATCHES=(
"${FILESDIR}"/${PN}-6.1.0-no-bash-completion-install.patch
)

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_configure() {
return
}

src_compile() {
return
}

src_install() {
emake \
DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr" \
SYSCONFDIR="${EPREFIX}/etc" \
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
}
11 changes: 11 additions & 0 deletions dev-vcs/git-extras/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Sam James</name>
</maintainer>
<upstream>
<remote-id type="github">tj/git-extras</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 294d829

Please sign in to comment.