Add tig from git.
authorOlof-Joachim Frahm <olof@macrolet.net>
Mon, 14 Jul 2014 20:24:15 +0000 (21:24 +0100)
committerOlof-Joachim Frahm <olof@macrolet.net>
Mon, 14 Jul 2014 20:24:15 +0000 (21:24 +0100)
dev-vcs/tig/Manifest [new file with mode: 0644]
dev-vcs/tig/tig-9999.ebuild [new file with mode: 0644]

diff --git a/dev-vcs/tig/Manifest b/dev-vcs/tig/Manifest
new file mode 100644 (file)
index 0000000..aee5d7c
--- /dev/null
@@ -0,0 +1 @@
+EBUILD tig-9999.ebuild 685 SHA256 49f2c90ecfee90c0bd2541672e41b94125c2e07142ddffc56a286559a1fe4273 SHA512 0c108864c748ca020eb705b8aae1c72c9f15fcb6242c02797baabd417429f8b5cb0b52f1b6c71c21a4bed749640715c804ca2bb45487c0cde4effc9f636ddf59 WHIRLPOOL 0c1bd25bb843968cf64e33eee5f6aecb0f9b9a96f1c6985a5379872d308d33f63f7cdbbf4a428b3ba344ff3fef026b381b4d35b96f942401fe3aee3b0624e9f9
diff --git a/dev-vcs/tig/tig-9999.ebuild b/dev-vcs/tig/tig-9999.ebuild
new file mode 100644 (file)
index 0000000..353c24c
--- /dev/null
@@ -0,0 +1,40 @@
+EAPI=5
+
+inherit git-r3 bash-completion-r1 toolchain-funcs autotools
+
+DESCRIPTION="Tig: text mode interface for git"
+HOMEPAGE="http://jonas.nitro.dk/tig/"
+EGIT_REPO_URI="https://github.com/jonas/tig.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="unicode doc"
+
+DEPEND="sys-libs/ncurses[unicode?]
+       sys-libs/readline:0
+       doc? ( app-text/asciidoc app-text/xmlto )"
+RDEPEND="${DEPEND}
+       dev-vcs/git"
+
+src_prepare() {
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_with unicode ncursesw)
+}
+
+src_compile() {
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+
+       if use doc; then
+               emake DESTDIR="${D}" install-doc-man install-doc-html
+       fi
+
+       newbashcomp contrib/tig-completion.bash ${PN}
+}