forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
586764e
commit 294d829
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
12 changes: 12 additions & 0 deletions
12
dev-vcs/git-extras/files/git-extras-6.1.0-no-bash-completion-install.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |