summaryrefslogtreecommitdiff
path: root/dev-vcs/git-extras/git-extras-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-vcs/git-extras/git-extras-9999.ebuild')
-rw-r--r--dev-vcs/git-extras/git-extras-9999.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-vcs/git-extras/git-extras-9999.ebuild b/dev-vcs/git-extras/git-extras-9999.ebuild
new file mode 100644
index 000000000000..6946fc65e6aa
--- /dev/null
+++ b/dev-vcs/git-extras/git-extras-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2020-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"
+
+if [ ${PV} = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/tj/git-extras.git"
+else
+ SRC_URI="https://github.com/tj/git-extras/archive/${PV}.tar.gz"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="zsh-completion"
+
+RDEPEND="
+ dev-vcs/git
+"
+
+DEPEND="
+ ${RDEPEND}
+ zsh-completion? ( app-shells/zsh )
+"
+
+src_compile() {
+ # ebuild will attempt to run make without the install command
+ # so just bypass this step.
+ true
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ PREFIX=/usr \
+ MANPREFIX=/usr/share/man/man1 \
+ SYSCONFDIR=/etc \
+ install
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ doins etc/git-extras-completion.zsh
+ fi
+}